Comments (16)
Yes, my question was more about the authoritative environment variable name rather than the right English name. Do these actually vary, maybe not by design but in fact? For example that second like definitely shows setting "AWS_ACCESS_KEY" and not "AWS_ACCESS_KEY_ID" as the official name for the EC2 command line tools. If it's just that the SDK uses a different property name, that's OK by me; was just checking that this is intentional.
from aws-sdk-java.
Hey Sean, if you log into your AWS account and go to the AWS security credentials page:
https://portal.aws.amazon.com/gp/aws/securityCredentials
you'll see the authoritative names for these:
Access Key ID
Secret Access Key
Tools often abbreviate these to:
Access Key
Secret Key
but there are a few variations out there, as you noticed.
from aws-sdk-java.
Agree this has been a bit annoying... especially since the aws ruby SDK uses AWS_ACCESS_KEY_ID : https://github.com/aws/aws-sdk-ruby/blob/master/lib/aws/core/credential_providers.rb
from aws-sdk-java.
So, EnvironmentVariableCredentialsProvider picked the authoritative name for one ("AWS_ACCESS_KEY_ID") but the conventional name for the other ("AWS_SECRET_KEY")? That's even more confusing.
Seems like, with all the confusion out there, plus needing to maintain backwards compatibility, the best thing to do would be for this to check both the authoritative and conventional environment variables.
from aws-sdk-java.
Closing as this was merged.
from aws-sdk-java.
Why was this closed? AFAICT only AWS_SECRET_KEY is referenced from:
@wmatveyenko what merge are you talking about?
from aws-sdk-java.
(Specifically, I believe EnvironmentVarialbeCredentialsProvider should check both AWS_SECRET_KEY and AWS_SECRET_ACCESS_KEY.)
Maybe I'll just go make a pull request...
from aws-sdk-java.
I apologize for closing this in error. I was reading the comments and mistook the referenced pull request as a pull request to the SDK. Please submit a pull request to fix this issue.
Thanks!
from aws-sdk-java.
Closing this issue for now. When you have the pull request, feel free to reopen.
from aws-sdk-java.
Pull request submitted--not sure I can reopen the issue. But let me know if you have any feedback. Thanks!
from aws-sdk-java.
Reopening for you :-)
from aws-sdk-java.
Resolving again in favour of the pull request.
from aws-sdk-java.
I saw that 1.6.2 got released a few days ago, but it looks like this change was not in it.
You seem to be making source drops from some internal repository.
Which is fine, but did this patch not get submitted to your internal repository?
from aws-sdk-java.
Hey Stephen, sorry for the confusion on this one! The issue was closed, so I understand why you'd expect the fix to show up in a release, but the pull hadn't actually been merged in yet.
But... I just went ahead and merged in your pull request, so you'll definitely see this fix go out in the next SDK release!
Thanks again for taking the time to report this and send us a fix!
from aws-sdk-java.
Sounds great, thanks Jason!
from aws-sdk-java.
List of all environment variables: http://docs.aws.amazon.com/cli/latest/userguide/cli-environment.html
from aws-sdk-java.
Related Issues (20)
- Deadlock on Kinesis Client connection pool when making parallel requests HOT 2
- "order" of TaskDefinition.ContainerDefinition.Environment items in ECS HOT 1
- Please do not use underscores as Java identifiers in source code HOT 2
- Allow the SDK AmazonS3EncryptionV2 to accept a customized AAD HOT 4
- Client Configuration of TimeOuts(Socket/Connection) not applied in AmazonSqs Client HOT 2
- Unable to programatically create an SQS queue HOT 6
- NoSuchFieldError: AUTH_SCHEME_PROVIDER HOT 1
- s3: resource object-lock should be in string to sign when use v2 signer, otherwise will be 403 signature not match HOT 4
- Updating aws-java-sdk-sqs from 1.12.583 to 1.12.584 breaks @JmsListener HOT 3
- EKS Pod Identity - Cannot get credentials HOT 15
- Direct memory leak when getting object metadata inside parallelStream with Java 17 HOT 2
- S3 - The authorization header is malformed; the region 'vpce' is wrong; HOT 3
- Create option to specify custom options/properties in request builder to be passed down in the SignRequest during the signing stage
- Unsupported or unrecognized SSL message(short issue description) HOT 2
- (short issue description) HOT 2
- Unable to parse clock skew offset from response: null HOT 2
- AWS SDK1 Java does not provide ability to authenticate to AWS STS via proxy that requires Kerberos Authentication HOT 1
- AWS JAVA SDK BOM 2.21.6 causing out of memory issue
- Credential Provider Chain Not Working HOT 4
- Use of deprecated ion-java HOT 19
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-sdk-java.