Skip to content

Commit fac80f0

Browse files
committed
Merge remote-tracking branch 'origin/main' into DOC-12392
2 parents 7277b6a + 1e9d341 commit fac80f0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+289
-375
lines changed

CONTRIBUTING.md

Lines changed: 0 additions & 313 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ This repository contains the source files for the CockroachDB documentation avai
66

77
Want a topic added to the docs? Need additional details or clarification? See an error or other problem? Please [open an issue](https://github.com/cockroachdb/docs/issues).
88

9-
## Write Docs
10-
11-
Want to contribute to the docs? See [CONTRIBUTING](CONTRIBUTING.md) for details about setting yourself up and getting started.
12-
139
## Resources
1410

15-
- [Code of conduct](CODE_OF_CONDUCT.md)
16-
- [Contributing](CONTRIBUTING.md)
11+
- [Code of conduct](CODE_OF_CONDUCT.md)

StyleGuide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ CockroachDB docs are mainly comprised of pages (`.md`) and images (`.png` or `.g
213213
- `this-is-a-doc.md`
214214
- `name-of-your-image.png`
215215

216-
Each version's pages are found in a directory named for the version. For example, pages for CockroachDB v21.1 are in the `docs > v21.1` directory. For more information about page structure, see the [Pages](https://github.com/cockroachdb/docs/blob/main/CONTRIBUTING.md#pages) section in our [Contributing Guide](https://github.com/cockroachdb/docs/blob/main/CONTRIBUTING.md). For more information about how to style page content, see [Components](#components).
216+
Each version's pages are found in a directory named for the version. For example, pages for CockroachDB v21.1 are in the `docs > src > current > v21.1` directory. For more information about how to style page content, see [Components](#components).
217217

218218
Each version's images are stored in a versioned directory under the `images` directory. For example, images for CockroachDB v21.1 are in the `docs > images > v21.1` directory. For more information, see [Images](#images).
219219

src/current/_includes/cockroachcloud/org-roles/cloud-roles-table.md

Lines changed: 38 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,53 +2,55 @@ The following table describes the high level permissions given by each Cockroach
22

33
<div class="roles-table" markdown="1">
44

5-
| | Org. Member | Org. Admin | Billing Coord. | Cluster Creator | Cluster Operator | Cluster Admin | Cluster Developer | Folder Admin | Folder Mover |
6-
|---|-------------|-------------|------------------|------------------|-------------------|----------------|--------------------|----------------|----------------|
5+
| | [Org. Member]({% link cockroachcloud/authorization.md %}#organization-member) | [Org. Admin]({% link cockroachcloud/authorization.md %}#organization-admin) | [Billing Coord.]({% link cockroachcloud/authorization.md %}#billing-coordinator) | [Cluster Creator]({% link cockroachcloud/authorization.md %}#cluster-creator) | [Cluster Operator]({% link cockroachcloud/authorization.md %}#cluster-operator) | [Cluster Admin]({% link cockroachcloud/authorization.md %}#cluster-admin) | [Cluster Developer]({% link cockroachcloud/authorization.md %}#cluster-developer) | [Cluster Monitor]({% link cockroachcloud/authorization.md %}#cluster-monitor)<sup id="fnref1"><a href="#fn1">1</a></sup> | [Metrics Viewer]({% link cockroachcloud/authorization.md %}#metrics-viewer)<sup id="fnref1"><a href="#fn1">1</a></sup> | [Folder Admin]({% link cockroachcloud/authorization.md %}#folder-admin) | [Folder Mover]({% link cockroachcloud/authorization.md %}#folder-mover) |
6+
|---|-------------|-------------|------------------|------------------|-------------------|----------------|--------------------|------------------|----------------|----------------|----------------|
77
| **User/Access Management** | | | | | | | | | |
8-
| Assign and revoke roles ||||||||||
9-
| Assign {{ site.data.products.cloud }} user and service account roles ||||||||||
10-
| Manage SQL users ||||||||||
11-
| Manage {{ site.data.products.cloud }} users and service accounts ||||||||||
12-
| Apply roles at the [folder]({% link cockroachcloud/folders.md %}) scope ||||||||||
8+
| Assign and revoke roles ||||||||||||
9+
| Assign {{ site.data.products.cloud }} user and service account roles ||||||||||||
10+
| Manage SQL users ||||||||||||
11+
| Manage {{ site.data.products.cloud }} users and service accounts ||||||||||||
12+
| Apply roles at the [folder]({% link cockroachcloud/folders.md %}) scope |||||||| || ||
1313
| **Cluster & Infrastructure** | | | | | | | | | |
14-
| Create cluster or [private cluster]({% link cockroachcloud/private-clusters.md %}) ||||||||||
15-
| Create / edit / delete cluster ||||||||||
16-
| Edit / delete clusters created by this user ||||||||||
17-
| Create / delete / manage [folders]({% link cockroachcloud/folders.md %}) ||||||||||
18-
| Move cluster between [folders]({% link cockroachcloud/folders.md %}) ||||||||||
19-
| Scale nodes ||||||||||
20-
| Upgrade CockroachDB ||||||||||
21-
| Configure [maintenance windows]({% link cockroachcloud/advanced-cluster-management.md %}#set-a-maintenance-window) ||||||||||
22-
| Use the [{{ site.data.products.cloud }} Terraform provider]({% link cockroachcloud/provision-a-cluster-with-terraform.md %}) ||||||||||
14+
| Create cluster or [private cluster]({% link cockroachcloud/private-clusters.md %}) ||||||||||||
15+
| Create / edit / delete cluster ||||||||||||
16+
| Edit / delete clusters created by this user ||||||||||||
17+
| Create / delete / manage [folders]({% link cockroachcloud/folders.md %}) |||||||| || ||
18+
| Move cluster between [folders]({% link cockroachcloud/folders.md %}) ||||||||| || |
19+
| Scale nodes ||||||||||||
20+
| Upgrade CockroachDB ||||||||||||
21+
| Configure [maintenance windows]({% link cockroachcloud/advanced-cluster-management.md %}#set-a-maintenance-window) ||||||||||||
22+
| Use the [{{ site.data.products.cloud }} Terraform provider]({% link cockroachcloud/provision-a-cluster-with-terraform.md %}) ||||||||||||
2323
| **Monitoring & Observability** | | | | | | | | | |
24-
| View cluster details ||||||||||
25-
| View [audit logs]({% link cockroachcloud/cloud-org-audit-logs.md %}) ||||||||||
26-
| View [insights]({% link cockroachcloud/insights-page.md %}) ||||||||||
27-
| View [jobs]({% link cockroachcloud/jobs-page.md %}) ||||||||||
28-
| View [metrics]({% link cockroachcloud/metrics.md %}) ||||||||||
29-
| Send [test alerts]({% link cockroachcloud/alerts-page.md %}#send-a-test-alert) ||||||||||
30-
| Access [DB console]({% link cockroachcloud/network-authorization.md %}#db-console) ||||||||||
24+
| View cluster details ||||||||||||
25+
| View [audit logs]({% link cockroachcloud/cloud-org-audit-logs.md %}) ||||||||||||
26+
| View [insights]({% link cockroachcloud/insights-page.md %}) ||||||||||||
27+
| View [jobs]({% link cockroachcloud/jobs-page.md %}) ||||||||||||
28+
| View [sql activity]({% link cockroachcloud/statements-page.md %}) ||||||||||||
29+
| View [metrics]({% link cockroachcloud/metrics.md %}) ||||||||||||
30+
| Send [test alerts]({% link cockroachcloud/alerts-page.md %}#send-a-test-alert) ||||||||||||
31+
| Access [DB console]({% link cockroachcloud/network-authorization.md %}#db-console) ||||||||||||
3132
| **Security** | | | | | | | | | |
32-
| Configure [cluster SSO]({% link cockroachcloud/cloud-sso-sql.md %}) ||||||||||
33-
| Manage [egress perimeter controls]({% link cockroachcloud/egress-perimeter-controls.md %}) ||||||||||
34-
| Manage [network authorization]({% link cockroachcloud/network-authorization.md %}) ||||||||||
35-
| View PCI status ||||||||||
33+
| Configure [cluster SSO]({% link cockroachcloud/cloud-sso-sql.md %}) ||||||||||||
34+
| Manage [egress perimeter controls]({% link cockroachcloud/egress-perimeter-controls.md %}) ||||||||||||
35+
| Manage [network authorization]({% link cockroachcloud/network-authorization.md %}) ||||||||||||
36+
| View PCI status ||||||||||||
3637
| **Database & Data** | | | | | | | | | |
37-
| Manage databases ||||||||||
38-
| View / restore [backups]({% link cockroachcloud/backup-and-restore-overview.md %}) ||||||||||
38+
| Manage databases ||||||||||||
39+
| View / restore [backups]({% link cockroachcloud/backup-and-restore-overview.md %}) ||||||||||||
3940
| **Billing & Licensing** | | | | | | | | | |
40-
| Manage [billing]({% link cockroachcloud/billing-management.md %}) ||||||||||
41-
| Manage [email alerts]({% link cockroachcloud/alerts-page.md %}#configure-alerts) ||||||||||
42-
| Manage CockroachDB [Self-Hosted cluster licenses]({% link {{ site.current_cloud_version }}/licensing-faqs.md %}#obtain-a-license) ||||||||||
41+
| Manage [billing]({% link cockroachcloud/billing-management.md %}) ||||||||||||
42+
| Manage [email alerts]({% link cockroachcloud/alerts-page.md %}#configure-alerts) ||||||||||||
43+
| Manage CockroachDB [Self-Hosted cluster licenses]({% link {{ site.current_cloud_version }}/licensing-faqs.md %}#obtain-a-license) ||||||||||||
4344

4445
</div>
46+
<a id="fn1"><sup>1</sup></a>**This feature is in [limited access]({% link {{ site.current_cloud_version }}/cockroachdb-feature-availability.md %})** and is only available to enrolled organizations. To enroll your organization, contact your Cockroach Labs account team. This feature is subject to change.
4547

4648
Some roles can be assigned to users at specific levels of scope to provide more granular permission control:
4749

4850
| **Scope level** | **Description** | **Applicable roles** |
4951
|---|---|---|
50-
| `Organization` | Applies to the entire CockroachDB {{ site.data.products.cloud }} organization, including all clusters and folders | `Cluster Operator`, `Cluster Admin`, `Cluster Creator`, `Cluster Developer`, `Billing Coordinator`, `Organization Admin`, `Folder Admin`, `Folder Mover` |
51-
| `Folder` | Applies to clusters within a specific [folder]({% link cockroachcloud/folders.md %}). Only available as a selectable scope if folders have been created within the organization by a user with the `Folder Admin` role | `Cluster Operator`, `Cluster Admin`, `Cluster Creator`, `Cluster Developer`, `Folder Admin`, `Folder Mover` |
52-
| `Cluster` | Applies to a specific cluster | `Cluster Operator`, `Cluster Admin`, `Cluster Developer` |
52+
| `Organization` | Applies to the entire CockroachDB {{ site.data.products.cloud }} organization, including all clusters and folders | `Cluster Operator`, `Cluster Admin`, `Cluster Creator`, `Cluster Developer`, `Cluster Monitor`, `Metrics Viewer`, `Billing Coordinator`, `Organization Admin`, `Folder Admin`, `Folder Mover` |
53+
| `Folder` | Applies to clusters within a specific [folder]({% link cockroachcloud/folders.md %}). Only available as a selectable scope if folders have been created within the organization by a user with the `Folder Admin` role | `Cluster Operator`, `Cluster Admin`, `Cluster Creator`, `Cluster Developer`, `Cluster Monitor`, `Metrics Viewer`, `Folder Admin`, `Folder Mover` |
54+
| `Cluster` | Applies to a specific cluster | `Cluster Operator`, `Cluster Admin`, `Cluster Developer`, `Cluster Monitor`, `Metrics Viewer` |
5355

54-
{% if page.name != 'authorization.md' %}For more information on these roles and the specific permissions given, see [Organization user roles]({% link cockroachcloud/authorization.md %}#organization-member).{% endif %}
56+
{% if page.name != 'authorization.md' %}For more information on these roles and the specific permissions given, see [Organization user roles]({% link cockroachcloud/authorization.md %}#organization-member).{% endif %}

src/current/_includes/molt/fetch-secure-connection-strings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ To keep your database credentials out of shell history and logs, follow these be
88

99
{% include_cached copy-clipboard.html %}
1010
~~~ shell
11-
molt escape-password 'a$52&'
11+
molt escape-password --password 'a$52&'
1212
~~~
1313

1414
Use the encoded password in your `--source` connection string. For example:
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
The following instructions show how to change the mapping of the [`crdb_internal_region`]({% link {{ page.version.version }}/alter-table.md %}#crdb_region) column that determines row locality for a [regional by row table]({% link {{ page.version.version }}/regional-tables.md %}#regional-by-row-tables) where the [column was already defined with `REGIONAL BY ROW AS {column}`]{% if page.name == "create-table.md" %}(#create-a-table-with-a-regional-by-row-locality-using-a-custom-region-column){% elsif page.name == "alter-table.md" %}(#rename-crdb_region){% else %}({% link {{ page.version.version }}/create-table.md %}#create-a-table-with-a-regional-by-row-locality-using-a-custom-region-column){% endif %}. This method [alters the computed column's expression]({% link {{ page.version.version }}/computed-columns.md %}#alter-the-formula-for-a-computed-column).
2+
3+
1. [Add a new region column]({% link {{ page.version.version }}/alter-table.md %}#add-column) of the same type (`crdb_internal_region`) with the updated scalar expression for the computed column:
4+
5+
{% include_cached copy-clipboard.html %}
6+
~~~ sql
7+
ALTER TABLE app.public.users ADD COLUMN region_new crdb_internal_region AS ({new_expression}) STORED;
8+
~~~
9+
10+
1. Atomically [swap the column names]({% link {{ page.version.version }}/alter-table.md %}#rename-column) so the new computed column takes the original name:
11+
12+
{% include_cached copy-clipboard.html %}
13+
~~~ sql
14+
ALTER TABLE app.public.users RENAME COLUMN region TO region_prev, RENAME COLUMN region_new TO region;
15+
~~~
16+
17+
1. Point the table locality at the new computed column using [`ALTER TABLE ... SET LOCALITY`]({% link {{ page.version.version }}/alter-table.md %}#set-locality):
18+
19+
{% include_cached copy-clipboard.html %}
20+
~~~ sql
21+
ALTER TABLE app.public.users SET LOCALITY REGIONAL BY ROW AS region;
22+
~~~
23+
24+
1. After verifying the changes have occurred (using a query like `SELECT region, * FROM app.public.users WHERE ...`), [drop the previous computed column]({% link {{ page.version.version }}/alter-table.md %}#drop-column):
25+
26+
{% include_cached copy-clipboard.html %}
27+
~~~ sql
28+
ALTER TABLE app.public.users DROP COLUMN region_prev;
29+
~~~
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
The following instructions show how to change the mapping of the [`crdb_internal_region`]({% link {{ page.version.version }}/alter-table.md %}#crdb_region) column that determines row locality for a [regional by row table]({% link {{ page.version.version }}/regional-tables.md %}#regional-by-row-tables) where the [column was already defined with `REGIONAL BY ROW AS {column}`]{% if page.name == "create-table.md" %}(#create-a-table-with-a-regional-by-row-locality-using-a-custom-region-column){% elsif page.name == "alter-table.md" %}(#rename-crdb_region){% else %}({% link {{ page.version.version }}/create-table.md %}#create-a-table-with-a-regional-by-row-locality-using-a-custom-region-column){% endif %}. This method [alters the computed column's expression]({% link {{ page.version.version }}/computed-columns.md %}#alter-the-formula-for-a-computed-column).
2+
3+
1. [Add a new region column]({% link {{ page.version.version }}/alter-table.md %}#add-column) of the same type (`crdb_internal_region`) with the updated scalar expression for the computed column:
4+
5+
{% include_cached copy-clipboard.html %}
6+
~~~ sql
7+
ALTER TABLE app.public.users ADD COLUMN region_new crdb_internal_region AS ({new_expression}) STORED;
8+
~~~
9+
10+
1. Atomically [swap the column names]({% link {{ page.version.version }}/alter-table.md %}#rename-column) so the new computed column takes the original name:
11+
12+
{% include_cached copy-clipboard.html %}
13+
~~~ sql
14+
ALTER TABLE app.public.users RENAME COLUMN region TO region_prev, RENAME COLUMN region_new TO region;
15+
~~~
16+
17+
1. Point the table locality at the new computed column using [`ALTER TABLE ... SET LOCALITY`]({% link {{ page.version.version }}/alter-table.md %}#set-locality):
18+
19+
{% include_cached copy-clipboard.html %}
20+
~~~ sql
21+
ALTER TABLE app.public.users SET LOCALITY REGIONAL BY ROW AS region;
22+
~~~
23+
24+
1. After verifying the changes have occurred (using a query like `SELECT region, * FROM app.public.users WHERE ...`), [drop the previous computed column]({% link {{ page.version.version }}/alter-table.md %}#drop-column):
25+
26+
{% include_cached copy-clipboard.html %}
27+
~~~ sql
28+
ALTER TABLE app.public.users DROP COLUMN region_prev;
29+
~~~

0 commit comments

Comments
 (0)