SR-INFRA-002 — Hardware-Backed Secret Injection: System Requirements

By Engineering Team•October 15, 2026•4 min read
Metadata Details
System Name Hardware-backed secret injection
Document ID SR-INFRA-002
Author Engineering Team
Status Draft — partly built

Traces back to BRD-INFRA-002. Implements workspace rule 10 sections 4 and 7 and rule 12. The decision is ADR-INFRA-003. Requirement IDs repeat across SRs; cite them with the document ID.


1. Functional System Requirements

ID Description Traceability (BRD)
SR-F-01 (Provider) Credentials are held in 1Password, which encrypts client-side. They are decrypted only by the 1Password desktop app on the administrator’s Mac, after Touch ID (Secure Enclave) approval. BR-1.1, BR-1.3
SR-F-02 (Reference Format) A credential is referred to as op://<vault>/<item>/<field>. No other scheme is used. BR-1.5
SR-F-03 (Names File and Environment) A committed names file (<layer>.opnames) lists the variable names a layer’s run needs and holds no value. The layer’s 1Password Environment maps each name to its op:// reference, or to a plain value for a non-secret setting. The file is named without the words secret, token, credential or key, so the environment guard lets the assistant read it. BR-1.2, BR-1.5
SR-F-04 (Run One Command) The host wrapper runs op run --environment <id>, which resolves only the listed names over the local IPC connection to the desktop app, starts exactly one child process with the values in its environment, and masks them in output. Nothing is exported to the parent shell or written to disk. BR-1.2, BR-1.4, BR-1.5
SR-F-05 (Approval Per Run) Each run that resolves a reference needs a fresh Touch ID approval. No long-lived sign-in is stored on disk. BR-1.3
SR-F-06 (Host Execution) The runner starts on the Mac host. A dev container holds no credential and cannot reach the desktop app. The runner may start the command inside the container, which then receives the values for that command only (SR-INFRA-003 SR-F-08, ADR-INFRA-012). BR-1.1, BR-1.3
SR-F-07 (Safe Failure) A missing item, a closed desktop app or a refused Touch ID stops the run before the command starts. The message names the variable and the reason, never a value. BR-1.4
SR-F-08 (Assistant Boundary) The assistant’s permission settings deny op subcommands that reveal a value (op read, op item, op inject, op document, op vault, op signin) and the guard hook allows op run only around tofu or wrangler with no command substitution. The hook blocks any read of an OP_* variable except a presence check. BR-1.2
SR-F-09 (Pipeline Read) A GitHub Actions workflow reads the vault of its environment, <project>-<environment>, through a 1Password service account named <project>-<environment>-gha that is read-only on that one vault and expires in 90 days or less. The service account’s value is the GitHub environment’s only secret; the workflow loads each value by its op:// reference with 1Password’s load-secrets action, masked in the log, in the job step that needs it. No value of the environment is stored in GitHub, not even a plain one such as the account ID. The workflow uses the same variable names and the same vault fields as the non-production dev container, except its own token items. A missing or empty field stops the job before the tool runs, naming the field. BR-1.2, BR-1.5

2. Non-Functional & Security Requirements

ID Specification Traceability (BRD)
SR-NF-01 (No Plaintext in the Repository) No credential value appears in a tracked file, example file, script or commit. BR-1.2
SR-NF-02 (Audited Reads) Every read is recorded in the password manager’s activity log with the person who approved it. The log is reviewed at each credential rotation. BR-1.3
SR-NF-03 (Fail Closed) If resolution cannot complete, no part of the command runs. BR-1.4
SR-NF-04 (Stated Limits) The manager cannot stop the child process from printing a value it was given, and a package run by that process can read it. The limit is accepted. BR-1.4