Skip to content

Commit fb6c9b2

Browse files
chore(docs): update otdfctl references to platform monorepo (#309)
## Summary - Update all `opentdf/otdfctl` references to `opentdf/platform` monorepo - The `opentdf/otdfctl` repo is archived; CLI now lives under `otdfctl/` in the platform repo - Updates install script, docusaurus remote content plugin, GitHub Actions workflow, and doc links <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Updated CLI documentation links and references to point to the centralized platform repository and adjusted displayed release notes scope. * **Chores** * Updated installer and download links to fetch CLI releases from the centralized platform repository. * Updated build/workflow steps to pull CLI documentation and metadata from the centralized platform source. * Updated UI link for downloading the latest CLI release. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 5eeb113 commit fb6c9b2

11 files changed

Lines changed: 22 additions & 22 deletions

File tree

.github/workflows/otdfctl-update.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
tag:
7-
description: 'opentdf/otdfctl to update from'
7+
description: 'opentdf/platform otdfctl tag to update from'
88
required: true
99
default: 'main'
1010
repository_dispatch:
@@ -25,7 +25,7 @@ jobs:
2525
BUMP_MSG="Updated to"
2626
COMMIT_HASH=""
2727
BRANCH="otdfctl-update-$TAG"
28-
PR_EXISTS=(gh pr list --state open --base main --head $BRANCH | grep -c $BRANCH)
28+
PR_EXISTS=$(gh pr list --state open --base main --head $BRANCH | grep -c $BRANCH)
2929
# Check if PR exists for branch
3030
if [ $PR_EXISTS -eq 1 ]; then
3131
git checkout $BRANCH
@@ -35,16 +35,16 @@ jobs:
3535
# Remove the current docs/otdfctl directory
3636
rm -rf docs/otdfctl
3737
# Add docs from remote
38-
git remote add otdfctl https://github.com/opentdf/otdfctl.git
39-
git fetch otdfctl
40-
git read-tree --prefix "docs/otdfctl" -u "otdfctl/$TAG:docs/man"
41-
COMMIT_HASH=(git ls-remote --heads otdfctl "refs/heads/$TAG" |awk '{ print $1}')
38+
git remote add platform https://github.com/opentdf/platform.git
39+
git fetch platform
40+
git read-tree --prefix "docs/otdfctl" -u "platform/$TAG:otdfctl/docs/man"
41+
COMMIT_HASH=$(git ls-remote --heads platform "refs/heads/$TAG" | awk '{ print $1}')
4242
# Rename _index.md to index.md
4343
find docs/otdfctl -name "_index.md" -exec bash -c 'mv "$1" "${1/_index.md/index.md}"' _ {} \;
4444
# Add a generated file
4545
echo "This directory is generated any manual changes will be lost.\n
4646
date: $(date)
47-
source: https://github.com/opentdf/otdfctl/tree/$TAG
47+
source: https://github.com/opentdf/platform/tree/$TAG/otdfctl
4848
event: ${{github.event}}
4949
actor: ${{github.triggering_actor}}\n" > docs/otdfctl/GENERATED.txt
5050
# Commit changes

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ The documentation site pulls content from multiple upstream repositories using D
134134

135135
- `PLATFORM_BRANCH` - Controls which branch to fetch from `opentdf/platform` (default: `main`)
136136
- `SPEC_BRANCH` - Controls which branch to fetch from `opentdf/spec` (default: `main`)
137-
- `OTDFCTL_BRANCH` - Controls which branch to fetch from `opentdf/otdfctl` (default: `main`)
137+
- `OTDFCTL_BRANCH` - Controls which branch to fetch from `opentdf/platform` for CLI docs (default: `main`)
138138

139139
**Examples:**
140140

docs/components/policy/keymanagement/base_key.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ You must have admin permission to use any key operations.
1515

1616
When using the [kas-registry proto](https://github.com/opentdf/platform/blob/5221cf41079fc43a3966e17c6f3e0d3cf8a16730/service/policy/kasregistry/key_access_server_registry.proto#L692-L696) and an active connection to the platform you can use the above base key rpcs to set and retrieve the base key.
1717

18-
[otdfctl base key](https://github.com/opentdf/otdfctl/tree/main/docs/man/policy/kas-registry/key/base) provides documentation on how to set / get base keys with the OpenTDF CLI.
18+
[otdfctl base key](https://github.com/opentdf/platform/tree/main/otdfctl/docs/man/policy/kas-registry/key/base) provides documentation on how to set / get base keys with the OpenTDF CLI.
1919

2020
## Effects of using base key
2121

docs/components/policy/keymanagement/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ be helpful for migrations.
3636
## Creating a key
3737

3838
:::note
39-
You can also perform all key commands with the [OpenTDF CLI](https://github.com/opentdf/otdfctl)
39+
You can also perform all key commands with the [OpenTDF CLI](https://github.com/opentdf/platform/tree/main/otdfctl)
4040
:::
4141

4242
1. You should already have created and registered a **Key Access Server** with the platform via the [Create Key Access Server Endpoint](https://github.com/opentdf/platform/blob/6203fbaebcdd57b5b3437679465149f8ff395484/service/policy/kasregistry/key_access_server_registry.proto#L59).

docs/getting-started/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ This guide will walk you through setting up a new platform locally and walk you
4040
## Pre-requisites
4141

4242
- A copy of the `otdfctl` CLI.
43-
- [Download the latest release](https://github.com/opentdf/otdfctl/releases)
43+
- [Download the latest release](https://github.com/opentdf/platform/releases?q=otdfctl)
4444

4545
- A tool to run the compose file.
4646
- [Podman](https://podman.io/)

docs/getting-started/quickstart.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ If the certificate import fails during installation, you'll need to import it ma
338338
</details>
339339

340340
The installer will:
341-
- Download and install the [otdfctl CLI](https://github.com/opentdf/otdfctl)
341+
- Download and install the [otdfctl CLI](https://github.com/opentdf/platform/tree/main/otdfctl)
342342
- Verify Docker is running
343343
- Add entries to /etc/hosts (requires sudo)
344344
- Download and start all services (Platform, Keycloak, PostgreSQL, Caddy)

docs/guides/subject-mapping-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ otdfctl policy subject-condition-sets list
710710
--action 891cfe85-b381-4f85-9699-5f7dbfe2a9ab
711711
```
712712

713-
See the [actions reference](https://github.com/opentdf/otdfctl/blob/main/docs/man/policy/actions/_index.md) for more details.
713+
See the [actions reference](https://github.com/opentdf/platform/blob/main/otdfctl/docs/man/policy/actions/_index.md) for more details.
714714

715715
### Error: Token Claim Not Appearing in Entitlements
716716

docs/release-notes.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import ReleaseNotes from '@site/src/components/ReleaseNotes';
1313
<ReleaseNotes repo="opentdf/platform" filter="service"/>
1414
</TabItem>
1515
<TabItem value="cli" label="CLI (otdfctl)">
16-
<ReleaseNotes repo="opentdf/otdfctl" />
16+
<ReleaseNotes repo="opentdf/platform" filter="otdfctl" />
1717
</TabItem>
1818
<TabItem value="sdk-go" label="Go SDK">
1919
<ReleaseNotes repo="opentdf/platform" filter="sdk" />

docusaurus.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ preprocessOpenApiSpecs().catch(error => {
1919
process.exit(1);
2020
});
2121

22-
const otdfctl = listRemote.createRepo("opentdf", "otdfctl", "main");
22+
const otdfctl = listRemote.createRepo("opentdf", "platform", process.env.OTDFCTL_BRANCH || "main");
2323

2424
const javaSdkVersion = "0.11.1";
2525
const gtmId = "GTM-MKRLN6NL";
@@ -202,7 +202,7 @@ const config: Config = {
202202
{ label: "Quickstart", to: "/quickstart" },
203203
{ label: "SDKs", to: "/sdks" },
204204
{ label: "Platform", href: "https://github.com/opentdf/platform" },
205-
{ label: "CLI Reference", href: "https://github.com/opentdf/otdfctl" },
205+
{ label: "CLI Reference", href: "https://github.com/opentdf/platform/tree/main/otdfctl" },
206206
],
207207
},
208208
{
@@ -306,15 +306,15 @@ const config: Config = {
306306
id: "otdfctl",
307307
outDir: "docs/components/cli",
308308
sourceBaseUrl: listRemote.buildRepoRawBaseUrl(otdfctl),
309-
documents: listRemote.listDocuments(otdfctl, ["docs/man/**/*.md"], []),
309+
documents: listRemote.listDocuments(otdfctl, ["otdfctl/docs/man/**/*.md"], []),
310310
modifyContent: (filename, content) => {
311311
const baseCommand = "otdfctl";
312312
let commandTitle, command, subcommand;
313313
// This will hold the new filename after processing.
314314
let nextFilename = filename
315315
.replace(/\.md$/, ".mdx")
316316
.replace(/\/_index.mdx$/, "/index.mdx")
317-
.replace(/^docs\/man\//, "");
317+
.replace(/^otdfctl\/docs\/man\//, "");
318318

319319
if (nextFilename === "index.mdx") {
320320
nextFilename = "index.mdx";

src/components/landing/DeveloperFirst.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const sdks = [
3333
name: "CLI",
3434
lang: "otdfctl",
3535
install: null,
36-
releaseUrl: "https://github.com/opentdf/otdfctl/releases/latest",
36+
releaseUrl: "https://github.com/opentdf/platform/releases?q=otdfctl",
3737
colorClass: "sdk-cli",
3838
icon: ">_",
3939
href: "https://opentdf.io/components/cli",

0 commit comments

Comments
 (0)