feat(minimal): add opt-in DB_SSL_ENABLED for RDS IAM-token auth - #151
Open
WolfangAukang wants to merge 1 commit into
Open
feat(minimal): add opt-in DB_SSL_ENABLED for RDS IAM-token auth#151WolfangAukang wants to merge 1 commit into
WolfangAukang wants to merge 1 commit into
Conversation
The privileged setup/delete MySQL client in the simplerisk-minimal entrypoint now honors DB_SSL_ENABLED. Set to exactly "true", it appends --ssl-mode=REQUIRED --enable-cleartext-plugin to the db_setup()/delete_db() mysql calls — required for RDS to accept an IAM auth token passed via DB_SETUP_PASS. Defaults off (fail-closed): any other value or unset preserves today's plaintext-capable connection, so published images are unaffected for existing consumers. Documented in CLAUDE.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
jsokol
approved these changes
Jul 30, 2026
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.
What
Adds an opt-in
DB_SSL_ENABLEDenv var to thesimplerisk-minimalentrypoint. When set to exactlytrue, the privileged setup/delete MySQL client (db_setup()/delete_db()) appends--ssl-mode=REQUIRED --enable-cleartext-plugin.Why
Required for the EKS per-account migration: the new CDK-provisioned RDS is IAM-auth-only (no master password). Deploy tooling will pass a short-lived RDS IAM auth token via
DB_SETUP_PASS; MySQL only accepts a token when the client sends it via the cleartext plugin, which in turn mandates TLS.Safety — default off, fail-closed
trueenables the flags. Unset /false/ any other value ⇒ unchanged plaintext-capable connection.Testing
Built the image from this branch and ran an integration test against a TLS-mandatory MySQL 8.4 (
--require_secure_transport=ON). 7/7 passed:DB_SSL_ENABLED=true(verified via bash xtrace of the realmysqlline); absent when unset.DB_SSL_ENABLED=true: full setup over the TLS-required server — DBsimpleriskand usersimpleriskcreated, container exits 0.🤖 Generated with Claude Code