-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add MariaDB to AWS RDS auto discovery #10333
Conversation
bc08bdc
to
2ee9f83
Compare
@@ -14,6 +14,11 @@ This guide will help you to: | |||
writing so it can't be used with Database Access. | |||
</Admonition> | |||
|
|||
<Admonition type="note" title="MariaDB supported versions"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The two back-to-back Admonitions are kind of hard to follow. I think we should include a single Admonition that starts with a general statement like, "The following products are not compatible with Database Access," followed by a two-item list that includes the products mentioned in these Admonitions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I merged and re-phrase the block. Let me know what do you think.
@@ -14,6 +14,11 @@ This guide will help you to: | |||
writing so it can't be used with Database Access. | |||
</Admonition> | |||
|
|||
<Admonition type="note" title="MariaDB supported versions"> | |||
The minimum supported version of MariaDB is 10.6. Older versions don't support |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: I would clarify that this is specifically for RDS MariaDB. Might be clear enough as it is given that this is RDS specific guide but I wonder if somebody might get confused by it anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was also thinking about it, but decided to skip as this is RDS only guide, but I don't see any harm with adding it.
lib/services/database.go
Outdated
// Min supported MariaDB version that supports IAM is 10.6 | ||
// https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html | ||
minIAMSupportedVer := semver.New("10.6.0") | ||
return ver.Compare(*minIAMSupportedVer) >= 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: I think using LessThan
is a bit more readable.
@@ -106,6 +106,14 @@ func (f *rdsDBInstancesFetcher) getRDSDatabases(ctx context.Context) (types.Data | |||
} | |||
databases := make(types.Databases, 0, len(instances)) | |||
for _, instance := range instances { | |||
if !services.IsRDSInstanceSupported(instance) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about Aurora clusters? Does Aurora provide MariaDB engine?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see MariaDB in Aurora (checked website + docs).
Co-authored-by: Paul Gottschling <[email protected]> Co-authored-by: Alan Parra <[email protected]>
80bdfa7
to
426202d
Compare
Lines 814 to 823 in b8cae1a
We haven't updated the version for docs? |
@@ -1,6 +1,6 @@ | |||
--- | |||
title: Database Access with AWS RDS and Aurora for PostgreSQL and MySQL | |||
description: How to configure Teleport Database Access with AWS RDS and Aurora for PostgreSQL and MySQL. | |||
title: Database Access with AWS RDS and Aurora for PostgreSQL, MySQL and MariaDB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To prevent this title from being truncated in Google's search results, we should get this to around 55 chars or less, e.g., by making it "Database Access with AWS RDS and Aurora." We can then add an h1
attribute to the frontmatter that uses the original title, "Database Access with AWS RDS and Aurora for PostgreSQL, MySQL and MariaDB." The h1
attribute is not used to populate the page's title
element, while title
is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good tip. I'd never think about it. Changed.
Co-authored-by: Roman Tkachenko <[email protected]>
Add support for MariaDB AWS RDS with IAM authentication version 10.6+. Co-authored-by: Paul Gottschling <[email protected]> Co-authored-by: Alan Parra <[email protected]> Co-authored-by: Roman Tkachenko <[email protected]>
Add support for MariaDB AWS RDS with IAM authentication version 10.6+. Backport #10333 Co-authored-by: Paul Gottschling <[email protected]> Co-authored-by: Alan Parra <[email protected]> Co-authored-by: Roman Tkachenko <[email protected]>
This PR adds auto-discovery to MariaDB RDS including docs changes. The minimum supported version is MariaDB 10.6 as AWS doesn't support IAM on older versions: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html