Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
btkrausen committed Mar 4, 2020
1 parent 4f583fe commit 90b4163
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion vault/sentinel/business_hours.sentinel
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ workhours = rule {
time.now.hour > 7 and time.now.hour < 18
}

main = rule {
precond = rule {
request.operation in ["read"] and
strings.has_prefix(request.path, "secret/")
}

main = rule when precond {
workdays and workhours
}

0 comments on commit 90b4163

Please sign in to comment.