mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
fix: Created by on application-created adds the ip as created by (#7231)
To avoid leaking potential PII information in the event log, this replaces the IP for the system user as the "created by" field
This commit is contained in:
parent
89e5760483
commit
54c6ac8163
@ -103,7 +103,7 @@ export default class ClientInstanceService {
|
||||
): Promise<void> {
|
||||
const value = await clientRegisterSchema.validateAsync(data);
|
||||
value.clientIp = clientIp;
|
||||
value.createdBy = clientIp;
|
||||
value.createdBy = SYSTEM_USER.username!;
|
||||
this.seenClients[this.clientKey(value)] = value;
|
||||
this.eventStore.emit(CLIENT_REGISTER, value);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user