Skip to content

Commit

Permalink
Backport of consul: allow non-root Nomad to rewrite token into releas…
Browse files Browse the repository at this point in the history
…e/1.9.x (#24488)

Co-authored-by: Tim Gross <[email protected]>
  • Loading branch information
hc-github-team-nomad-core and tgross authored Nov 19, 2024
1 parent b0ff36e commit fedb7cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/24410.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
consul: Fixed a bug where non-root Nomad agents could not recreate a task's Consul token on task restart
```
2 changes: 1 addition & 1 deletion client/allocrunner/taskrunner/consul_hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const (

// consulTokenFilePerms is the level of file permissions granted on the file in
// the secrets directory for the task
consulTokenFilePerms = 0440
consulTokenFilePerms = 0640
)

type consulHook struct {
Expand Down

0 comments on commit fedb7cf

Please sign in to comment.