canned-prompts/workplans
tegwick 0fb7150956 Read credentials from files, not only the environment
Found by packaging the service for Railiance (rapp-canned-prompts). Every other
rapp in the fleet mounts its database credential as a file; this service could
only read CANNED_PROMPTS_DATABASE_URL from the environment, which would have
put a database password into kubectl describe, into crash dumps, and in reach
of anything able to read /proc.

Adds CANNED_PROMPTS_DATABASE_URL_FILE and CANNED_PROMPTS_PUBLISH_TOKEN_FILE. A
mounted secret stays a file. When both forms are set the file wins, because a
rotated secret must take effect rather than be shadowed by a stale env var, and
an unreadable secret file fails loudly rather than falling back to a value that
may be older.

Service tests 33 -> 36.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bjefh8NUiEiahN4JLwoSKM

Assistant: claude-code
Assistant-Model: opus
Assistant-Process: 388925@bnt-lap001
Assistant-Session: 3507023f-e0fd-4a1e-9d90-a0d4217d1502
2026-09-06 21:45:29 +02:00
..
ADHOC-2026-09-06.md chore(consistency): regenerate WORK-RECORDS.md 2026-09-06 14:48:27 +02:00
CANP-WP-0001-statehub-bootstrap.md Add repo classification and record workplan review context 2026-09-06 00:47:23 +02:00
CANP-WP-0002-format-open-questions.md CANP-WP-0002 T06: revision v0.2, and section 23 rewritten 2026-09-06 14:22:45 +02:00
CANP-WP-0003-registry-naming-residual.md CANP-WP-0003: name the default registry default 2026-09-06 19:32:30 +02:00
CANP-WP-0004-prompt-index.md chore(consistency): regenerate WORK-RECORDS.md 2026-09-06 17:14:49 +02:00
CANP-WP-0005-inclusion-diamond.md CANP-WP-0005: document and detect inclusion diamonds 2026-09-06 19:23:16 +02:00
CANP-WP-0006-hosted-registry-service.md Read credentials from files, not only the environment 2026-09-06 21:45:29 +02:00