Skip to content

fix(s3): make AWS credentials optional so EKS pods can auth via IRSA#11

Merged
dmitriyzhuk merged 1 commit into
mainfrom
fix/s3-irsa-optional-credentials
Jul 24, 2026
Merged

fix(s3): make AWS credentials optional so EKS pods can auth via IRSA#11
dmitriyzhuk merged 1 commit into
mainfrom
fix/s3-irsa-optional-credentials

Conversation

@dmitriyzhuk

Copy link
Copy Markdown
Contributor

The S3 and Secrets Manager clients always passed credentials explicitly and threw when static keys were absent. Passing credentials disables the AWS SDK default provider chain, so a pod holding an IRSA / Pod Identity role could never authenticate without static keys.

Omit credentials when the keys are blank, letting the SDK resolve the pod role; keep passing them when both are present (static keys / local MinIO).

Also fix the Rancher onboarding check, which required bucket + both keys and so never marked S3 configured on a keyless IRSA setup. It now needs only s3_bucket, treating a half-filled key pair as unconfigured.

The S3 and Secrets Manager clients always passed `credentials` explicitly and
threw when static keys were absent. Passing `credentials` disables the AWS SDK
default provider chain, so a pod holding an IRSA / Pod Identity role could
never authenticate without static keys.

Omit `credentials` when the keys are blank, letting the SDK resolve the pod
role; keep passing them when both are present (static keys / local MinIO).

Also fix the Rancher onboarding check, which required bucket + both keys and
so never marked S3 configured on a keyless IRSA setup. It now needs only
s3_bucket, treating a half-filled key pair as unconfigured.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@dmitriyzhuk
dmitriyzhuk merged commit deb90dc into main Jul 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant