Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update RDS and Redshift CA URL #9890

Merged
merged 3 commits into from
Jan 24, 2022
Merged

Conversation

greedy52
Copy link
Contributor

@greedy52 greedy52 commented Jan 21, 2022

fixes #9887

  • AWS has updated CA cert bundles for RDS and redshift.
  • For new RDS regional bundles, they do include old certs

Testing

Tested tsh db connect successful to the following:

  • RDS Mysql instance in ca-central-1 (this uses new cert that breaks with older Teleport)
  • Aurora postgres cluster in ca-central-1 (at the time of testing, it's still using old cert so both new vs old bundle work)
  • Redshift in ca-central-1

@greedy52 greedy52 added backport-required database-access Database access related issues and PRs labels Jan 21, 2022
@greedy52 greedy52 requested a review from r0mant January 21, 2022 20:44
@greedy52 greedy52 self-assigned this Jan 21, 2022
Copy link
Collaborator

@r0mant r0mant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@greedy52 Tried this with a few RDS/Aurora/Redshift databases I have in us-west-1, seems to work fine 👍

lib/srv/db/ca.go Outdated
return u
}
return rdsDefaultCAURL

return fmt.Sprintf("https://truststore.pki.rds.amazonaws.com/%s/%s-bundle.pem", region, region)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Move this into a variable below? Like

rdsDefaultCAURLTemplate = "https://truststore.pki.rds.amazonaws.com/%s/%s-bundle.pem"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-required database-access Database access related issues and PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fail to connect to RDS instance in ca-central-1
3 participants