Skip to content

feat(aws): support IRSA and EKS Pod Identity across storage, RDS, and ephemeral executor - #4062

Open
Macbet wants to merge 2 commits into
mainfrom
feat/aws-irsa-pod-identity
Open

Macbet wants to merge 2 commits into
mainfrom
feat/aws-irsa-pod-identity

Conversation

@Macbet

@Macbet Macbet commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Use AWS DefaultCredentialsProvider (IRSA / EKS Pod Identity / ECS / IMDSv2) automatically when static accessKey/secretKey are omitted or enableRoleAuthentication is enabled across api, executor, and registry.

  • Add AwsStorageClients helper in api, executor, and registry with automatic default credential chain fallback, region fallback via DefaultAwsRegionProviderChain, and fail-fast validation on partial static credentials.
  • Allow custom S3 endpoints (e.g. AWS S3 VPC/FIPS endpoints) to work with role authentication / default credentials in api, executor, and registry (including S3Presigner).
  • Prevent AwsTerraformStateImpl from writing empty/null access_key and secret_key into aws_backend_override.tf when using role auth or blank static keys, and fix null endpoint NPE in TerraformStateAutoConfiguration.
  • Reuse DefaultCredentialsProvider and support default region chain fallback in PostgresAwsIamAuthDataSource.
  • Add optional default EphemeralConfiguration.serviceAccountName (ExecutorEphemeralServiceAccount) for ephemeral executor pods.
  • Add empty placeholder defaults for optional AWS properties in application*.properties.

… ephemeral executor

Use AWS DefaultCredentialsProvider (IRSA / EKS Pod Identity / ECS / IMDSv2) automatically when static accessKey/secretKey are omitted or enableRoleAuthentication is enabled across api, executor, and registry.

- Add AwsStorageClients helper in api, executor, and registry with automatic default credential chain fallback, region fallback via DefaultAwsRegionProviderChain, and fail-fast validation on partial static credentials.
- Allow custom S3 endpoints (e.g. AWS S3 VPC/FIPS endpoints) to work with role authentication / default credentials in api, executor, and registry (including S3Presigner).
- Prevent AwsTerraformStateImpl from writing empty/null access_key and secret_key into aws_backend_override.tf when using role auth or blank static keys, and fix null endpoint NPE in TerraformStateAutoConfiguration.
- Reuse DefaultCredentialsProvider and support default region chain fallback in PostgresAwsIamAuthDataSource.
- Add optional default EphemeralConfiguration.serviceAccountName (ExecutorEphemeralServiceAccount) for ephemeral executor pods.
- Add empty placeholder defaults for optional AWS properties in application*.properties.
@github-actions github-actions Bot added size/L 250-999 lines changed and removed size/XL 1000 or more lines changed, consider splitting labels Nov 29, 2026
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/scheduler Touches job scheduling, queueing or locking author/contributor Authored by a returning contributor size/L 250-999 lines changed terrakube-api terrakube-executor terrakube-registry type/feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant