1
0
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:
Gastón Fournier 2024-06-02 15:57:47 +02:00 committed by GitHub
parent 89e5760483
commit 54c6ac8163
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}