Commit Graph
271 Commits
Author SHA1 Message Date
Gavin Frazar 3ac0a0e4f2 update db guide introductions (#41442) 2024-05-14 22:55:38 +00:00
Paul Gottschling 127184f0a8 Break up /database-access/guides/ (#38574)
* Break up /database-access/guides/

Closes #17641

Organize the guides to enrolling databases in specific cloud providers
(or self-hosted databases) into separate subsections of the "Database
Actions" section, organized by cloud provider (or self-hosted).

We can later add general information to the index page of each
subsection about how Teleport database access works for each cloud
provider. The remaining guides in the "Guides" subsection have to do
with database-agnostic functionality of the Teleport Database Service.

This change also adds a redirect for each page it moves.

* Respond to greedy52 feedback

- In the "Database Access" intro page, move the self-hosted section
  first in the list of links to database-specific guides so it's less
  easy to miss.
- Change "AWS" to "Amazon" in product names.

* Fix linter issues

* Remove redirects added by the DB guide reorg

This prevents us from running into Vercel route limit issues, since the
number of redirects is large.
2024-05-14 20:44:59 +00:00
Gavin Frazar e1c47c0f21 fix docs step numbering (#41508) 2024-05-14 19:16:18 +00:00
Paul GottschlingandGavin Frazar f893ecbb29 Add own-CA instructions to self-hosted DB guides (#39924)
* Add own-CA instructions to self-hosted DB guides

Closes #14728

In guides where we show how to configure Teleport to protect a
self-hosted database that uses mTLS to communicate with the Database
Service, show how to configure the Database Service to trust a custom
CA.

This includes the following self-hosted database guides:

- Postgres
- Vitess
- MySQL
- Elasticsearch
- ClickHouse
- Standalone Redis
- Standalone MongoDB
- Cassandra/Scylla
- Oracle

This change does not touch guides that:
- Already include instructions to configure the Database Service to
  trust a custom CA via the `ca_cert_file` config field, e.g., the
  CockroachDB and Redis cluster guides.
- Use a different authentication mechanism, e.g., the SQL Server PKINIT
  guide.

* Respond to feedback

- Change `db-client` to `db_client` in commands beside `tctl auth
  export`. (greedy52)
- Use consistent Proxy Service example addresses in the Clickhouse
  guide. (Tener)
- Fix wording around the function of a CA. (GavinFrazar)
- Clarify remote `tctl` permissions in partials. (GavinFrazar)
- Clarify the need for `Db` impersonation privileges. (GavinFrazar)

* Update docs/pages/includes/database-access/self-hosted-introduction.mdx

Co-authored-by: Gavin Frazar <gavin.frazar@goteleport.com>

* Respond to greedy52 feedback

- Edit `tctl-auth-sign-3-files.mdx` to instruct the user to append the
  database client CA to your database's existing cert file.
- Use Tabs for tctl-auth-sign-3-files.mdx

---------

Co-authored-by: Gavin Frazar <gavin.frazar@goteleport.com>
2024-05-09 18:38:05 +00:00
STeve (Xin) Huang d70274a776 [docs] remove steps to download isrgrootx1.pem for MongoDB atlas (#41366) 2024-05-09 18:32:23 +00:00
STeve (Xin) Huang 978106414f [docs] Update DB access AWS IAM reference page (#38881)
* [docs] Update DB access AWS IAM reference page

* add other aws databases

* reword and fix a few spots

* remove please and add the for service

* address review coments

* fix spelling

* fix link
2024-05-06 18:04:31 +00:00
Rafał Cieślak 453bb211d4 docs: Use db-client instead of db_client for tctl auth export (#40867) 2024-04-24 18:05:51 +00:00
Steven Martin d6dadc2cf4 docs: update docs cert validity period descriptions (#40540) 2024-04-14 19:21:35 +00:00
Paul Gottschling 2141d7ade7 Add architectural information to database guides (#39979)
* Add architectural information to database guides

Closes #21540

Rather than attempt to describe the entirety of the database access
architecture in the `/docs/database-access/architecture/` guide, this
change:

- Edits the architecture guide to clarify that authentication between
  the Teleport Database Service and each proxied database depends on the
  database.
- Adds a "How it works" H2 before the "Prerequisites" H2 of each how-to
  guide for accessing a specific database, describing the architecture
  of the setup shown in the guide.

* Respond to greedy52 feedback

- Correct the DynamoDB and OpenSearch architecture descriptions.
- Correct the AWS Redis architecture description by moving a description
  from later in the page. Also adds Redis ACL to the prerequisites.
- Edit the Azure Cache for Redis and Azure MySQL and PostgreSQL guides
  to say "Microsoft Entra ID" in the architecture section. This change
  does not attempt to correct "Azure AD" elsewhere in the guides, as
  this entails fixing UI instructions that are outside the scope of the
  PR.
2024-04-09 17:08:05 +00:00
Paul Gottschling 0fcb04e7c1 Remove auto-discovery from specific DB guides (#39030)
* Remove auto-discovery from specific DB guides

Closes #22942

Help users enroll specific databases with Teleport while directing them
auto-discovery instructions if they want to go that route.

- Revert #30913 for guides to enrolling specific databases. For guides
  that always included auto-discovery instructions, add instructions to
  enroll databases at specific URLs.
- Add a note in the introduction sections of AWS guides that it is
  possible to enroll AWS databases with auto-discovery, linking to the
  relevant guide.

* Respond to greedy52 feedback

- Remove auto-discovery notes where they are incorrect.
- Remove unneeded `id` flags.
- Use `teleport db configure create` for Redshift Serverless, removing
  unneeded config fields. Also add the `aws-bootstrap.mdx` partial to
  the Redshift Serverless guide, making it more consistent with other
  guides that include `teleport db configure bootstrap` instructions.
- Minor spelling/grammar tweaks.
- Fix example description outputs.
- Use URI/protocol flags in `rds-proxy.mdx` instructions.
- Restore `opensearch` to `database-config.yaml`.

* Respond to greedy52 feedback

- Add the `--name` parameter to `db configure create`
- Edit `tsh db ls` output in the RDS guide

* Fix linter issues
2024-04-08 18:27:39 +00:00
Krzysztof SkrzętnickiandPaul Gottschling cfc1222bfb [docs] Database Access Controls (#39109)
* Documentation: Database object permissions

* Address review feedback

* Add note about admin user permissions

* Review feedback

* Address review feedback

* Suggest clarifications in the introduction (#39725)

Add more context around what a database object is.

* fix lint

* Update feature name

* clarify import process description

* rephrase

* minor changes

* typo/cspell fixes

* silence misguided warning

* lint disable

---------

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
2024-04-04 10:31:01 +00:00
Paul Gottschling 6bf0130df9 Simplify install-linux.mdx (#40013)
Closes #38933

Simplify the instructions in the `install-linux.mdx` partial by
including instructions for the one-line installation script instead of
having the user choose the Teleport edition from a dropdown menu, then
choose a package manager. The one-line installation script chooses a
package manager automatically.

Since we only include `install-linux.mdx` in guides to installing
Teleport on agent nodes, instruct the user to get the version of either
the automatic updater (if automatic updates are enabled) or the Teleport
cluster.

This approach has the advantage of not using tabs, so it creates less
noise when authors include this partial in a `Tabs` component.

Also include a link to our installation guide at the end of the partial
for readers who want more information on our package repos.
2024-03-29 16:49:18 +00:00
STeve (Xin) Huang 816fc633dc Update aws no credential provider troubleshooting and psql SSL error (#39376)
* Update aws no credential provider troubleshooting and psql SSL error

* move commands to code block

* remove  modify-instance-metadata-options
2024-03-19 17:05:14 +00:00
Paul Gottschling 5daa164fb7 Reorganize two Access Controls sections (#38094)
* Reorganize two Access Controls sections

Partially addresses #37558

- Remove the Kubernetes Federation guide. This is more of a side note
  about `tsh login` with trusted clusters, and gets very little traffic.
  Consolidate it with the trusted cluster guide, which is more popular.
  This allows us to remove the "Manage Access" subsection of "Kubernetes
  Access", which only contains this and the RBAC how-to guide.

- Collapse the Kubernetes RBAC how-to guide into "Manage Access" to make
  it more discoverable.

- Collapse the "Configuring Access" guide for databases into "RBAC". The
  section contains a single guide, so this makes the content more
  discoverable.

* Respond to tigrato feedback

- Add `tsh kube login` instructions to the trusted cluster guide
  changes.

* Fix linter issues
2024-03-12 18:35:58 +00:00
STeve (Xin) Huang b043372f40 [docs] GCP MySQL IAM authentication support (#38943)
* [docs] GCP MySQL IAM authentication support

* review comments

* remove legacy OTP flow

* address review comments
2024-03-07 20:40:15 +00:00
Paul Gottschling 176935cbfa Remove Teleport Team mentions from the docs (#38940)
- Remove the `team` scope from config.json.
- Edit the Edition comparison table to remove the "Team" column.
- Change the Teleport Team getting started guide to a Teleport
  Enterprise Cloud getting started guide.
- Remove other Teleport Team mentions from the docs.
2024-03-05 17:17:15 +00:00
Paul Gottschling 91480dae09 Add a Discovery Service section (#38848)
* Add a Discovery Service section

Closes #38741

Add a dedicated sidebar section for the Teleport Discovery Service.
Since the Discovery Service is a separate agent service from the SSH
Service, Kubernetes Service, etc., it makes sense to add a dedicated
section for this service. In the future, we can include configuration
guides, architecture guides, etc. in this section.

To create the new section, this change moves existing auto-discovery
guides from other sections of the docs.

* Respond to hugoShaka feedback

- Move the Kubernetes application discovery docs
- Edit the "Kubernetes Access" intro to include a link to Kubernetes
  auto-discovery
2024-03-01 16:58:26 +00:00
Paul Gottschling 4b873f88f8 Remove ScopedBlocks from the docs (#38698)
There was a lingering one in the self-hosted ClickHouse guide. Remove it
to help with the Mintlify migration and render diagrams as expected.
2024-02-28 18:58:03 +00:00
Gavin Frazar 6fad74e86c [docs] add postgresql query cancellation troubleshooting (#38352)
* add postgresql query cancellation troubleshooting

* link to psql docs

* explain how to find a query pid in redshift

* fix lint
2024-02-24 08:20:54 +00:00
Gavin Frazar 7cec562a5f add DB CA migration and rotation guides (#38137)
* add nav slugs for DB CA migration and rotation guides
* add DB CA guides
* use --phase last in CA rotation guide example commands, so they're less tedious to
  edit
* link to the database CA rotation guide for db and db_client CA rotation
* deprecate spec.ca_cert in db reference
* recommend parallel database ca rotation
* explain reconfig post rotation to fix db vuln
* update cspell to ignore -noout
2024-02-21 01:49:47 +00:00
STeve (Xin) Huang 902c3e22cd More DB auto-user troubleshooting (#37659)
* More DB auto-user troubleshooting

* review comments

* fix lint/spell

* remove Admonitions for mysql compat
2024-02-08 14:28:13 +00:00
Gavin Frazar e95f884283 [docs] update self-hosted db guides (#37606)
* fix indentation of note in mongo guide

* note redis version limits next to version prereq

* extract custom db tls CA snippet from MongoDB

* update pre-reqs for self-hosted cluster databases

* expand tls config setup in CockroachDB guide

* remove redis cluster tls-cluster no config tab

This config still requires a custom CA, so it's pointless
and less secure.
It also doesn't work with the rest of the guide steps currently.

* use code block instead of sh in redis cluster doc

* dont explain tctl auth sign setup when unused

* fix redis-cluster code block

* describe teleport trust setup last

* clarify cluster creation certs

* use more descriptive tab labels for cockroachdb

* only mention lack of support for RESP3

redis 7.0 is supported with RESP2, no need to call it out.
2024-02-08 00:27:42 +00:00
STeve (Xin) Huang c26314652a [docs] IAM-auth-as-IAM-roles for Redshift (#34940)
* [docs] IAM-auth-as-IAM-roles for Redshift

* new section for iam role auth

* clarify two methods

* review comments

* fix spelling, thanks to docs lint!
2024-02-01 16:52:50 +00:00
Paul Gottschling 9bf68d510b Update docs version mentions to reflect v15 (#37094)
* Update docs version mentions to reflect v15

- Remove mentions of pre-v12 versions. We mention the version prior to
  the earliest supported version in case some users still need to
  upgrade.

  This includes removing the Helm migration guide from v11 to v12. The
  idea is that Teleport users should be on v12 already (the earliest
  supported version before we released v15), so this guide should not be
  needed.

- Updated the supported version table in the FAQ.

* Respond to feedback

Restore the v12 migration guide with a note to remove it in v16.
2024-01-26 20:30:37 +00:00
Gavin Frazar e156419135 update self-hosted database guides (#36260)
* update self-hosted database guides

* update cockroach db pre-req

* update mongo db pre-req

* update redis cluster labels example
2024-01-24 01:41:00 +00:00
Krzysztof SkrzętnickiandPaul Gottschling 0d877b1c5b Add a note regarding default db permissions (#37086)
* Add a note regarding default db permissions

* Reformat, steer away from modifying `teleport-auto-user`

* Update docs/pages/database-access/auto-user-provisioning/mysql.mdx

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Update docs/pages/database-access/auto-user-provisioning/mysql.mdx

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

---------

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
2024-01-24 00:46:43 +00:00
STeve (Xin) Huang 3f53751628 [docs] select db roles support for auto-provisioned db (#36648)
* [docs] select db roles support for auto-provisioned db

* update cli reference
2024-01-18 14:39:02 +00:00
Steven Martin 61a0b88952 docs: correct wording in Vitess instrs (#36371) 2024-01-08 18:08:51 +00:00
Krzysztof Skrzętnicki 71fd30e251 Add Vitess guide (MySQL protocol) (#35650)
* Add Vitess guide (MySQL protocol)

* Update cspell
2023-12-13 11:57:22 +00:00
Steven Martin de0eb1db2d docs: getting started db example didn't write to /etc/teleport.yaml (#35510) 2023-12-07 21:30:17 +00:00
Gavin Frazar 0562ce0a0d use rds proxy port instead of proxy target port (#35347)
* use rds proxy port instead of proxy target port

* remove unused func and IAM permissions
2023-12-05 20:21:44 +00:00
STeve (Xin) Huang 1d00963d13 [docs] MongoDB auto-user provisioning (#34939)
* [docs] MongoDB auto-user provisioning

* simplify role includes

* pr review comments

* fix spell
2023-12-05 18:02:10 +00:00
Paul Gottschling 683d99a0c8 Update diagrams in the docs (#35143)
* Update diagrams in the docs

Closes #31324

We introduced a new Lucidchart library for adding diagrams to docs
pages. This change:

- Replaces all MermaidJS diagrams with ones that use the new library,
  which enables us to phase out the `remark-mermaid` plugin.
- Replaces some other diagrams with the new library.

* Minor tweaks to diagram images

Responds to strongeron feedback
2023-12-04 21:50:09 +00:00
STeve (Xin) Huang da6646287b [docs] AWS management console duration troubleshoot, DB fixes (#35074)
* [docs] AWS management console duration troubleshoot, DB fixes

* fix spell

* review comments
2023-12-03 02:29:42 +00:00
STeve (Xin) Huang 5ba3457494 [docs] clarify database name override label (#34858)
* [docs] clarify database name override label

* fix link

* mark teleport.dev/database_name as legacy

* apply h3 and remove Admonition
2023-11-30 14:27:27 +00:00
Zac Bergquist 214a898778 docs: fix typo in Postgres guide (#35036) 2023-11-28 21:52:21 +00:00
Gabriel Corado 0f5f506bd3 [Docs] Add necessary permission for using auto-provisioned user deletion on MariaDB guide (#34298)
* docs(mariadb): add aditional permission for teleport-admin user

* docs(database-access): update best_effort_drop mode definition

* docs(database-access): add missing permission to self-hosted mariadb
2023-11-28 16:26:50 +00:00
STeve (Xin) Huang 7f3c58df1f Add default database support for PostgreSQL Auto-user provisioning (#34420)
* Added "defaultDatabase" support for Postgres auto-user provisioning

* update doc
2023-11-15 15:26:10 +00:00
STeve (Xin) Huang 10f42863fe [docs] MemoryDB IAM auth (#34397) 2023-11-10 23:02:22 +00:00
Paul Gottschling a9629c87ec Remove version warnings in Details boxes (#34413)
Fixes #29913

The `Details` box is the wrong component for a version warning, since
this box is meant for users to expand and collapse, and there is no
benefit of expanding and collapsing a version warning. Depending on the
guide, this change either:

- Integrates the version warning into the Prerequisites section of a
  how-to guide
- Makes the version warning regular text within the introductory section
2023-11-09 21:16:40 +00:00
Gavin Frazar a717e8f7a0 fix step number (#34174) 2023-11-03 17:55:16 +00:00
Steven Martin c149341acb docs: add join token in MySQL CloudSQL config (#34136) 2023-11-02 15:44:36 +00:00
Paul Gottschling 913c3fb70b Remove "Preview" designation (#33899)
* Remove "Preview" designation

Teleport is moving away from the concept of a preview feature. This
change reflects this move on the docs site.

* Respond to zmb3 feedback

Restore the "Preview" note to the AI Assist page.
2023-10-27 16:13:12 +00:00
Paul GottschlingandGus Luxton 0afe60558e Explain template variables wherever they appear (#32755)
* Explain template variables wherever they appear

Closes #13377

Wherever a page in the docs mentions the `internal` or `external`
template variables as they apply to Teleport roles, link to the Teleport
Access Controls Reference
(docs/pages/access-controls/reference.mdx#roles).

A separate change (#32696) will expand the Access Controls Reference to
include more information on the `external` and `internal` template
variables.

* Respond to zmb3 feedback

Refer to `internal` and `external` as traits instead of template
variables.

* Apply suggestions from code review

Co-authored-by: Gus Luxton <gus@goteleport.com>

* Linter fixes

---------

Co-authored-by: Gus Luxton <gus@goteleport.com>
2023-10-27 15:25:08 +00:00
Paul SchisaandMarek Smoliński 454bfc7280 Update Oracle DB docs and messaging (#33751)
* Update Oracle DB docs and messaging

update the docs and `tctl auth sign` instructions to call out the need to have the file permissions set to the oracle user

* Update oracle-self-hosted.mdx

* Update oracle-self-hosted.mdx

* Update docs/pages/database-access/guides/oracle-self-hosted.mdx

Co-authored-by: Marek Smoliński <marek@goteleport.com>

* Update tool/tctl/common/auth_command.go

Co-authored-by: Marek Smoliński <marek@goteleport.com>

* Update auth_command.go

---------

Co-authored-by: Marek Smoliński <marek@goteleport.com>
2023-10-25 17:48:13 +00:00
STeve (Xin) Huang 4c2dd577cb [docs] Database Automatic User Provisioning for MariaDB and Redshift (#33888)
* [docs] Database Automatic User Provisioning for MariaDB and Redshift

* fix spelling
2023-10-25 16:46:58 +00:00
Gabriel Corado 860623e72a Update docs with database user auto provisioning modes (#33819)
* docs(database-access): update create database user mode role option

* docs(database-access): review updates

* docs(database-access): review changes
2023-10-24 20:39:23 +00:00
STeve (Xin) Huang 4f628a23bd [docs] Automatic user provisioning for MySQL (#33084)
* [docs] Automatic user provisioning for MySQL/MariaDB

* remove mariadb

* address comments

* add Admonition for database username

* fix lint (links)
2023-10-20 13:37:29 +00:00
Steven Martin 71da63ab94 docs: include all db protocols in faq and config (#33495) 2023-10-18 15:20:32 +00:00
STeve (Xin) Huang c48753b624 [docs] clarify RDS/Aurora databases getting modified (#33312) 2023-10-12 17:48:03 +00:00