Skip to content

fix(compact): require allow_pre_security_callout for StreamBuffer callouts - #849

Open
mkoushni wants to merge 1 commit into
praxis-proxy:mainfrom
mkoushni:fix/660-compact-pre-security-callout
Open

fix(compact): require allow_pre_security_callout for StreamBuffer callouts#849
mkoushni wants to merge 1 commit into
praxis-proxy:mainfrom
mkoushni:fix/660-compact-pre-security-callout

Conversation

@mkoushni

@mkoushni mkoushni commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Compact summarization runs in the StreamBuffer pre-read body phase, before same-chain header-phase authentication. Unlike file_resolve and doc_extract, construction did not require an explicit opt-in, so an unauthenticated continuation could burn the configured inference backend.
  • Add allow_pre_security_callout (default false) and refuse filter construction unless it is true. Document that an outer listener or network trust boundary must authenticate first.
  • Update rustdoc, generated filter docs, and examples/configs/openai/responses/compact.yaml.

Fixes #660

Test plan

  • cargo test -p praxis-ai-apis --lib compact (missing ack rejected; explicit true constructs)
  • cargo test -p praxis-tests-integration compact (example passthrough + multi-turn)
  • make coverage-check (95.41% line coverage)

…louts

Summarization runs in the pre-read body phase, before same-chain
header-phase auth. Match file_resolve/doc_extract: default false and
refuse construction unless the operator acknowledges an outer trust
boundary.

Signed-off-by: mkoushni <mkoushni@redhat.com>
@mkoushni
mkoushni force-pushed the fix/660-compact-pre-security-callout branch from 4491f31 to a20217b Compare September 1, 2026 16:35
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.

Compact callouts can execute before header-phase authentication without explicit opt-in

1 participant