mirror of https://github.com/hashicorp/consul
parent
7fd03b3ba4
commit
3841e9e396
|
@ -737,8 +737,10 @@ Sentinel code policy looks like this:
|
|||
key "foo" {
|
||||
policy = "write"
|
||||
sentinel {
|
||||
code = " import \"strings\"
|
||||
main = rule { strings.has_suffix(value, \"bar\") } "
|
||||
code = <<EOF
|
||||
import "strings"
|
||||
main = rule { strings.has_suffix(value, "bar") }
|
||||
EOF
|
||||
enforcementlevel = "hard-mandatory"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -847,8 +847,8 @@ key "foo" {
|
|||
policy = "write"
|
||||
sentinel {
|
||||
code = <<EOF
|
||||
import "strings\
|
||||
main = rule { strings.has_suffix(value, "bar") }
|
||||
import "strings"
|
||||
main = rule { strings.has_suffix(value, "bar") }
|
||||
EOF
|
||||
enforcementlevel = "hard-mandatory"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue