You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 441e101
Browse filesBrowse the repository at this point in the historyBrowse files
Remove ProcessCredentialsProvider and the original
ProfileConfigFileAWSCredentialsProvider. The default chain stopped using them
once the CRT-backed ProfileCredentialsProvider took over their work, and with
the account ID and AWS_DEFAULT_PROFILE fixes it now covers what they did,
apart from re-reading the files on refreshRateMs.
ProfileConfigFileAWSCredentialsProvider stays as a deprecated alias of
ProfileCredentialsProvider. GetCredentialsFromProcess stays, since
STSProfileCredentialsProvider uses it.
Drop the GeneralHTTPCredentialsProvider.h include that AWSCredentialsProvider.h
kept for 1.11 compatibility.
Move the tests to ProfileCredentialsProvider: remove leading whitespace that
the shared config format reads as a continuation line, drop the reload check
and the ProcessCredentialsProvider tests, and point the credential_process
tests at an empty credentials file so a local [default] can't take over.
"description": "Remove ProcessCredentialsProvider and the original ProfileConfigFileAWSCredentialsProvider, which the default chain stopped using once the CRT-backed ProfileCredentialsProvider took over their work. ProfileConfigFileAWSCredentialsProvider still compiles as a deprecated alias of ProfileCredentialsProvider; use ProfileCredentialsProvider for credential_process too. Unlike the old provider, ProfileCredentialsProvider reads the config and credentials files once when it is created, so keys rotated in the files are picked up only by a new provider. It also follows the shared config file format strictly: a line that starts with whitespace continues the previous property, so a profile line indented by mistake can stop the file from loading. Requests using credential_process now report the profile credentials feature in the user agent instead of the process credentials feature. AWSCredentialsProvider.h no longer includes GeneralHTTPCredentialsProvider.h; include it directly to use GeneralHTTPCredentialsProvider or TaskRoleCredentialsProvider."
Copy file name to clipboardExpand all lines: src/aws-cpp-sdk-core/include/aws/core/auth/AWSCredentialsProvider.h
+1-97Lines changed: 1 addition & 97 deletions
Original file line number
Diff line number
Diff line change
@@ -146,58 +146,6 @@ namespace Aws
146
146
AWSCredentials GetAWSCredentials() override;
147
147
};
148
148
149
-
/**
150
-
* Reads credentials profile from the default Profile Config File. Refreshes at set interval for credential rotation.
151
-
* Looks for environment variables AWS_SHARED_CREDENTIALS_FILE and AWS_PROFILE. If they aren't found, then it defaults
152
-
* to the default profile in ~/.aws/credentials.
153
-
* Optionally a user can specify the profile and it will override the environment variable
154
-
* and defaults. To alter the file this pulls from, then the user should alter the AWS_SHARED_CREDENTIALS_FILE variable.
155
-
*/
156
-
// class AWS_DEPRECATED("This class is in the maintenance mode, no new updates will be released, use S3EncryptionClientV3. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information.") AWS_CORE_API ProfileConfigFileAWSCredentialsProvider : public AWSCredentialsProvider
157
-
classAWS_CORE_API ProfileConfigFileAWSCredentialsProvider : public AWSCredentialsProvider
158
-
{
159
-
public:
160
-
161
-
/**
162
-
* Initializes with refreshRateMs as the frequency at which the file is reparsed in milliseconds. Defaults to 5 minutes.
0 commit comments