chore: scrub private infrastructure for a public repo, rewrite README
Audited the working tree and all 26 commits of history for credentials: none
found. No API keys, no private keys, no tokens — the live bot token, webhook
secret and admin token appear nowhere in the repo or its history.
What was there was infrastructure disclosure, which is recon material rather
than a leak, but has no business in a public repo:
- Tailnet addresses and cluster-internal hostnames in code, docs and the CI
template. The model endpoint is now supplied at runtime via
PRAGENT_MODEL_BASE_URL and patched into opencode.json by install_config();
the committed config carries a placeholder, guarded by a test.
- A host path (/home/marcos) as the default rtk directory — now unset.
- Real usernames in the onboarding docs — now alice/acme.
- A standing list of one-time setup tokens that were never revoked, named
individually. Removed. Note that removing the list does not revoke the
tokens: they should still be revoked in the Gitea admin UI.
The substitution happens in Python rather than via opencode's {env:VAR} config
templating, because the reviewer subprocess runs with an allow-listed
environment — resolving it before the process starts keeps that allow-list from
having to grow.
README rewritten for a reader who has never seen the project: what it does and
what that output looks like, honest status (pilot works, framework designed but
unbuilt), the security model up front given what this thing is, and the measured
cost numbers including the two effects that make naive estimates wrong.
History still contains the old addresses. They are tailnet-only and not
credentials, so no rewrite.
Tests: 131 -> 137.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B11e8TZZxJyzHW7jj7KWUN
This commit is contained in:
+1
-1
@@ -111,7 +111,7 @@ sync — the parser is tolerant but the agent and parser must agree on field nam
|
||||
### Switch model / provider
|
||||
|
||||
Edit `opencode.json` `provider` + `model`. The provider points at the on-network
|
||||
headroom proxy (`http://100.74.17.70:8789/v1`, Anthropic `/v1/messages` format,
|
||||
headroom proxy (`http://<model-proxy-host>:8789/v1`, Anthropic `/v1/messages` format,
|
||||
`apiKey: ollama`) → `glm-5.2:cloud`. To use a different model, add a provider and
|
||||
reference it as `<provider>/<model-id>`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user