Commit Graph
151 Commits
Author SHA1 Message Date
Marco Dinis 10fb24adee Docs: fix links to Azure portal (#53789) 2025-04-09 16:37:28 +00:00
Paul Gottschling e1ded6c334 Remove legacy TabsItem usage (#53638)
Deprecating this tag in favor of the Docusaurus-native TabItem.
2025-04-07 12:29:26 +00:00
STeve (Xin) Huang 70ccd1bb14 [docs] Move discovery reference and fix ElastiCache/MemoryDB db access reference (#52854)
* Move discovery reference and fix ElastiCache/MemoryDB db access reference

* adding redirect

* fix spelling

* fix trailing slash

* fix links

* change to wildcard
2025-03-26 15:37:18 +00:00
Paul Gottschling 861128ac83 Fix 18 vale warnings (#53300)
Include inlining the partial:

docs/pages/includes/machine-id/recover-circle-ci-claims.mdx

This is because it's only used by two pages and, as a partial, violates
the rule in which each Var with a given name must be used multiple
times on a single page. Since this Vale rule uses the `raw` scope, it is
not possible to ignore it with an MDX comment.
2025-03-24 14:24:51 +00:00
Paul Gottschling 3156fa9e3c Fix 18 Vale warnings related to Var components (#52810)
`Var` components with a particular `name` should have multiple instances
in a given page.
2025-03-18 16:27:50 +00:00
Paul Gottschling 6023797386 Use the Docusaurus format for Details (#53009)
See gravitational/docs-website#91

Docusaurus uses semantic HTML tags instead of a custom Details
component. Replace instances of our Details component with the
`<details>` and `<summary>` tags so we do not need to perform a
conversion when building the docs website.
2025-03-13 17:32:59 +00:00
Paul Gottschling 3ba805f5d9 Remove two-dimensional and dropdown-only docs Tabs (#52395)
Closes gravitational/docs-website#70

`Tabs` components that use a dropdown menu do not render on the
Docusaurus site. Since there are not many of these in the docs content,
it makes sense to change them to standard `Tabs` components instead of
porting the legacy `Tabs` behavior to the new Docusaurus site.

- Change long picker partials to use a standard `Tabs` component instead
  of a dropdown menu. While this is not ideal, it standardizes the
  `Tabs` component in the docs to only use attributes that the docs
  engine can process. All `TabItems` render as expected.
- Remove an unused partial that uses two-dimensional `Tabs`
  (`docs/pages/includes/install-linux-self-hosted.mdx`).
- In some guides, collapse two-dimensional `Tabs` components to only
  require one dimension.
- In `install-linux-enterprise.mdx`, use the one-line installation
  script to simplify the instructions and avoid using `Tabs` entirely.
2025-03-12 18:59:17 +00:00
Paul Gottschling 05ddbac104 Remove unused partials (#52983)
Used this command:

```
$ find docs/pages/includes -type f | xargs \
 -I{} bash -c 'grep -qR {} docs/pages || rm {}' \;
```
2025-03-12 12:08:45 +00:00
Paul Gottschling 1c31b5e4a8 Remove Figure tags (#52929)
See gravitational/docs-website#95

The docs engine currently unwraps them, meaning that they are no-op
components. Remove these so we can delete the Figure-unwrapping code.
2025-03-11 12:08:41 +00:00
Paul Gottschling 0fbbeff50c Replace Notices with Docusaurus syntax (#52634)
Use Docusaurus syntax for admonitions so the docs engine does not need
to replace these. This is one step toward removing the
`remark-update-tags` plugin. See: gravitational/docs-website#94

Relevant commands are included below to make reproducing this work
easier.

1. Replace all `Notice` tags with `Admonition` tags.

2. Add `type="info"` if an Admonition is missing a type.

   To find instances:

   ```
   find docs/pages -name "*.mdx" -exec awk '
   BEGIN{a=0}
   a==0 && /<Admonition/{ a = 1 }
    a==1 && /type/{t = 1}
    a==1 && />/{ a = 0; if(t == 0) print FILENAME ":" FNR }' {} \;
   ```

3. Replace `type="notice"` with `type="note"`.

   To find instances:

   ```
   find docs/pages -name "*.mdx" -exec awk '
   BEGIN{a=0}
   a==0 && /<Admonition/{ a = 1 }
    a==1 && /type="notice"/{t = 1}
    a==1 && />/{ a = 0; if(t == 1) print FILENAME ":" FNR }' {} \;
   ```
2025-03-04 15:51:27 +00:00
Steven Martin ec84048aac docs: update self-hosted config for db (#52407) 2025-02-27 11:44:09 +00:00
Paul Gottschling 2276871f23 Fix 34 vale warnings (#52367) 2025-02-21 13:29:57 +00:00
STeve (Xin) Huang f44af9b61d [docs] PostgreSQL auto-user provisioning guide minor edits (#48897)
* [docs] PostgreSQL auto-user provisioning guide minor edits

* remove admin option from rds_superuser and add note on admin option for each role
2025-01-30 17:52:43 +00:00
Paul Gottschling 4a2d8916d0 Remove v13 mentions in the docs (#50831)
* Remove v13 mentions in the docs

Our policy is to remove mentions of the version prior to the most recent
deprecated version.

This change includes mentions of v13 in Helm chart values file comments.

* Clarify distroless images in Helm values

Responds to hugoShaka feedback.
2025-01-08 19:37:21 +00:00
e6c23cd97f Update docs to mention PostgreSQL access through WebUI (#50363)
* feat(docs): add mention to postgres webui access

* Apply suggestions from code review

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
Co-authored-by: STeve (Xin) Huang <xin.huang@goteleport.com>

* refactor(docs): code review suggestions

* refactor(docs): expand limitations section

* docs: fix typo

---------

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
Co-authored-by: STeve (Xin) Huang <xin.huang@goteleport.com>
2024-12-24 01:26:19 +00:00
Paul Gottschling a51b78b4e6 Fix TTL mistake in a partial (#50401)
Closes #47068

The TTL shown in a `tctl auth sign` command does not correspond to the
description of the TTL. Fix the description while making the TTL an
integer divisible by 24.
2024-12-19 14:49:44 +00:00
Paul Gottschling b975c0e5f5 Correct Vale lint errors in partials (#49798)
One edge case is the `structure.architecture-h2` warning in
`docs/pages/includes/database-access/rds-proxy.mdx`. This is technically
correct, since the "How it works" section is before the "Prerequisites"
section. We can determine whether this is a bug to fix in a separate
change.
2024-12-09 19:50:55 +00:00
Steven Martin c135d34b0a docs: update db self-hosted for custom ca (#49599) 2024-12-02 21:39:34 +00:00
Marco Dinis f0a30b3cb1 Docs: add discovery_group to teleport.yaml/discovery_service examples (#48362)
* Docs: add discovery_group to teleport.yaml/discovery_service examples

When the discovery_group is not configured, teleport will log a warning
message saying that it is recommended.
Some configuration examples do not include it, so when users use that
example to implement their own variation, it will output a warning
message.
After seeing that warning users might wonder if there's anything wrong
with their `teleport.yaml`.
Instead, we add a discovery_group to all examples so that users don't
get that message.

* explain discovery group

* use partial instead
2024-11-12 17:11:03 +00:00
Paul Gottschling 75cdbcbef8 Restructure docs menu pages (#47797)
Docusaurus [sidebar
generation](https://docusaurus.io/docs/next/sidebar/autogenerated)
expects category index pages to have one of three file path conventions:

- `section/index.mdx`
- `section/README.mdx`
- `section/section.mdx`

This change standardizes category index paths on the third convention so
Docusaurus sidebar generation succeeds. We can then add checks to the
current docs site to prevent additional menu pages from violating this
convention.

This change also adds redirects to the new category index pages, and
updates internal links to pages that were moved.

Note that this change does not move all relevant menu pages. We still
need to reorganize the `reference/terraform-provider` section. Since
this section is automatically generated, we need another approach to
restructuring it.
2024-10-25 12:43:45 +00:00
Paul Gottschling fdf9e25a10 Simplify how-to guides (#47586)
Closes #38931

Remove "Static" and "Dynamic" configuration branching. Use the dynamic
approach unless the guide already shows readers how to use the static
approach elsewhere, e.g., using `teleport db configure create`.

For example, in the AWS OpenSearch guide, creating a Teleport
configuration is required for the guide anyway, so this change uses only
the static approach.

Ignore edge cases where the branching has some qualities that are unique
to a specific guide:

- `application-access/cloud-apis/google-cloud.mdx`: includes branching
  on authentication preference type.
- `application-access/guides/connecting-apps.mdx` because it explains
  syntax differences between the static and dynamic approaches.
- `enroll-aws-databases/aws-cross-account.mdx`: branches using three
  tabs, so editing requires another approach than the one this change
  applies.

This change edits only how-to guides, not conceptual guides, since the
goal of a how-to guide is to get the user to an end state as quickly as
possible.
2024-10-17 14:28:05 +00:00
Paul Gottschling 1f8e27049d Fix unresolves partial params (#47359)
This fixes a build issue when using the new docs engine.
2024-10-09 17:22:05 +00:00
Steven MartinandSteven Martin afd7ef5c5c docs: use code instead of shell (#46327)
* docs: use code instead of shell

* docs: revert generated file

* docs: update shell styling for generated file

---------

Co-authored-by: Steven Martin <stevenmartin@Stevens-MBP.fios-router.home>
2024-09-06 13:21:45 +00:00
Gavin Frazar 8fec505ab0 fix elasticache/memorydb permissions (#46052) 2024-08-31 01:22:45 +00:00
a27499f63f Oracle Exadata docs (#45732)
* A handful of smaller fixes.

* Oracle Exadata guide.

* Apply suggestions from code review

Co-authored-by: STeve (Xin) Huang <xin.huang@goteleport.com>

* Apply suggestions from code review

Co-authored-by: Roman Tkachenko <roman@goteleport.com>

* Reorganise, update doc.

* Update docs/pages/enroll-resources/database-access/enroll-self-hosted-databases/oracle-exadata.mdx

Co-authored-by: STeve (Xin) Huang <xin.huang@goteleport.com>

* Update docs/pages/enroll-resources/database-access/enroll-self-hosted-databases/oracle-exadata.mdx

Co-authored-by: STeve (Xin) Huang <xin.huang@goteleport.com>

* A few minor corrections and clarifications.

* Move to 'managed databases' from 'self-hosted'.

* Update index page.

* include intro for non-self-hosted dbs

* extend cspell.json with extra random words

* Fix lint warnings which are treated as errors.

---------

Co-authored-by: STeve (Xin) Huang <xin.huang@goteleport.com>
Co-authored-by: Roman Tkachenko <roman@goteleport.com>
2024-08-30 11:48:50 +00:00
Steven MartinandSteven Martin 159fbbdc67 docs: remove Var from diff sections (#45719)
* docs: update desktop access getting started

* docs: restore diff for section

* docs: remove variables from diff sections

---------

Co-authored-by: Steven Martin <stevenmartin@Stevens-MBP.fios-router.home>
2024-08-26 12:46:08 +00:00
Gavin Frazar eb448ffd6b eliminate bootstrap command steps from docs (#45459)
* delete the bootstrap docs partial file
* for redshift-serverless guide specifically:
- the user role's trust policy does not need to include ec2
- fix the title to use Amazon instead of AWS
- rename the IAM role to better indicate its purpose
- clarify which database service we are referring to
2024-08-24 00:45:17 +00:00
Gavin Frazar dcedc95325 update AWS db discovery guide (#45458)
* generalize the guide for any kind of AWS database
* add db service deployment steps
* add more troubleshooting info
2024-08-23 22:04:06 +00:00
Paul Gottschling dfb94c872e Simplify the docs site navigation (#44327)
Provide a less overwhelming documentation experience for users by
condensing sidebar sections into five, organized loosely around
different audiences of the documentation:

- **Get Started:** new Teleport users, as well as users of all levels
  who want to quickly look up key, frequently changing information, such
  as the changelog and upcoming release information.
- **Admin Guides:** intermediate users completing a specific task. This
  includes all how-to guides in the docs except those in "Get Started"
  and "Enroll Resources".
- **Enroll Resources:** Admin Guides, but for our extensive library of
  how-to guides for protecting infrastructure resources with Teleport.
- **References:** Advanced users looking for comprehensive reference
  information and architecture guides. This includes all reference
  guides in the docs.
- **User Guides:** Guides for end users looking to access resources.

Related changes:
- **Move Helm reference partials**. Use the `docs/pages/includes`
  directory so we can generate the sidebar from `docs/pages/reference`.
- **Move the Architecture sidebar section** into "References", and move
  architecture guides across the documentation into "Architecture".
- **Remove "Documentation Overview"** as this is out of date. Now, top-level
  sidebar sections are more self explanatory.
- **Remove "Choose an Edition"**, since we want to elevate Teleport
  Enterprise (Cloud), making Teleport Enterprise (Self-Hosted) available
  for certain use cases.
- **Add an infrastructure as code section** to Admin Guides.
2024-08-05 18:04:01 +00:00
STeve (Xin) Huang c159eb7b47 DocumentDB guide (#43888)
* DocumentDB guide

* update diagrams and add screenshots

* fix img link

* review comments

* address comments from Paul

* add docdb and sasl to spelling
2024-07-23 19:19:42 +00:00
Gavin Frazar 74544d3a5d revamp database AWS IAM reference (#44042)
* move the discovery/database service permissions into partials
* replace the dynamic IAM permissions setup with simple permissions
* add a reference section for the discovery service
* remove details wrappers from IAM role trust setup partial
2024-07-17 18:39:35 +00:00
Paul Gottschling c94a2b1cef Condense docs sections into "Enroll Resources" (#43979)
The number of sections on the left sidebar makes the documentation
difficult to navigate. This change reduces the number of sidebar
sections by creating an "Enroll Resources" section from sidebar sections
related to protecting infrastructure resources with Teleport.

This change configures the sidebar for the Enroll Resources section to
be automatically generated. Since the generator expects each
subdirectory of a section to have a corresponding table of contents
page, this change also adds missing table of contents pages.

In some cases, we can repurpose an existing section introduction page
for a section's table of contents page. In other cases, the introduction
spends too much time on providing context to make for a useful table of
contents, so this change adds a separate table of contents page. Table
of contents pages use the `(!toc!)` syntax to list links automatically
based on the file system.

This change also adds redirects based on mentions of Teleport docs URLs
in the Web UI source, and removes all other redirects to avoid exceeding
the maximum number of routes in Vercel.
2024-07-11 21:20:33 +00:00
Gavin FrazarandPaul Gottschling 17925b4a01 add discovery tip partial in database guides (#43943)
* add discovery tip partial in database guides

* Update docs/pages/includes/database-access/auto-discovery-tip.mdx

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

---------

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
2024-07-09 23:55:55 +00:00
Gavin Frazar a06f68dc16 [docs] remove iam user instructions (#43832) 2024-07-08 16:29:45 +00:00
STeve (Xin) Huang 3d8fb11869 Add a database TLS option to trust system CAs (#43286)
* Add a database TLS option to trust system CAs

* add doc

* review comments

* make derive
2024-06-24 16:33:45 +00:00
Gavin Frazar b1abf03f6b [docs] generalize tctl token partial (#43137)
* use --format=text for discovery guide join token

* generalize the tctl join token include

* remove default tokenFile from partial
2024-06-21 04:09:12 +00:00
Gavin Frazar c6385f3c9d [docs] update RDS guides (#41682)
* update RDS guide

* fixup aws db slugs

* remove use of the AWS acronym
* sort the links alphabetically

* use Cloud-Hosted phrasing
2024-06-10 21:32:54 +00:00
Gavin Frazar ec806f7df3 [docs] add Google Cloud Spanner integration docs (#41804)
* add Google Cloud Spanner integration docs

* spanner database-access guide
* update database config reference
* update GUI client docs with DBeaver and DataGrip instructions for
  Cloud Spanner

* use code to avoid hyperlinking example email
2024-06-02 23:42:35 +00:00
Steven MartinandSteven Martin 3829411ff0 docs: update helm install for db and app labels (#42027)
* docs: update helm install for db labels

* docs: include apps example label

---------

Co-authored-by: Steven Martin <my-email>
2024-05-27 12:49:47 +00:00
Gavin Frazar dd8071333e update GCP Cloud SQL database guides (#41681) 2024-05-24 00:27:43 +00:00
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
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 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
Steven Martin 31fdd59c3c docs: update rds db proxy access instructions (#41052)
* docs: update rds db access instructions

* docs: fix command for configure
2024-04-30 16:14:53 +00:00
Zac Bergquist 8cd1c429f5 Fix up some poor wording (#40832)
Closes #40294
Closes #39172
2024-04-23 22:01:41 +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
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