Skip to content

Commit

Permalink
Disallow stale queries when deriving Vault tokens
Browse files Browse the repository at this point in the history
This PR disallows stale queries when deriving a Vault token. Allowing
stale queries could result in the allocation not existing on the server
that is servicing the request.
  • Loading branch information
dadgar committed Dec 1, 2016
1 parent 288c329 commit 4287706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1795,7 +1795,7 @@ func (c *Client) deriveToken(alloc *structs.Allocation, taskNames []string, vcli
Tasks: verifiedTasks,
QueryOptions: structs.QueryOptions{
Region: c.Region(),
AllowStale: true,
AllowStale: false,
},
}

Expand Down

0 comments on commit 4287706

Please sign in to comment.