Release v0.1.8

This commit is contained in:
2026-07-11 17:00:37 +02:00
parent a00ef54821
commit 9a0c467d55
102 changed files with 2150 additions and 9272 deletions

View File

@@ -115,6 +115,16 @@ class PolicyContractTests(unittest.TestCase):
self.assertTrue(allowed.allowed, allowed.to_dict())
self.assertEqual(allowed.secret_handling, "reference_only")
compound_secret = plan_configuration_change(
"files.connector_profiles",
actor_scopes=("tenant:*",),
value={"auth": {"bearer_token": "plain-secret"}, "credential_ref": "env:FILES_TOKEN"},
dry_run=True,
approval_count=2,
)
self.assertFalse(compound_secret.allowed)
self.assertIn("secret_reference_required", compound_secret.blockers)
env_only = plan_configuration_change("DATABASE_URL", actor_scopes=("system:*",), value="postgresql://example")
self.assertFalse(env_only.allowed)
self.assertIn("deployment_managed", env_only.blockers)