[v2] Implement opting out of S3 Express session auth via config variables.#10105
[v2] Implement opting out of S3 Express session auth via config variables.#10105
Conversation
|
A profile like this is failing for me with Tried |
Per the definition, shouldn't it be |
| ), | ||
| EPRBuiltins.AWS_S3_DISABLE_EXPRESS_SESSION_AUTH: s3_config.get( | ||
| 'disable_s3_express_session_auth', False | ||
| ), |
There was a problem hiding this comment.
Is the environment variable plumbed into here? I'm not seeing it have any effect when testing, I still see the CreateSession call with
AWS_S3_DISABLE_EXPRESS_SESSION_AUTH=true aws s3api list-objects-v2 --bucket <express-bucket> --debug 2>&1 | grep "Making request"
There was a problem hiding this comment.
In configprovider we expanded BOTOCORE_DEFAUT_SESSION_VARIABLES, should it be DEFAULT_S3_CONFIG_VARS instead?
Oops, mixed up the client config with the profile config, thanks! But then why are we crashing for a wrong/non-existent key? |
| ), | ||
| EPRBuiltins.AWS_S3_DISABLE_EXPRESS_SESSION_AUTH: s3_config.get( | ||
| 'disable_s3_express_session_auth', False | ||
| ), |
There was a problem hiding this comment.
In configprovider we expanded BOTOCORE_DEFAUT_SESSION_VARIABLES, should it be DEFAULT_S3_CONFIG_VARS instead?
Huh, yeah something else is amiss. |
From the docs and existing code, it looks like |
Notes:
Description of changes:
AWS_S3_DISABLE_EXPRESS_SESSION_AUTHenvironment variable or thes3_disable_express_session_authS3 shared configuration setting.Description of tests:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.