From bcbacb9bfcabbc3dd2d07899b8372199d2ec9ba1 Mon Sep 17 00:00:00 2001 From: Matt Hill <9935159+MattDHill@users.noreply.github.com> Date: Wed, 25 Nov 2026 12:02:18 -0700 Subject: [PATCH] docs: add the provider CA to the README's volume table and quick reference Co-Authored-By: Claude Opus 5.5 --- README.md | 13 ++++++++----- startos/main.ts | 2 -- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 92b114c..9e50bba 100644 --- a/README.md +++ b/README.md @@ -52,10 +52,10 @@ One subcontainer, `opencode-sub`, runs the server. The image's entrypoint is the The package declares two volumes. -| Volume | Mount point | Contents | -| --------- | -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | -| `main` | `/root` (read-write) | The container's entire home: sessions, credentials, repositories, projects, and OpenCode's own config, state, and cache. | -| `startos` | optional read-only `provider-trust/` subtree | StartOS-side state: `store.json`, holding the generated login password and the configured providers' API keys. | +| Volume | Mount point | Contents | +| --------- | ---------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `main` | `/root` (read-write) | The container's entire home: sessions, credentials, repositories, projects, and OpenCode's own config, state, and cache. | +| `startos` | `/etc/opencode-trust` (read-only, `provider-trust/` only, while a CA is set) | StartOS-side state: `store.json`, holding the generated login password and the configured providers' API keys, and the optional `provider-trust/ca.pem`. | `main` is mounted over the image's home directory, so everything OpenCode writes under `/root` persists across restarts and updates: @@ -283,20 +283,23 @@ architectures: [x86_64, aarch64] subcontainers: [opencode-sub] volumes: main: /root - startos: unmounted + startos: /etc/opencode-trust # provider-trust/ only, read-only, while a CA is set file_models: - startos/store.json - main/.config/opencode/opencode.json + - startos/provider-trust/ca.pem startos_managed_env_vars: - OPENCODE_PASSWORD - OPENCODE_DISABLE_AUTOUPDATE - OPENCODE_KEY_ + - NODE_EXTRA_CA_CERTS dependencies: none interfaces: ui: { type: ui, port: 4096 } actions: - set-admin-password - configure-providers + - configure-provider-ca tasks: - { action: set-admin-password, severity: critical } health_checks: diff --git a/startos/main.ts b/startos/main.ts index 7615165..afa9278 100644 --- a/startos/main.ts +++ b/startos/main.ts @@ -39,8 +39,6 @@ export const main = sdk.setupMain(async ({ effects }) => { const pem = await providerCa.read().const(effects) const extraCaPath = pem ? providerCaPath : undefined if (pem) { - // The `.const()` read above re-runs this setup — and so restarts the daemon — - // whenever the certificate changes, so the mount can sit at a fixed path. mounts = mounts.mountVolume({ volumeId: 'startos', subpath: providerCaDirectory,