-
Notifications
You must be signed in to change notification settings - Fork 53
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
refactor:write oidc credentials to temp file #164
Conversation
The update to write the credentials to disk works fine for Linux based executors. Will it work for Windows executors too ('tmp' does not exist on Windows!)? Shouldn't there be a test job to prove that this works on Windows? |
Also if the configure_role_arn example code is to be believed, it is possible to call When called without a Then this code will then fail because the temp file is missing? See #165 to see more details of how the code is currently (not) working with circleci/aws-cli@4.1.1 |
97cdbc5
to
6edb69c
Compare
This is a really good point. Let me take a look at this. EDIT: I just tested this with this windows executor and it worked. I think the expectation is that
|
6c6d30f
to
031664d
Compare
031664d
to
f94033f
Compare
@Ian-Rowland-i2 - There are two ways to authenticate with using the If you choose to not provide a The
Thanks for taking a look. Let me know if you have other questions |
echo "export AWS_CLI_STR_ACCESS_KEY_ID=\"${AWS_ACCESS_KEY_ID}\"" | ||
echo "export AWS_CLI_STR_SECRET_ACCESS_KEY=\"${AWS_SECRET_ACCESS_KEY}\"" | ||
echo "export AWS_CLI_STR_SESSION_TOKEN=\"${AWS_SESSION_TOKEN}\"" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking change for the orb.
Most customers likely relied on the existence of AWS_ACCESS_KEY_ID
, AWS_SECRET_ACCESS_KEY
, AWS_SESSION_TOKEN
. They are standard env
variables that AWS clients automatically detect. They are now gone.
Please roll back this PR on the 4.x branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree this was unexpected and definitely a breaking change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, this broke our CI build in a very confusing way.
The current version of the orb exports the
OIDC
credentials to$BASH_ENV
.In cases where multiple profiles are created, some
aws
commands will use the credentials from$BASH_ENV
by default, bypassing any profiles that's specified.This
PR
writes the generatedOIDC
keys to a temporary file that'ssourced
to complete the configuration process.