test: add remaining e2e enforcement scenarios#174
Draft
luca-iachini wants to merge 6 commits into
Draft
Conversation
Add 7 scenarios covering the key enforcement policies: block_paste_service, block_unlisted_host, tool_call_exfil, direct_tcp_bypass, fs_read_deny, fs_delete_deny, code_fibonacci.
8d0cd33 to
4fd2256
Compare
supervisor writes flat AuthorityConfig TOML; firma authority --config calls load_section(..., "authority") which expects a section wrapper.
Per-run authority always runs plaintext on loopback. User config may have TLS cert paths and a fixed listen_addr; carrying those into the spawned process causes FRAME_SIZE_ERROR (h2c client vs TLS server). Clear tls config and select an ephemeral loopback port up front.
Default ca.dir is "./firma-ca/" relative to sidecar CWD (firma run's CWD). sidecar_trust_env_overrides expects firma-ca.crt at <marker_dir>/firma-ca/firma-ca.crt. Path mismatch meant the cert was never found, env vars not injected into agent, agent rejected the MITM CA with x509 unknown authority.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds 7 enforcement scenarios on top of the harness from #173:
block_paste_serviceblock_unlisted_hosttool_call_exfildirect_tcp_bypassfs_read_denyfs_delete_denycode_fibonacciRun
cargo test --test integration_tests -- --include-ignored