Skip to content

Commit

Permalink
Replace Notices with Docusaurus syntax
Browse files Browse the repository at this point in the history
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 }' {} \;
   ```
  • Loading branch information
ptgott committed Mar 4, 2025
1 parent 08ad743 commit 97b86f1
Show file tree
Hide file tree
Showing 83 changed files with 250 additions and 249 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ or database sessions without MFA) and provides users with recommendations on sug

Users are able to write their own custom access monitoring queries by querying the audit log.

<Admonition type="notice">
<Admonition type="note">
Access Monitoring is not currently supported with External Audit Storage
in Teleport Enterprise (Cloud). This functionality will be
enabled in a future Teleport release.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ or in the schedules specified by `teleport.dev/notify-services` annotation in th

(!docs/pages/includes/plugins/resolve-request.mdx!)

<Admonition title="Auditing Access Requests">
<Admonition type="info" title="Auditing Access Requests">

When the Opsgenie plugin sends a notification, anyone who receives the
notification can follow the enclosed link to an Access Request URL. While users
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,13 @@ the URL scheme and port. (If you're using a local SMTP server for testing, use
If you are running the email plugin on a Linux host, fill in `username` and
`password`.

<Notice type="tip">
<Admonition type="tip">

You can also save your password to a separate file and assign `password_file` to
the file's path. The plugin reads the file and uses the file's content as the
password.

</Notice>
</Admonition>

If you are deploying the email plugin on Kubernetes:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@ following:

![Jira board setup](../../../../img/enterprise/plugins/jira/board-setup.png)

<Notice type="warning">
<Admonition type="warning">

If your project board does not contain these (and only these) columns, each with
a status of the same name, the Jira Access Request plugin will behave in
unexpected ways. Remove all other columns and statuses.

</Notice>
</Admonition>

Click **Back to board** to review your changes.

Expand Down Expand Up @@ -409,12 +409,12 @@ Request Reviewed` in the Teleport Web UI.

## Step 7/7. Set up systemd

<Notice type="tip">
<Admonition type="tip">

This step is only applicable if you are running the Teleport Jira plugin on a
Linux machine.

</Notice>
</Admonition>

In production, we recommend starting the Teleport plugin daemon via an init
system like systemd. Here's the recommended Teleport plugin service unit file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ the Teleport Web UI and either approve or deny the request.

(!docs/pages/includes/plugins/resolve-request.mdx!)

<Admonition title="Auditing Access Requests">
<Admonition type="info" title="Auditing Access Requests">

When the Mattermost plugin posts an Access Request notification to a channel,
anyone with access to the channel can view the notification and follow the link.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ Once the request is resolved, the Slack bot will add an emoji reaction of ✅ or
❌ to the Slack message for the Access Request, depending on whether the request
was approved or denied.

<Admonition title="Auditing Access Requests">
<Admonition type="info" title="Auditing Access Requests">

When the Slack plugin posts an Access Request notification to a channel, anyone
with access to the channel can view the notification and follow the link. While
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,11 @@ $ tsh request review --approve f406f5d8-3c2a-428f-8547-a1d091a4ddab
Successfully submitted review. Request state: APPROVED
```

<Notice type="tip">
<Admonition type="tip">
Check out our
[Access Request Integrations](#integrating-with-an-external-tool)
to notify the right people about new Access Requests.
</Notice>
</Admonition>

## Step 7/8. Access the requested resource

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ h1: SOC 2 Compliance for SSH, Kubernetes, Databases, Desktops, and Web Apps
Teleport is designed to meet SOC 2 requirements for the purposes of accessing infrastructure, change management, and system operations. This document outlines a high
level overview of how Teleport can be used to help your company to become SOC 2 compliant.

<Notice type="warning">
<Admonition type="warning">

SOC 2 compliance features are only available for Teleport Enterprise and
Teleport Enterprise Cloud.

</Notice>
</Admonition>

## Achieving SOC 2 Compliance with Teleport
SOC 2 or Service Organization Controls were developed by the American Institute of CPAs (AICPA). They are based on five trust services criteria: security, availability, processing integrity, confidentiality, and privacy.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ layout: tocless-doc
videoBanner: gBQyj_X1LVw
---

<Admonition type="notice">
<Admonition type="note">
Device Trust supports the following components:

- User devices: macOS, Windows and Linux.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Learn how to enforce trusted devices with Teleport
videoBanner: gBQyj_X1LVw
---

<Admonition type="notice" title="Supported Resources">
<Admonition type="note" title="Supported Resources">
Device trust fully supports SSH, Database and Kubernetes resources.

Apps may enforce trusted devices using role-based enforcement. See the [App
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Get started with Teleport Device Trust
videoBanner: gBQyj_X1LVw
---

<Admonition type="notice">
<Admonition type="note">
Device Trust supports the following components:

- User devices: macOS, Windows and Linux.
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/admin-guides/access-controls/guides/dual-authz.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ the approval of two team members for a privileged role `dbadmin`.
The steps below describe how to use Teleport with Mattermost. You can also
[integrate with many other providers](../access-requests/access-requests.mdx).

<Notice type="warning">
<Admonition type="warning">

Dual Authorization requires Teleport Enterprise.

</Notice>
</Admonition>

## Prerequisites

Expand Down
8 changes: 4 additions & 4 deletions docs/pages/admin-guides/access-controls/guides/headless.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ $ tsh ssh --headless --proxy=proxy.example.com --user=alice alice@server01
alice@server01 $
```

