Skip to content

[probes.browser] S3 artifact storage fails with IRSA in v0.14.3 and v0.14.4 #1416

Closed

Description

@aholden85

Describe the bug

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

Static AWS credentials are not affected.

Cloudprober Version

v0.14.3 and v0.14.4

The regression was introduced by commit c5ac223.

To Reproduce

  1. Deploy Cloudprober on EKS using a Kubernetes service account configured for IRSA.
  2. Configure browser artifact storage to use an S3 bucket without specifying static access and secret keys.
  3. Ensure the pod receives the standard IRSA environment variables and projected web-identity token.
  4. Start Cloudprober.
  5. 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

  1. added
    bug
    on Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions