Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

baseCredentialsUrl has changed #20

Open
chrylis opened this issue Mar 1, 2024 · 0 comments
Open

baseCredentialsUrl has changed #20

chrylis opened this issue Mar 1, 2024 · 0 comments

Comments

@chrylis
Copy link

chrylis commented Mar 1, 2024

The AWSEC2IAMSessionCredentials class uses a non-final static field baseCredentialsUrl to indicate where to look for credentials. This URL has changed (at least in newer EC2 profiles), but there is no clean way to modify this field in the API. Alternative methods exist that take a full URL, but these do not auto-detect the instance role. The baked-in value should be changed to http://169.254.169.254/latest/meta-data/identity-credentials/ec2/security-credentials, and/or a setter should be added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant