Sandbox Environment for Policy Testing & Other Functionality
As an example, when iterating on login policies, every change invalidates all active sessions for the affected account. This creates a feedback loop: authors must repeatedly log back in (and disrupt other users' sessions) each time they test a policy modification, even for minor fixes like correcting a role name.
The existing policy simulator helps validate syntax and basic logic, but it does not catch real-world authorization issues. For example, a policy may reference a role name like writer instead of the correct space-writer. The simulator evaluates the policy as valid, but the role doesn't actually grant the intended permissions in practice. These kinds of bugs are only discoverable through live testing — which currently means deploying to production and invalidating sessions.
Log in to comment and vote
Comments1
Aleksandra Cieslak
Nov 23
A small step related to this: Infra Assistant can now test a draft policy against a sample input and iterate until it returns the expected decision, before anything is saved.
https://feedback.spacelift.io/changelog/write-test-and-explain-policies-with-a-smarter-infrastructure-assistant
To be upfront, this is still evaluation against a sample input. It doesn't solve the core problem you described: catching issues that only show up live and testing login policies without invalidating everyone's sessions. We're keeping this in Discovery.