[codex] Add AWS RDS IAM auth token generator#1
Draft
cmellard wants to merge 1 commit into
Draft
Conversation
cmellard
force-pushed
the
codex/rds-iam-auth-token-generator
branch
4 times, most recently
from
May 8, 2026 11:11
8113a91 to
6c38471
Compare
Signed-off-by: Chris Mellard <134489780+cmellard@users.noreply.github.com>
cmellard
force-pushed
the
codex/rds-iam-auth-token-generator
branch
from
May 8, 2026 11:52
6c38471 to
ba901ae
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a namespaced
RDSIAMAuthTokengenerator for minting AWS RDS IAM auth tokens through External Secrets Operator.The generator uses ESO's existing AWS generator session helper and the AWS SDK RDS auth token builder. It emits
username,password,token,hostname,port,endpoint, andexpires_at, withpasswordandtokencarrying the same signed RDS IAM token so existing templates can mapDATABASE_PASSWORDwithout bespoke migration logic.API and wiring
generators.external-secrets.io/v1alpha1RDSIAMAuthToken.GeneratorRefusage andClusterGeneratorsupport.Validation
Local checks:
git diff --checkgo test ./...fromgenerators/v1/rdsiamgo test ./generators/v1alpha1 ./externalsecrets/v1 ./externalsecrets/v1beta1fromapisgo test ./esutils/resolversfromruntimego test ./pkg/registermake test.crdsmake helm.testrg -n "shuttlerock|cmellard|6477|cjj5p7evnugo" docs/snippets/generator-rdsiam*.yaml docs/api/generator/rdsiam.mdreturned no matchesLive proof in the preview cluster:
shuttlerock-cloud-cmellard-6477using controller classrds-iam-project.RDSIAMAuthTokenandExternalSecrettargeting a non-live test Secret.psqlpod using only the ESO-generated Secret connected successfully to RDS and returned the expected user, database, and schema.Notes
This PR is for downstream review in the Shuttlerock fork only. It is not intended as the upstream contribution PR yet; upstream should likely get a design proposal first because this adds a new CRD.