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

fix: correct wrapping of errors in authentication workflow #2403

Merged
merged 1 commit into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
388 changes: 388 additions & 0 deletions .changelog/e95e79ceedbc49569baedb92644d1983.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,388 @@
{
"id": "e95e79ce-edbc-4956-9bae-db92644d1983",
"type": "bugfix",
"collapse": true,
"description": "Correct wrapping of errors in authentication workflow.",
"modules": [
"internal/protocoltest/awsrestjson",
"internal/protocoltest/ec2query",
"internal/protocoltest/jsonrpc",
"internal/protocoltest/jsonrpc10",
"internal/protocoltest/query",
"internal/protocoltest/restxml",
"internal/protocoltest/restxmlwithnamespace",
"service/accessanalyzer",
"service/account",
"service/acm",
"service/acmpca",
"service/alexaforbusiness",
"service/amp",
"service/amplify",
"service/amplifybackend",
"service/amplifyuibuilder",
"service/apigateway",
"service/apigatewaymanagementapi",
"service/apigatewayv2",
"service/appconfig",
"service/appconfigdata",
"service/appfabric",
"service/appflow",
"service/appintegrations",
"service/applicationautoscaling",
"service/applicationcostprofiler",
"service/applicationdiscoveryservice",
"service/applicationinsights",
"service/appmesh",
"service/apprunner",
"service/appstream",
"service/appsync",
"service/arczonalshift",
"service/athena",
"service/auditmanager",
"service/autoscaling",
"service/autoscalingplans",
"service/b2bi",
"service/backup",
"service/backupgateway",
"service/backupstorage",
"service/batch",
"service/bcmdataexports",
"service/bedrock",
"service/bedrockagent",
"service/bedrockagentruntime",
"service/bedrockruntime",
"service/billingconductor",
"service/braket",
"service/budgets",
"service/chime",
"service/chimesdkidentity",
"service/chimesdkmediapipelines",
"service/chimesdkmeetings",
"service/chimesdkmessaging",
"service/chimesdkvoice",
"service/cleanrooms",
"service/cleanroomsml",
"service/cloud9",
"service/cloudcontrol",
"service/clouddirectory",
"service/cloudformation",
"service/cloudfront",
"service/cloudfrontkeyvaluestore",
"service/cloudhsm",
"service/cloudhsmv2",
"service/cloudsearch",
"service/cloudsearchdomain",
"service/cloudtrail",
"service/cloudtraildata",
"service/cloudwatch",
"service/cloudwatchevents",
"service/cloudwatchlogs",
"service/codeartifact",
"service/codebuild",
"service/codecatalyst",
"service/codecommit",
"service/codedeploy",
"service/codeguruprofiler",
"service/codegurureviewer",
"service/codegurusecurity",
"service/codepipeline",
"service/codestar",
"service/codestarconnections",
"service/codestarnotifications",
"service/cognitoidentity",
"service/cognitoidentityprovider",
"service/cognitosync",
"service/comprehend",
"service/comprehendmedical",
"service/computeoptimizer",
"service/configservice",
"service/connect",
"service/connectcampaigns",
"service/connectcases",
"service/connectcontactlens",
"service/connectparticipant",
"service/controltower",
"service/costandusagereportservice",
"service/costexplorer",
"service/costoptimizationhub",
"service/customerprofiles",
"service/databasemigrationservice",
"service/databrew",
"service/dataexchange",
"service/datapipeline",
"service/datasync",
"service/datazone",
"service/dax",
"service/detective",
"service/devicefarm",
"service/devopsguru",
"service/directconnect",
"service/directoryservice",
"service/dlm",
"service/docdb",
"service/docdbelastic",
"service/drs",
"service/dynamodb",
"service/dynamodbstreams",
"service/ebs",
"service/ec2",
"service/ec2instanceconnect",
"service/ecr",
"service/ecrpublic",
"service/ecs",
"service/efs",
"service/eks",
"service/eksauth",
"service/elasticache",
"service/elasticbeanstalk",
"service/elasticinference",
"service/elasticloadbalancing",
"service/elasticloadbalancingv2",
"service/elasticsearchservice",
"service/elastictranscoder",
"service/emr",
"service/emrcontainers",
"service/emrserverless",
"service/entityresolution",
"service/eventbridge",
"service/evidently",
"service/finspace",
"service/finspacedata",
"service/firehose",
"service/fis",
"service/fms",
"service/forecast",
"service/forecastquery",
"service/frauddetector",
"service/freetier",
"service/fsx",
"service/gamelift",
"service/glacier",
"service/globalaccelerator",
"service/glue",
"service/grafana",
"service/greengrass",
"service/greengrassv2",
"service/groundstation",
"service/guardduty",
"service/health",
"service/healthlake",
"service/honeycode",
"service/iam",
"service/identitystore",
"service/imagebuilder",
"service/inspector",
"service/inspector2",
"service/inspectorscan",
"service/internetmonitor",
"service/iot",
"service/iot1clickdevicesservice",
"service/iot1clickprojects",
"service/iotanalytics",
"service/iotdataplane",
"service/iotdeviceadvisor",
"service/iotevents",
"service/ioteventsdata",
"service/iotfleethub",
"service/iotfleetwise",
"service/iotjobsdataplane",
"service/iotroborunner",
"service/iotsecuretunneling",
"service/iotsitewise",
"service/iotthingsgraph",
"service/iottwinmaker",
"service/iotwireless",
"service/ivs",
"service/ivschat",
"service/ivsrealtime",
"service/kafka",
"service/kafkaconnect",
"service/kendra",
"service/kendraranking",
"service/keyspaces",
"service/kinesis",
"service/kinesisanalytics",
"service/kinesisanalyticsv2",
"service/kinesisvideo",
"service/kinesisvideoarchivedmedia",
"service/kinesisvideomedia",
"service/kinesisvideosignaling",
"service/kinesisvideowebrtcstorage",
"service/kms",
"service/lakeformation",
"service/lambda",
"service/launchwizard",
"service/lexmodelbuildingservice",
"service/lexmodelsv2",
"service/lexruntimeservice",
"service/lexruntimev2",
"service/licensemanager",
"service/licensemanagerlinuxsubscriptions",
"service/licensemanagerusersubscriptions",
"service/lightsail",
"service/location",
"service/lookoutequipment",
"service/lookoutmetrics",
"service/lookoutvision",
"service/m2",
"service/machinelearning",
"service/macie2",
"service/managedblockchain",
"service/managedblockchainquery",
"service/marketplaceagreement",
"service/marketplacecatalog",
"service/marketplacecommerceanalytics",
"service/marketplacedeployment",
"service/marketplaceentitlementservice",
"service/marketplacemetering",
"service/mediaconnect",
"service/mediaconvert",
"service/medialive",
"service/mediapackage",
"service/mediapackagev2",
"service/mediapackagevod",
"service/mediastore",
"service/mediastoredata",
"service/mediatailor",
"service/medicalimaging",
"service/memorydb",
"service/mgn",
"service/migrationhub",
"service/migrationhubconfig",
"service/migrationhuborchestrator",
"service/migrationhubrefactorspaces",
"service/migrationhubstrategy",
"service/mobile",
"service/mq",
"service/mturk",
"service/mwaa",
"service/neptune",
"service/neptunedata",
"service/networkfirewall",
"service/networkmanager",
"service/nimble",
"service/oam",
"service/omics",
"service/opensearch",
"service/opensearchserverless",
"service/opsworks",
"service/opsworkscm",
"service/organizations",
"service/osis",
"service/outposts",
"service/panorama",
"service/paymentcryptography",
"service/paymentcryptographydata",
"service/pcaconnectorad",
"service/personalize",
"service/personalizeevents",
"service/personalizeruntime",
"service/pi",
"service/pinpoint",
"service/pinpointemail",
"service/pinpointsmsvoice",
"service/pinpointsmsvoicev2",
"service/pipes",
"service/polly",
"service/pricing",
"service/privatenetworks",
"service/proton",
"service/qbusiness",
"service/qconnect",
"service/qldb",
"service/qldbsession",
"service/quicksight",
"service/ram",
"service/rbin",
"service/rds",
"service/rdsdata",
"service/redshift",
"service/redshiftdata",
"service/redshiftserverless",
"service/rekognition",
"service/repostspace",
"service/resiliencehub",
"service/resourceexplorer2",
"service/resourcegroups",
"service/resourcegroupstaggingapi",
"service/robomaker",
"service/rolesanywhere",
"service/route53",
"service/route53domains",
"service/route53recoverycluster",
"service/route53recoverycontrolconfig",
"service/route53recoveryreadiness",
"service/route53resolver",
"service/rum",
"service/s3",
"service/s3control",
"service/s3outposts",
"service/sagemaker",
"service/sagemakera2iruntime",
"service/sagemakeredge",
"service/sagemakerfeaturestoreruntime",
"service/sagemakergeospatial",
"service/sagemakermetrics",
"service/sagemakerruntime",
"service/savingsplans",
"service/scheduler",
"service/schemas",
"service/secretsmanager",
"service/securityhub",
"service/securitylake",
"service/serverlessapplicationrepository",
"service/servicecatalog",
"service/servicecatalogappregistry",
"service/servicediscovery",
"service/servicequotas",
"service/ses",
"service/sesv2",
"service/sfn",
"service/shield",
"service/signer",
"service/simspaceweaver",
"service/sms",
"service/snowball",
"service/snowdevicemanagement",
"service/sns",
"service/sqs",
"service/ssm",
"service/ssmcontacts",
"service/ssmincidents",
"service/ssmsap",
"service/sso",
"service/ssoadmin",
"service/ssooidc",
"service/storagegateway",
"service/sts",
"service/support",
"service/supportapp",
"service/swf",
"service/synthetics",
"service/textract",
"service/timestreamquery",
"service/timestreamwrite",
"service/tnb",
"service/transcribe",
"service/transcribestreaming",
"service/transfer",
"service/translate",
"service/trustedadvisor",
"service/verifiedpermissions",
"service/voiceid",
"service/vpclattice",
"service/waf",
"service/wafregional",
"service/wafv2",
"service/wellarchitected",
"service/wisdom",
"service/workdocs",
"service/worklink",
"service/workmail",
"service/workmailmessageflow",
"service/workspaces",
"service/workspacesthinclient",
"service/workspacesweb",
"service/xray"
]
}
2 changes: 1 addition & 1 deletion internal/auth/smithy/bearer_token_adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (v *BearerTokenProviderAdapter) GetIdentity(ctx context.Context, _ smithy.P
) {
token, err := v.Provider.RetrieveBearerToken(ctx)
if err != nil {
return nil, fmt.Errorf("get token: %v", err)
return nil, fmt.Errorf("get token: %w", err)
}

return &BearerTokenAdapter{Token: token}, nil
Expand Down
Loading
Loading