Skip to content

Commit 12eabd3

Browse files
committed
add a security note
1 parent 3b45257 commit 12eabd3

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/sagemaker/estimator.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,14 @@ def __init__(
414414
credential helper or local credential storage for authentication.
415415
hyperparameters (dict): A dictionary containing the hyperparameters to
416416
initialize this estimator with. (Default: None).
417+
418+
.. caution::
419+
420+
You must not include any security sensitive information, such as
421+
account access IDs, secrets, and tokens, in the dictionary for configuring
422+
hyperparameters. &SM; rejects the training job request and returns an
423+
exception error for detected credentials, if such user input is found.
424+
417425
container_log_level (int): The log level to use within the container
418426
(default: logging.INFO). Valid values are defined in the Python
419427
logging module.
@@ -2339,6 +2347,14 @@ def __init__(
23392347
using the default AWS configuration chain.
23402348
hyperparameters (dict): Dictionary containing the hyperparameters to
23412349
initialize this estimator with.
2350+
2351+
.. caution::
2352+
2353+
You must not include any security sensitive information, such as
2354+
account access IDs, secrets, and tokens, in the dictionary for configuring
2355+
hyperparameters. &SM; rejects the training job request and returns an
2356+
exception error for detected credentials, if such user input is found.
2357+
23422358
tags (list[dict]): List of tags for labeling a training job. For
23432359
more, see
23442360
https://docs.aws.amazon.com/sagemaker/latest/dg/API_Tag.html.
@@ -2793,6 +2809,14 @@ def __init__(
27932809
SageMaker. For convenience, this accepts other types for keys
27942810
and values, but ``str()`` will be called to convert them before
27952811
training.
2812+
2813+
.. caution::
2814+
2815+
You must not include any security sensitive information, such as
2816+
account access IDs, secrets, and tokens, in the dictionary for configuring
2817+
hyperparameters. &SM; rejects the training job request and returns an
2818+
exception error for detected credentials, if such user input is found.
2819+
27962820
container_log_level (int): Log level to use within the container
27972821
(default: logging.INFO). Valid values are defined in the Python
27982822
logging module.

0 commit comments

Comments
 (0)