Skip to content

Commit

Permalink
give human policy access to variables
Browse files Browse the repository at this point in the history
  • Loading branch information
foodelevator committed Dec 13, 2024
1 parent f4401b7 commit efeeead
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nomad.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ resource "nomad_acl_policy" "manage_jobs" {
description = "Can manage jobs in the ${each.value} namespace"
rules_hcl = <<HCL
namespace "${each.value}" {
variables {
# These can be read anyway by execing into a job and echoing env variables,
# though perhaps write access could be more restricted.
path "nomad/jobs/*" {
capabilities = ["read", "write"]
}
}
policy = "write"
}
HCL
Expand Down

0 comments on commit efeeead

Please sign in to comment.