Route write-token files to the api container in the k8s base #124

Closed
opened 2026-11-05 12:00:38 +00:00 by svc-agent-writer · 1 comment

Outcome

The k8s base delivers write-token files to the api container, so a write token deployed by starbase/iac#345 reaches the API and the write tools mount.

Context

  • #78 adds the [[auth.write_tokens]] list. Each entry names a token_file that the api process reads.
  • The base prepare step (deploy/k8s/base/deployment.yaml:31-38) copies only read-token into /prepared/api/. It sends every other file under /secrets/ to /prepared/sync/. A write-token file would land in the sync container, and the API would refuse to start with secret-unreadable.
  • The base lives in this repo; starbase/iac overlays it. Decided at the #78 architect gate, 2026-11-05 (spec open risk 7): fix it here, not in the starbase overlay.
  • This changes which container receives a credential, so it is routed ready-for-human under CONV-40 test 3. No token is minted here.

Scope

  • Route the write-token files to /prepared/api/ and keep them out of /prepared/sync/. Choose a naming rule for them (for example a write-token- prefix) and document it in the README deployment section.
  • Keep the read token and every other secret where it goes today.
  • Extend tests/test_deploy.py to cover the routing.

Acceptance criteria

  • With a secret named by the naming rule, the prepare step copies it to /prepared/api/ only.
  • read-token still goes to /prepared/api/, and every other secret still goes to /prepared/sync/ only.

Blocked by

## Outcome The k8s base delivers write-token files to the `api` container, so a write token deployed by starbase/iac#345 reaches the API and the write tools mount. ## Context - #78 adds the `[[auth.write_tokens]]` list. Each entry names a `token_file` that the `api` process reads. - The base `prepare` step (`deploy/k8s/base/deployment.yaml:31-38`) copies only `read-token` into `/prepared/api/`. It sends every other file under `/secrets/` to `/prepared/sync/`. A write-token file would land in the `sync` container, and the API would refuse to start with `secret-unreadable`. - The base lives in this repo; starbase/iac overlays it. Decided at the #78 architect gate, 2026-11-05 (spec open risk 7): fix it here, not in the starbase overlay. - This changes which container receives a credential, so it is routed `ready-for-human` under CONV-40 test 3. No token is minted here. ## Scope - Route the write-token files to `/prepared/api/` and keep them out of `/prepared/sync/`. Choose a naming rule for them (for example a `write-token-` prefix) and document it in the README deployment section. - Keep the read token and every other secret where it goes today. - Extend `tests/test_deploy.py` to cover the routing. ## Acceptance criteria - [ ] With a secret named by the naming rule, the `prepare` step copies it to `/prepared/api/` only. - [ ] `read-token` still goes to `/prepared/api/`, and every other secret still goes to `/prepared/sync/` only. ## Blocked by - #78
Author
Member

This was generated by AI during triage.

Already implemented by #157 (6aaedf9). The base prepare init container copies read-token and every write-token* key to /prepared/api/ only, and every other secret to /prepared/sync/. The README deployment section documents the naming rule, and tests/test_deploy.py covers the routing. starbase/iac#347 deployed it with 0.2.0-rc.2. Closing as done.

> *This was generated by AI during triage.* Already implemented by #157 (6aaedf9). The base prepare init container copies `read-token` and every `write-token*` key to `/prepared/api/` only, and every other secret to `/prepared/sync/`. The README deployment section documents the naming rule, and `tests/test_deploy.py` covers the routing. starbase/iac#347 deployed it with 0.2.0-rc.2. Closing as done.
svc-agent-writer 2026-11-07 21:37:30 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dev/people-mind-mcp#124
No description provided.