| id |
name |
namespace |
version |
status |
package |
actions |
owner |
fixtures |
caring |
| testdata.demo-app |
readback test package demo-app |
testdata:demo-app |
v1 |
fixture |
flexauth.testdata.demo_app |
|
team:platform-security |
|
| profile |
enforce |
canonical_roles |
organization_relations |
scopes |
planes |
capabilities |
exposure_modes |
conditions |
restrictions |
| caring-0.4.0-rc2 |
false |
|
|
| level |
id |
tenant |
| Platform |
platform:testdata |
tenant:platform |
|
|
|
|
|
|
| PrivilegeEscalationBlocked |
|
|
Readback test package (FLEX-WP-0035)
Test-only. Do not copy.
import future.keywords.if
import future.keywords.in
default decision := {"effect": "deny", "reason": "no_matching_rule"}
decision := {"effect": "allow", "reason": "app_user"} if {
input.action == "application.access"
"app-users" in input.subject.attributes.groups
input.subject.attributes.assurance.mfa == true
}
package flexauth.testdata.demo_app_test
import future.keywords.if
import data.flexauth.testdata.demo_app
test_default_deny if {
demo_app.decision.effect == "deny" with input as {"action": "read", "subject": {"attributes": {}}}
}