Repository navigation
doc: show the RDS CA bundle in the MySQL IAM example - #40925
Open
val-materialize wants to merge 1 commit into
Open
val-materialize wants to merge 1 commit into
val-materialize wants to merge 1 commit into
Conversation
The MySQL IAM authentication example uses SSL MODE verify_identity without a certificate authority. Amazon RDS certificates are signed by Amazon's own CAs, which are not in the system's default CA certificates, so the example needs the RDS certificate bundle. Add the secret and SSL CERTIFICATE AUTHORITY, and explain when it is needed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This branch has not been deployed
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.
Motivation
Fixes SS-601. Follow-up from review on #40911. The MySQL "AWS IAM" example for
CREATE CONNECTIONusesSSL MODE 'verify_identity'but does not supply a certificate authority. Amazon RDS certificates are signed by Amazon's own CAs, which are not in the system's default CA certificates, so the example as written should fail certificate verification.The same fix for the new PostgreSQL example is in #40923.
Description
SSL CERTIFICATE AUTHORITY.verify_ca,verify_identity) and when it is not (required), with a link to the AWS download page.MySQL IAM authentication is already released, so this does not need to wait for a release.
Verification
Not tested against a real RDS MySQL instance. It is based on:
MySqlConnection::configinsrc/storage-types/src/connections.rs, which forVerifyCaandVerifyIdentitytrusts the platform's root certificates plusSSL CERTIFICATE AUTHORITY.verify_fullto RDS and Aurora PostgreSQL passed with the RDS bundle supplied.A reviewer who has run MySQL IAM auth against RDS should confirm two things: that verification fails without the bundle, and that a multi-certificate regional bundle is accepted as a single
SSL CERTIFICATE AUTHORITYvalue.🤖 Generated with Claude Code