Update sentinel.html.markdown.erb

This commit is contained in:
James Phillips 2017-10-13 12:15:08 -07:00 committed by GitHub
parent f97ec6dc3b
commit cb41ae2428

View file

@ -28,7 +28,7 @@ Here's an example:
```text
sentinel {
code = "import \"strings\"
rule { strings.has_suffix(value,\"foo\") }"
main = rule { strings.has_suffix(value,\"foo\") }"
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"
```text
key "foo" {
policy = "write"
sentinel {
import "strings"
main = rule { strings.has_suffix(value, \"foo\") }
code = "import \"strings\"
main = rule { strings.has_suffix(value, \"bar\") }"
}
}
```
@ -77,8 +76,8 @@ sentinel {
key "foo" {
policy = "write"
sentinel {
import "time"
main = rule { time.hour > 8 and time.hour < 17 }
code = "import \"time\"
main = rule { time.hour > 8 and time.hour < 17 }"
}
}
```