feat: enforce owner allowlisted bwrap HTTPS egress
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a0726e-5232-73f2-aaca-2c05ceb62efb
This commit is contained in:
parent
d69827aaa2
commit
d477c3b5d9
11 changed files with 563 additions and 32 deletions
|
|
@ -88,7 +88,7 @@ def test_source_and_runtime_overlap_refuses_before_copy(artifact):
|
|||
def test_unsupported_network_refuses_before_provisioning(tmp_path, network):
|
||||
profile = Profile(id="profile.test", version="1", extension="ext.bwrap", network=network)
|
||||
base = tmp_path / "sandboxes"
|
||||
with pytest.raises(ValueError, match="empty egress"):
|
||||
with pytest.raises(ValueError, match="default-deny|owner allowlist"):
|
||||
BwrapExtension({"base_dir": str(base)}).provision(profile, {}, "localhost")
|
||||
assert not base.exists()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue