Skip to content

Remove the plaintext consume() path, add SecretVault.sign() - #26

Merged
derdelean merged 1 commit into
mainfrom
refactor/remove-consume
Nov 10, 2026
Merged

derdelean merged 1 commit into
mainfrom
refactor/remove-consume

Conversation

@derdelean

Copy link
Copy Markdown
Owner

Port of the consume() removal from the development repo (PR #90 there).

What changes

  • Gate::consume, the allow_plaintext_consume switch and its chain event, Vault::retrieve_secret and the PyO3 consume binding are removed. No operation on the in-process or broker interface returns a stored secret anymore.
  • SecretVault.sign(token, payload) is added, a thin wrapper over Gate::sign. A token outside the sign. namespace is refused as the wrong operation class and the refusal lands on the chain as rejected_wrong_verb.
  • Off the Rust backend, sign() and invoke_llm() refuse and append sign_refused_no_rust_backend / invoke_refused_no_rust_backend.
  • RustGate::new takes only insecure_dev_mode.
  • README quickstart shows the signing path, the consume limitation line is gone.

Verification

  • cargo: 78 core, 20 broker, 6 binding, all passing.
  • pytest: 122 passed, 9 skipped (broker tests opt-in).
  • Ported files match the development repo byte for byte except the pre-existing naming lines in the doc comments.

Release 0.1.5 follows in a separate bump PR.

Port of qree PR #90 (merge f13911e). Gate::consume, the
allow_plaintext_consume switch, Vault::retrieve_secret and the PyO3
consume binding are gone, so no operation on the in-process or broker
interface returns a stored secret. SecretVault gains sign(token,
payload), a thin wrapper over Gate::sign. Off the Rust backend sign()
and invoke_llm() refuse and audit the refusal. Tests rewired:
cargo 78 + 20 + 6, pytest 122 passed, 9 skipped.
@derdelean derdelean mentioned this pull request Nov 10, 2026
@derdelean
derdelean merged commit db3272c into main Nov 10, 2026
10 checks passed
@derdelean
derdelean deleted the refactor/remove-consume branch November 10, 2026 15:40
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.

1 participant