| id |
name |
namespace |
version |
status |
package |
actions |
owner |
fixtures |
caring |
| testdata.undeclared-ceiling |
deliberately undeclared ceiling key |
testdata:secret |
v1 |
fixture |
flexauth.testdata.undeclared_ceiling |
|
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 |
|
|
Undeclared ceiling (FLEX-WP-0025-T03)
This package exists to prove flex-auth validate flags a ceiling read from a
key the sibling registry never supplies. Do not copy it.
import future.keywords.if
default decision := {"effect": "deny", "reason": "no_matching_rule"}
decision := {"effect": "allow", "reason": "ttl_ok"} if {
input.action == "sign"
input.context.ttl_hours <= input.resource.attributes.max_ttl_hours
}
package flexauth.testdata.undeclared_ceiling_test
import future.keywords.if
import data.flexauth.testdata.undeclared_ceiling
test_allow if {
undeclared_ceiling.decision.effect == "allow" with input as {
"action": "sign",
"context": {"ttl_hours": 1},
"resource": {"attributes": {"max_ttl_hours": 8}}
}
}