<Notice type="note">
<Admonition type="note">
The Teleport user, `--user` parameter, is the Teleport user requesting Headless WebAuthn activity.
If no `--user` parameter or environment variables set the OS user in the machine terminal is used.

Expand All @@ -173,7 +173,7 @@ alice@server01 $
an access denied message. The user could receive an access denied message after being approved
for their Headless WebAuthn activity since the same access rights are granted or denied as if running from
your local terminal.
</Notice>
</Admonition>

## Optional: Teleport Connect

Expand All @@ -191,9 +191,9 @@ You will be prompted to tap your MFA key to complete the approval process.
![Headless WebAuthn Approval](../../../../img/headless/approval.png)
</Figure>

<Notice type="note">
<Admonition type="note">
This also requires a v13.3.1+ Teleport Auth Service.
</Notice>
</Admonition>

## Troubleshooting

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Examples of administrative actions include, but are not limited to:
This is an advanced security feature that protects users against compromises of
their on-disk Teleport certificates.

<Notice type="warning">
<Admonition type="warning">
When MFA for administrative actions is enabled, user certificates produced
with `tctl auth sign` will no longer be suitable for automation due to the
additional MFA checks.
Expand All @@ -33,7 +33,7 @@ their on-disk Teleport certificates.
Certificates produced with `tctl auth sign` directly on an Auth Service
instance using the super-admin role are not subject to MFA checks to support
legacy self-hosted setups.
</Notice>
</Admonition>

## Prerequisites

Expand All @@ -51,10 +51,10 @@ their on-disk Teleport certificates.
MFA for administrative actions is automatically enforced for clusters where
WebAuthn is the only form of second factor allowed.

<Notice type="note">
<Admonition type="note">
In a future major version, Teleport may enforce MFA for administrative actions
for a wider range of cluster configurations.
</Notice>
</Admonition>

<Tabs>
<TabItem label="Dynamic Resources" scope={["team", "cloud"]}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ when starting new:
This is an advanced security feature that protects users against compromises of
their on-disk Teleport certificates.

<Notice type="note">
<Admonition type="note">
In addition to per-session MFA, enable login MFA in your SSO provider and/or
for all [local Teleport
users](../../../reference/access-controls/authentication.mdx)
to improve security.
</Notice>
</Admonition>

## Prerequisites

Expand Down
4 changes: 2 additions & 2 deletions docs/pages/admin-guides/access-controls/sso/github-sso.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ reading data from the OAuth 2.0 access token. In particular, the Auth Service:
permissions.
- Assigns the user's Teleport username to their GitHub username.

<Notice type="warning">
<Admonition type="warning">

GitHub usernames are not formatted as email addresses. As a result, any Teleport
plugin that expects to send email to a user based on their Teleport username
will not work as expected. For example, the [PagerDuty Access Request
plugin](../access-request-plugins/ssh-approval-pagerduty.mdx) has this
limitation.

