8000 BEP design: simplify the secrets model (Keychain items, rules, grants, lists) instead of only documenting it · Issue #3808 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

BEP design: simplify the secrets model (Keychain items, rules, grants, lists) instead of only documenting it #3808

Backlog

Description

@jessie-minimal

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.secret item per secret, "Minimal GitHub sign-in", and "Minimal client signing key".
  • Two config places: rules in ~/.config/minimal/config.toml [secret-store-rules] (written by min secret set), and grants in minimal.toml [...secrets.<VAR>].
  • Two lists: min secret list shows store items and their rules, but not the GitHub sign-in, which is in min auth status.
  • Two grant kinds: source = "broker" and source = "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-pat is a rule key in config.toml, a Keychain account, the id in a project spec, and a row in min secret list.
  • RAW_PAT is a table key in a project spec, an environment variable in the box, and a column in min box spec.
  • The GitHub sign-in is a Keychain item, a line in min auth status, scopes = ["github:user-token"] in a spec, and GH_TOKEN in a box. It appears in neither config.toml nor min secret list.

Options raised

  1. One list: min secret list shows the GitHub sign-in too.
  2. One owner for rules: min secret set is the only writer, so config.toml is never edited by hand.
  3. A shorter grant in minimal.toml, for example RAW_PAT = "uat-raw-pat" or GH_TOKEN = "github".
  4. 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

  1. added
    priority:nice-to-have
    on Nov 25, 2026
  2. added
    kind:question
    on Nov 25, 2026
  3. changed the title [-]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[/+] on Nov 25, 2026
  4. minimal-foundry commented on Nov 25, 2026

    @minimal-foundry
    Contributor

    Refused: body is not a rendered task or spike (no <!-- plan:v1 ... --> marker and ## Task/## Spike on line 3).

    epic #1501

    Updated 2026-11-25T19:15:19.694Z.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:questionpriority:nice-to-have

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0