Skip to content

fix(runtime): bound secret masking scan work - #2168

Draft
ohdearquant wants to merge 1 commit into
mainfrom
codex/secret-mask-linear-2054
Draft

fix(runtime): bound secret masking scan work#2168
ohdearquant wants to merge 1 commit into
mainfrom
codex/secret-mask-linear-2054

Conversation

@ohdearquant

Copy link
Copy Markdown
Owner

Summary

  • bound cumulative suffix work performed while collecting secret spans
  • redact the remaining tail fail-closed when dense credential input exhausts the work budget
  • document the behavior and add a deterministic 1 MiB work-count regression

Verification

  • cargo fmt --all -- --check
  • cargo clippy -p khive-runtime --all-targets -- -D warnings
  • cargo test -p khive-runtime --quiet
  • cargo test -p khive-runtime mask_secrets_bounds_suffix_scan_work_on_dense_credentials -- --nocapture

Fixes #2054

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.

secret_gate: mask_secrets suffix rescans approach quadratic work on repeated credential-shaped input

1 participant