Repository navigation
Description
Design question
Should the BEP secrets model be simplified, rather than only documented?
Today a user has to keep track of:
- Three kinds of Minimal Keychain item: one
dev.minimal.secretitem per secret, "Minimal GitHub sign-in", and "Minimal client signing key". - Two config places: rules in
~/.config/minimal/config.toml[secret-store-rules](written bymin secret set), and grants inminimal.toml[...secrets.<VAR>]. - Two lists:
min secret listshows store items and their rules, but not the GitHub sign-in, which is inmin auth status. - Two grant kinds:
source = "broker"andsource = "store", written differently.
The snapshot below shows one real host's state.
Snapshot: secrets state on one host during the UAT
On 2026-11-19, partway through L4, one GitHub sign-in and two Keychain secrets in use were spread across 2 config files, 3 kinds of Keychain item, and 4 places to list them.
| Where | What it held | How you see it |
|---|---|---|
~/.config/minimal/config.toml |
[secret-store-rules.uat-raw-pat] (raw.githubusercontent.com, Authorization, Bearer ) and [secret-store-rules.uat-tty-test] (raw.githubusercontent.com, X-Uat-Probe). Rules only, no values. Also default_loadouts = ["dev"] |
Open the file |
Login keychain: dev.minimal.secret items |
Accounts uat-raw-pat, uat-tty-test and uat-norule: the stored values. All three show the same Name |
Keychain Access; security find-generic-password -s dev.minimal.secret -a <id> |
| Login keychain: "Minimal GitHub sign-in" | The GitHub token and refresh material | Keychain Access; min auth status |
| Login keychain: "Minimal client signing key" | The Mac's key for signing secret handles | Keychain Access only |
min secret list |
Every dev.minimal.secret item joined with its rule: uat-norule (no rule), uat-raw-pat, uat-tty-test. Not the GitHub sign-in |
min secret list |
Grant project's minimal.toml |
[session.secrets.GH_TOKEN] with source = "broker", scopes = ["github:user-token"], and [session.network.bep] |
Open the file; min box spec |
Keychain project's minimal.toml |
[session.secrets.RAW_PAT] with source = "store", store = "keychain", id = "uat-raw-pat", and [session.network.bep] |
Open the file; min box spec |
| Running boxes | uat-a, uat-b and uat-x: a sealed GH_TOKEN each. uat-store: a sealed RAW_PAT |
min session exec <box> env; min box audit <box> |
The same names repeat with different roles:
uat-raw-patis a rule key inconfig.toml, a Keychain account, theidin a project spec, and a row inmin secret list.RAW_PATis a table key in a project spec, an environment variable in the box, and a column inmin box spec.- The GitHub sign-in is a Keychain item, a line in
min auth status,scopes = ["github:user-token"]in a spec, andGH_TOKENin a box. It appears in neitherconfig.tomlnormin secret list.
Options raised
- One list:
min secret listshows the GitHub sign-in too. - One owner for rules:
min secret setis the only writer, soconfig.tomlis never edited by hand. - A shorter grant in
minimal.toml, for exampleRAW_PAT = "uat-raw-pat"orGH_TOKEN = "github". - A grant brings in its upstream hosts (see BEP: should a GitHub grant imply its four-host egress set? #3811).
Each option reduces the number of config places a user must touch for one task, which is a key UX signal.
Outcome
Decide which options to take. The overview doc in the setup guide (#3512) is written against the result. If nothing changes, the guide documents the model as it is.
Raised as decision 3 in the #1501 follow-ups.
Found during the Box Egress Proxy UAT (#1501: results, follow-ups): finding 26, found while reviewing config against the secret list in L3 and L9. Build 0.8.0-dev.607.g81832ac6, macOS 27.0.1, Apple M4.
Activity
[-]docs(bep): one overview of the secrets model (Keychain items, rules, broker vs store)[/-][+]BEP design: simplify the secrets model (Keychain items, rules, grants, lists) instead of only documenting it[/+]minimal-foundry commentedon Nov 25, 2026
Refused: body is not a rendered task or spike (no
<!-- plan:v1 ... -->marker and## Task/## Spikeon line 3).epic #1501
Updated 2026-11-25T19:15:19.694Z.