</Notice>
</Admonition>

## Prerequisites

Expand Down
8 changes: 4 additions & 4 deletions docs/pages/admin-guides/api/access-plugin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ spreadsheet, with links to allow or deny each request.

![The result of the plugin](../../../img/api/google-sheets.png)

<Notice type="danger">
<Admonition type="danger">

The plugin we will build in this guide is intended as a learning tool. **Do not
connect it to your production Teleport cluster.** Use a demo cluster instead.

</Notice>
</Admonition>

## Prerequisites

Expand Down Expand Up @@ -428,14 +428,14 @@ In your spreadsheet, click "View Access Request" next to your new request. Sign
into the Teleport Web UI as your original user. When you submit your review,
e.g., deny the request, the new status will appear within the spreadsheet.

<Notice type="danger">
<Admonition type="danger">

Access Request plugins must not enable reviewing Access Requests via the plugin,
and must always refer a reviewer to the Teleport Web UI to complete the review.
Otherwise, an unauthorized party could spoof traffic to the plugin and escalate
privileges.

</Notice>
</Admonition>

## Next steps

Expand Down
8 changes: 4 additions & 4 deletions docs/pages/admin-guides/api/automatically-register-agents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ Automatic registration consists of the following steps:
infrastructure, use the Teleport API to deregister the resource and, if
necessary, remove the Teleport service proxying the resource.

<Notice type="danger">
<Admonition type="danger">

The program we build in this guide is intended as a learning tool. **Do not
connect it to your production Teleport cluster.** Use a demo cluster instead.

</Notice>
</Admonition>

## Prerequisites

Expand Down Expand Up @@ -704,13 +704,13 @@ To deregister the Application Service instance manually, we call the
`pruneAppServiceInstance` function to get the namespace, host ID, and name of
the Application Service instance to delete.

<Notice type="tip">
<Admonition type="tip">

While Teleport namespaces are deprecated, they still appear occasionally in the
Teleport API client library. The only namespace that Teleport supports is called
`default`.

</Notice>
</Admonition>

Next, this function stops and removes the Application Service container
associated with the `types.AppServer` we want to prune. The hostname of an
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/admin-guides/api/rbac.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ This is especially useful for:
In this guide, we will build a small demo application to show you how to
generate Teleport roles using Teleport's API client library.

<Notice type="danger">
<Admonition type="danger">

The program we will build in this guide is intended as a learning tool. **Do not
connect it to your production Teleport cluster.** Use a demo cluster instead.

</Notice>
</Admonition>

## Prerequisites

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ to Teleport Enterprise customers.
```
- The node running the Access Graph service must be reachable from Teleport Auth Service and Proxy Service.

<Notice type="warning">
<Admonition type="warning">
The deployment with Docker is suitable for testing and development purposes. For production deployments,
consider using the Teleport Access Graph Helm chart to deploy this service on Kubernetes.
Refer to [Helm chart for Access Graph](self-hosted-helm.mdx) for instructions.
</Notice>
</Admonition>

## Step 1/3. Set up the Teleport Access Graph service

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ cluster to Teleport.
cluster in order to follow this guide, the following example configuration
sets up the EBS CSI driver add-on.

<Notice type="danger">
<Admonition type="danger">

The example configuration below assumes that you are familiar with how `eksctl`
works, are not using your EKS cluster in production, and understand that you
are proceeding at your own risk.

</Notice>
</Admonition>

Update the cluster name, version, node group size, and region as required:

Expand Down Expand Up @@ -96,15 +96,15 @@ cluster to Teleport.

(!docs/pages/includes/kubernetes-access/helm-k8s.mdx!)

<Notice type="warning">
<Admonition type="warning">

It is worth noting that this guide shows you how to set up Kubernetes access
with the broadest set of permissions. This is suitable for a personal demo
cluster, but if you would like to set up Kubernetes RBAC for production usage,
we recommend getting familiar with the [Teleport Kubernetes RBAC
guide](../../../enroll-resources/kubernetes-access/controls.mdx) before you begin.

</Notice>
</Admonition>

## Step 1/2. Install Teleport

Expand Down
Loading

0 comments on commit 97b86f1

Please sign in to comment.