mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
sec: sanitize identity token from events (#24966)
* bug: sanitize identity token from events * add changelog
This commit is contained in:
committed by
GitHub
parent
7a450f5499
commit
bfcbe83ab5
3
.changelog/24966.txt
Normal file
3
.changelog/24966.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
```release-note:security
|
||||||
|
api: sanitize the SignedIdentities in allocations of events to clean the identity token.
|
||||||
|
```
|
||||||
@@ -341,7 +341,7 @@ func eventFromChange(change memdb.Change) (structs.Event, bool) {
|
|||||||
FilterKeys: filterKeys,
|
FilterKeys: filterKeys,
|
||||||
Namespace: after.Namespace,
|
Namespace: after.Namespace,
|
||||||
Payload: &structs.AllocationEvent{
|
Payload: &structs.AllocationEvent{
|
||||||
Allocation: alloc,
|
Allocation: alloc.Sanitize(),
|
||||||
},
|
},
|
||||||
}, true
|
}, true
|
||||||
case "jobs":
|
case "jobs":
|
||||||
|
|||||||
Reference in New Issue
Block a user