Skip to content

fix(config): config.get redacts secrets unless showSecrets is asked - #1157

Merged
V3RON merged 3 commits into
mainfrom
bug/1097
Oct 31, 2026
Merged

V3RON merged 3 commits into
mainfrom
bug/1097

Conversation

@V3RON

@V3RON V3RON commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1097

Status

Implement: done (3/3 green) Review: round 2 passed, 0 open Hardware: n/a Gate: not run
Next: gh pr ready, then the gate

Assumptions

  • Assumption: redactConfig becomes generic over the structural shape it masks — the gateway handler holds the contract's GatewayConfig, not core Config; redactConfig is added to the gateway's core import allow-list.

Done when

  • simlock config / config get print [redacted] for gateway.token and each alert destination url/secret — e2e/config-secrets.test.ts (worker and gateway) and src/daemon/main.test.ts; audit probes and review rounds 1-2
  • --show-secrets / showSecrets: true returns real values — e2e/config-secrets.test.ts, including --show-secrets before the subcommand (R1); review round 2 broke the guard and saw it fail
  • Protocol bumped to 67 — src/daemon-protocol/index.test.ts; audit probe moved the range back to 66 and saw it fail
  • ADR 0035 section 6, EVENTS.md, manuals, website cli and configuration pages updated — claims review rounds 1-2, no findings

Review

Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 1 blocking, 1 fixed, 0 notes. Claims review: 0 blocking, 0 fixed, 0 notes.
Rounds: 2. Tokens: 51.1M.
Runs: 10. Cost USD: 2.8505. Agent seconds: 1087.

Rejected:

Assessment: complete

Written by an agent.

@V3RON

V3RON commented Oct 31, 2026

Copy link
Copy Markdown
Contributor Author

ADR 0035 amended in place

This PR edits ADR 0035 §6 in place instead of adding a superseding ADR, on the maintainer's decision on the issue: #1097 (comment)

Written by an agent.

@V3RON

V3RON commented Oct 31, 2026

Copy link
Copy Markdown
Contributor Author

Review ledger

Round 1: 98cfbd8
Round 2: 25b9df2

Runs: 10. Cost USD: 2.8505. Agent seconds: 1087.
Tokens input 272, output 61307, cache read 5232156, cache write 436119.
- build implementer: claude-sonnet-5-5 207 s $0.3654
- audit implementer: claude-sonnet-5-5 109 s $0.2253
- review 1 reviewer: claude-sonnet-5-5 281 s $0.3224
- review 1 reviewer spec: claude-sonnet-5-5 16 s $0.1136
- review 1 reviewer code: claude-opus-5-5 185 s $1.0337
- review 1 reviewer claims: claude-sonnet-5-5 32 s $0.1509
- fix 1 implementer: claude-sonnet-5-5 57 s $0.1558
- review 2 reviewer: claude-sonnet-5-5 135 s $0.1957
- review 2 claims: claude-sonnet-5-5 14 s $0.0747
- review 2 code both: claude-opus-5-5 51 s $0.213
Finding outcomes: {"fixed":1,"intentional":1}. Classes: {"adr-index: ADR edited in place":1,"known flag swallows subcommand":1}.
{"findings":[{"id":"R1","role":"code","class":"known flag swallows subcommand","outcome":"fixed","path":"src/cli/commands/config.ts","round":"1","fix":"25b9df29e79bf15498d2ea97d99a805f15315829"},{"id":"R2","role":"code","class":"adr-index: ADR edited in place","outcome":"intentional","path":"docs/internal/adr/0035-a-gateway-sends-chosen-fleet-events-to-webhook-destinations.md","round":"1"}]}

Written by an agent.

@V3RON
V3RON marked this pull request as ready for review October 31, 2026 15:26
@V3RON
V3RON merged commit 6557335 into main Oct 31, 2026
67 checks passed
@V3RON
V3RON deleted the bug/1097 branch October 31, 2026 15:32
leonardoxr added a commit to leonardoxr/simlock that referenced this pull request Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

simlock config prints gateway.token and alert secrets in plain text

1 participant