Skip to content

Commit 26b1f1c

Browse files
authored
chore(docs/admin/infrastructure): call out and link to awsiamrds auth for aws rds (#15955)
Call out AWS IAM RDS db auth and clarify URL encoding requirement in postgres URL
1 parent 314bb67 commit 26b1f1c

File tree

6 files changed

+16
-10
lines changed

6 files changed

+16
-10
lines changed

cli/testdata/coder_server_--help.golden

+4-2
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,15 @@ OPTIONS:
5151
all available experiments.
5252

5353
--postgres-auth password|awsiamrds, $CODER_PG_AUTH (default: password)
54-
Type of auth to use when connecting to postgres.
54+
Type of auth to use when connecting to postgres. For AWS RDS, using
55+
IAM authentication (awsiamrds) is recommended.
5556

5657
--postgres-url string, $CODER_PG_CONNECTION_URL
5758
URL of a PostgreSQL database. If empty, PostgreSQL binaries will be
5859
downloaded from Maven (https://repo1.maven.org/maven2) and store all
5960
data in the config root. Access the built-in database with "coder
60-
server postgres-builtin-url".
61+
server postgres-builtin-url". Note that any special characters in the
62+
URL must be URL-encoded.
6163

6264
--ssh-keygen-algorithm string, $CODER_SSH_KEYGEN_ALGORITHM (default: ed25519)
6365
The algorithm to use for generating ssh keys. Accepted values are

cli/testdata/server-config.yaml.golden

+2-1
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,8 @@ cacheDir: [cache dir]
446446
# Controls whether data will be stored in an in-memory database.
447447
# (default: <unset>, type: bool)
448448
inMemoryDatabase: false
449-
# Type of auth to use when connecting to postgres.
449+
# Type of auth to use when connecting to postgres. For AWS RDS, using IAM
450+
# authentication (awsiamrds) is recommended.
450451
# (default: password, type: enum[password\|awsiamrds])
451452
pgAuth: password
452453
# A URL to an external Terms of Service that must be accepted by users when

codersdk/deployment.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -2284,15 +2284,15 @@ when required by your organization's security policy.`,
22842284
},
22852285
{
22862286
Name: "Postgres Connection URL",
2287-
Description: "URL of a PostgreSQL database. If empty, PostgreSQL binaries will be downloaded from Maven (https://repo1.maven.org/maven2) and store all data in the config root. Access the built-in database with \"coder server postgres-builtin-url\".",
2287+
Description: "URL of a PostgreSQL database. If empty, PostgreSQL binaries will be downloaded from Maven (https://repo1.maven.org/maven2) and store all data in the config root. Access the built-in database with \"coder server postgres-builtin-url\". Note that any special characters in the URL must be URL-encoded.",
22882288
Flag: "postgres-url",
22892289
Env: "CODER_PG_CONNECTION_URL",
22902290
Annotations: serpent.Annotations{}.Mark(annotationSecretKey, "true"),
22912291
Value: &c.PostgresURL,
22922292
},
22932293
{
22942294
Name: "Postgres Auth",
2295-
Description: "Type of auth to use when connecting to postgres.",
2295+
Description: "Type of auth to use when connecting to postgres. For AWS RDS, using IAM authentication (awsiamrds) is recommended.",
22962296
Flag: "postgres-auth",
22972297
Env: "CODER_PG_AUTH",
22982298
Default: "password",

docs/admin/infrastructure/architecture.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ external PostgreSQL 13+ database for production deployments.
9494

9595
A managed PostgreSQL database, with daily backups, is recommended:
9696

97-
- For AWS: Amazon RDS for PostgreSQL
97+
- For AWS: Amazon RDS for PostgreSQL (preferably using
98+
[RDS IAM authentication](../../reference/cli/server.md#--postgres-auth)).
9899
- For Azure: Azure Database for PostgreSQL
99100
- Flexible Server For GCP: Cloud SQL for PostgreSQL
100101

docs/reference/cli/server.md

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

enterprise/cli/testdata/coder_server_--help.golden

+4-2
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,15 @@ OPTIONS:
5252
all available experiments.
5353

5454
--postgres-auth password|awsiamrds, $CODER_PG_AUTH (default: password)
55-
Type of auth to use when connecting to postgres.
55+
Type of auth to use when connecting to postgres. For AWS RDS, using
56+
IAM authentication (awsiamrds) is recommended.
5657

5758
--postgres-url string, $CODER_PG_CONNECTION_URL
5859
URL of a PostgreSQL database. If empty, PostgreSQL binaries will be
5960
downloaded from Maven (https://repo1.maven.org/maven2) and store all
6061
data in the config root. Access the built-in database with "coder
61-
server postgres-builtin-url".
62+
server postgres-builtin-url". Note that any special characters in the
63+
URL must be URL-encoded.
6264

6365
--ssh-keygen-algorithm string, $CODER_SSH_KEYGEN_ALGORITHM (default: ed25519)
6466
The algorithm to use for generating ssh keys. Accepted values are

0 commit comments

Comments
 (0)