| id |
name |
namespace |
version |
status |
package |
allow_ttl |
actions |
owner |
fixtures |
caring |
activation |
| informed-decision.fixture |
Synthetic review API contract fixture |
informed-decision:decision-memo |
v1 |
ready |
flexauth.informed_decision.fixture |
60s |
| read |
| acknowledge |
| accept |
| return |
| discuss |
| decline |
|
fixture-only |
|
| profile |
enforce |
| caring-0.4.0-rc2 |
false |
|
|
Synthetic component fixture, never a production policy
Only the locally signed human-fixture and memo:memo-1 can exercise this test.
No production approver, group, mandate or permission is established here.
No presentation claim, view hash, acknowledgment or local outcome is input.
import rego.v1
decision := {"effect": "allow", "reason": "synthetic_review_fixture"} if {
input.tenant == "tenant:platform"
input.subject.id == "human-fixture"
input.subject.type == "human"
input.resource.system == "informed-decision"
input.resource.type == "decision-memo"
input.resource.id == "memo:memo-1"
input.action in {"read", "acknowledge", "accept", "return", "discuss", "decline"}
input.context.approval_id == "fixture"
} else := {"effect": "deny", "reason": "fixture_scope_refused"} if {
true
}
package flexauth.informed_decision.fixture_test
import rego.v1
import data.flexauth.informed_decision.fixture
test_unknown_request_denied if {
fixture.decision.effect == "deny" with input as {}
}