-
Notifications
You must be signed in to change notification settings - Fork 177
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
Updating to use the AWS 2.0 SDK #364
Conversation
@DavidTanner Can you please resolve conflicts in this PR? |
# Conflicts: # pom.xml # src/main/java/com/okta/tools/OktaAwsCliEnvironment.java
@mraible Sorry, I missed your message. |
@mraible @aaronpk @rdegges or @robert-chiniquy I'd really like to get this merged so we can start using it. I've been using it locally for months. |
@DavidTanner great PR! Looks good!
Longer-term question: IIRC, The AWS CLI v2 uses an OAuth Device Grant (e.g. similar to login /w Netflix using a code on your TV), which will pop a browser if possible. Then AWS does the SAML dance with Okta. Either way, getting this in and released would help folks in the short term 😄 |
@bdemers It looks like SSO isn't available in GovCloud yet which is why we still need it. Is there anything else I need to add to this PR to get it merged? |
@DavidTanner Thanks for the note about SSO in GovCloud! I'll chat with the other maintainers about cutting a release early next week. Thanks again!! |
@DavidTanner @bdemers while they may have fixed things for those not using a profile, it broke things when actually using a profile. Can we either roll this back, or fix the other issues? This is unusable in the current state if you are using a profile. |
@dangeReis The changes I made are breaking. I updated the Readme accordingly. You should start using the |
@DavidTanner which Readme did you update? I'm not seeing anything relevant here: Specifically, commands like this don't currently work properly:
|
I see the issue. Would the preferred functionality be then to force the okta profile to match the aws one? At my company one OKTA_PROFILE gives us access to multiple aws profiles. I can put up a PR to fix the scripts. |
At my company, once you authenticate with OKTA, it locks you into an AWS role. If you want a different role/account, you need to use a different okta profile or clear our some session files. Not quite sure how you are using this. We currently associate the okta profile with the appropriate role/account that we want and just reauthenticate when the timeout expires. This allows us to use multiple profiles at the same time if we needed to. |
BASH_PROFILE="SOME_OKTA_PROFILE" AWS_PROFILE="company-dev" AWS_SDK_LOAD_CONFIG="1" withOkta aws ...
|
Problem Statement
The AWS SDK was significantly out of date. Also, the withokta script made it difficult to use when not actually sending an
aws --profile
command.Solution
Updated to the Java 2 SDK and removed the obfuscation around profile.