11 lines
370 B
Plaintext
11 lines
370 B
Plaintext
// A hard rule is a forbid. It runs before any guard on the exact action and
|
|
// target, and nothing overrides it.
|
|
@id("no-irreversible-in-production")
|
|
forbid (principal, action, resource)
|
|
when {
|
|
resource.environment == "production" &&
|
|
resource.disposable == false &&
|
|
context.effect.read_only == false &&
|
|
context.effect.reversibility == "irreversible"
|
|
};
|