Update sentinel.html.markdown.erb
This commit is contained in:
parent
f97ec6dc3b
commit
cb41ae2428
|
@ -28,7 +28,7 @@ Here's an example:
|
||||||
```text
|
```text
|
||||||
sentinel {
|
sentinel {
|
||||||
code = "import \"strings\"
|
code = "import \"strings\"
|
||||||
rule { strings.has_suffix(value,\"foo\") }"
|
main = rule { strings.has_suffix(value,\"foo\") }"
|
||||||
enforcementlevel = "soft-mandatory"
|
enforcementlevel = "soft-mandatory"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -61,12 +61,11 @@ The following are some examples of ACL policies with Sentinel rules.
|
||||||
### Any values stored under the key prefix "foo" must end with "bar"
|
### Any values stored under the key prefix "foo" must end with "bar"
|
||||||
|
|
||||||
```text
|
```text
|
||||||
|
|
||||||
key "foo" {
|
key "foo" {
|
||||||
policy = "write"
|
policy = "write"
|
||||||
sentinel {
|
sentinel {
|
||||||
import "strings"
|
code = "import \"strings\"
|
||||||
main = rule { strings.has_suffix(value, \"foo\") }
|
main = rule { strings.has_suffix(value, \"bar\") }"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -75,10 +74,10 @@ sentinel {
|
||||||
|
|
||||||
```text
|
```text
|
||||||
key "foo" {
|
key "foo" {
|
||||||
policy = "write"
|
policy = "write"
|
||||||
sentinel {
|
sentinel {
|
||||||
import "time"
|
code = "import \"time\"
|
||||||
main = rule { time.hour > 8 and time.hour < 17 }
|
main = rule { time.hour > 8 and time.hour < 17 }"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue