You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[probes.browser] S3 artifact storage fails with IRSA in v0.14.3 and v0.14.4 #1416
S3 browser artifact storage cannot initialise using IAM Roles for Service Accounts (IRSA) in Cloudprober v0.14.3 and v0.14.4.
During startup, the S3 storage initialisation performs a HeadBucket request. This triggers the AWS SDK default credential chain and attempts to obtain credentials through STS AssumeRoleWithWebIdentity. Credential resolution fails before the STS request can be completed:
failed to access bucket <bucket>: operation error S3: HeadBucket,
get identity: get credentials: failed to refresh cached credentials,
failed to retrieve credentials, not found: Retry
Deploy Cloudprober on EKS using a Kubernetes service account configured for IRSA.
Configure browser artifact storage to use an S3 bucket without specifying static access and secret keys.
Ensure the pod receives the standard IRSA environment variables and projected web-identity token.
Start Cloudprober.
Observe that S3 storage initialisation fails during the startup HeadBucket check with not found: Retry.
Expected behavior
The AWS SDK default credential chain should exchange the projected web-identity token using STS AssumeRoleWithWebIdentity, then perform the S3 HeadBucket request using the temporary credentials.
Additional context
Commit c5ac223 partially upgraded the AWS SDK for Go v2 dependency family. S3, the SDK core, and Smithy were upgraded, while config, credentials, STS,CloudWatch, and IMDS remained substantially older.
The old generated STS client is incompatible with the retry middleware used by the newer SDK core. This causes web-identity credential retrieval to fail while constructing the STS middleware stack.
A proposed fix is to upgrade the complete AWS SDK Go v2 module family together and add a regression test that exercises the default web-identity credential chain using local mock STS and S3 endpoints. The test should verify that STS AssumeRoleWithWebIdentity is reached and that the startup HeadBucket request succeeds without accessing real AWS.
Activity
!17779 merge bump-cloudprober-0.14.5 into main