parent
e06ff1d613
commit
daf20f9788
|
@ -0,0 +1,3 @@
|
|||
```release-note:improvement
|
||||
vault: Add JobID and TaskGroup to Vault Token metadata
|
||||
```
|
|
@ -997,6 +997,8 @@ func (v *vaultClient) CreateToken(ctx context.Context, a *structs.Allocation, ta
|
|||
Policies: taskVault.Policies,
|
||||
Metadata: map[string]string{
|
||||
"AllocationID": a.ID,
|
||||
"JobID": a.JobID,
|
||||
"TaskGroup": a.TaskGroup,
|
||||
"Task": task,
|
||||
"NodeID": a.NodeID,
|
||||
"Namespace": namespaceForTask,
|
||||
|
|
Loading…
Reference in New Issue