-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
aws-sdk-go doens't support new sso-session in a shared config #4649
Comments
@ksauzz thanks for reaching out. would you be able to show us whats in your shared config located at |
Our config which hit the issue is the following: [profile xxx]
sso_session = xxx
sso_account_id = xxxxxxxxxx
sso_role_name = xxxxxxxxxx
region = ap-northeast-1
sso_region = ap-northeast-1
output = json
[sso-session xxx]
sso_start_url = https://d-xxxxxxxxxx.awsapps.com/start
sso_region = ap-northeast-1
sso_registration_scopes = sso:account:access You can find the similar example here. |
According to hashicorp/terraform-provider-aws#28263 it seems aws-sdk-go-v2 already supports this. |
What should users do when an application uses AWS-SDK-GO v1 while AWS CLI is creating a new profile? I will request the maintainer's support both profile/config in v1 SDK. |
Looks like the only solution is to copy the sso_start_url and sso_region from the sso-session block, delete the sso-session block (and all references to sso_session_name) and then reauthenticate to allow the SDK-v1 sessions to work. If the sso_session_name is configured at all, AWS CLI puts the authentication token in a location the SDK can't find. |
This is an increasingly frustrating bug across the AWS CLI/SDK ecosystem |
any updates on this? |
It's been almost five months and we still have to login repeatedly.. why is this P3 and have minor priority? |
I'm also interested, what's the status of this? There were some merged PRs mentioned #4868 & #4875 indicating some kind of handywork in order to fix this, however the first one seemed to also be reverted at some point? Updating myself: so it seems the #4885 is still open & waiting to be merged to main --> after which we should get the fixes released? |
Yes, when #4885 lands into |
|
=== ### Service Client Updates * `service/dms`: Updates service API, documentation, and paginators * Releasing DMS Serverless. Adding support for PostgreSQL 15.x as source and target endpoint. Adding support for DocDB Elastic Clusters with sharded collections, PostgreSQL datatype mapping customization and disabling hostname validation of the certificate authority in Kafka endpoint settings * `service/glue`: Updates service API and documentation * This release enables customers to create new Apache Iceberg tables and associated metadata in Amazon S3 by using native AWS Glue CreateTable operation. * `service/logs`: Updates service API and documentation * Add CMK encryption support for CloudWatch Logs Insights query result data * `service/medialive`: Updates service API and documentation * This release enables the use of Thumbnails in AWS Elemental MediaLive. * `service/mediatailor`: Updates service API and documentation ### SDK Bugs * `aws/credentials/ssocreds`: Implement SSO token provider support for `sso-session` in AWS shared config. * Fixes [4649](#4649)
Release v1.44.298 (2023-07-07) === ### Service Client Updates * `service/dms`: Updates service API, documentation, and paginators * Releasing DMS Serverless. Adding support for PostgreSQL 15.x as source and target endpoint. Adding support for DocDB Elastic Clusters with sharded collections, PostgreSQL datatype mapping customization and disabling hostname validation of the certificate authority in Kafka endpoint settings * `service/glue`: Updates service API and documentation * This release enables customers to create new Apache Iceberg tables and associated metadata in Amazon S3 by using native AWS Glue CreateTable operation. * `service/logs`: Updates service API and documentation * Add CMK encryption support for CloudWatch Logs Insights query result data * `service/medialive`: Updates service API and documentation * This release enables the use of Thumbnails in AWS Elemental MediaLive. * `service/mediatailor`: Updates service API and documentation ### SDK Bugs * `aws/credentials/ssocreds`: Implement SSO token provider support for `sso-session` in AWS shared config. * Fixes [4649](#4649)
Describe the bug
2 weeks ago, awscli v2.9.0 was released and introduced sso-session section in $HOME/.aws/config. But it seetms aws-sdk-go doesn't support it yet, and failed to load the config.
Expected Behavior
aws-sdk-go should load sso-session section from a shared config correctly.
Current Behavior
aws-sdk-go just ignored sso-session section, and failed by
missing required configuration: sso_region, sso_start_url
.Reproduction Steps
aws configure sso
Possible Solution
No response
Additional Information/Context
It would be nice if session manager plugin team in AWS would update aws-sdk-go version after releasing the fix.
SDK version used
v1.40.17
Environment details (Version of Go (
go version
)? OS name and version, etc.)Linux
The text was updated successfully, but these errors were encountered: