Stale BAO_BROKER_SOCKET references in startup error and config doc comment #34

Closed
opened 2026-10-19 17:03:54 +00:00 by james.oates · 1 comment
Owner

BAO_BROKER_SOCKET no longer exists — the broker process was removed in feat/direct-tpm (merged 2026-10-18), and the OpenBao connection is now BAO_ADDR + the TPM settings. Two places still name it, so an operator who hits either is told to set a variable ER ignores:

  • src/main.rs:821 — the [[managed_cert]] startup bail: "requires the OpenBao connection — set BAO_ADDR and BAO_BROKER_SOCKET"
  • src/config.rs:332 — comment: "The OpenBao connection is configured whenever BAO_ADDR + BAO_BROKER_SOCKET are …"

Both should name whatever actually gates config.openbao being Some (BAO_ADDR, plus the TPM cert/key paths). Text only — no behaviour change.

Found while answering a question about startup dependencies; not fixed inline per the standing rule.

`BAO_BROKER_SOCKET` no longer exists — the broker process was removed in `feat/direct-tpm` (merged 2026-10-18), and the OpenBao connection is now `BAO_ADDR` + the TPM settings. Two places still name it, so an operator who hits either is told to set a variable ER ignores: - `src/main.rs:821` — the `[[managed_cert]]` startup bail: *"requires the OpenBao connection — set BAO_ADDR and BAO_BROKER_SOCKET"* - `src/config.rs:332` — comment: *"The OpenBao *connection* is configured whenever BAO_ADDR + BAO_BROKER_SOCKET are …"* Both should name whatever actually gates `config.openbao` being `Some` (`BAO_ADDR`, plus the TPM cert/key paths). Text only — no behaviour change. Found while answering a question about startup dependencies; not fixed inline per the standing rule.
Author
Owner

Fixed by the v2.0.0 removal. No BAO_BROKER_SOCKET reference remains anywhere in the tree. The only surviving BAO_ strings are in main.rs's removed-variable list, which hard-errors on BAO_MASTER_KEY_PATH and BAO_MASTER_KEY_FIELD naming their replacement — that is the intended behaviour, not a stale reference.

Fixed by the v2.0.0 removal. No `BAO_BROKER_SOCKET` reference remains anywhere in the tree. The only surviving `BAO_` strings are in `main.rs`'s removed-variable list, which hard-errors on `BAO_MASTER_KEY_PATH` and `BAO_MASTER_KEY_FIELD` naming their replacement — that is the intended behaviour, not a stale reference.
Sign in to join this conversation.
No labels
No milestone
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
IsoHex/edge-router#34
No description provided.