1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-13 11:17:26 +02:00
unleash.unleash/src
Thomas Heartman c2a29b49b8
fix: turn off showing usernames and emails in the project cards when the flag is turned on (#7421)
This PR:
- adds a flag to anonymize user emails in the new project cards
- performs the anonymization using the existing `anonymise` function
that we have.

It does not anonymize the system user, nor does it anonymize groups. It
does, however, leave the gravatar url unchanged, as that is already
hashed (but we may want to hide that too).

This PR also does not affect the user's name or username. Considering
the target is the demo instance where the vast majority of users don't
have this (and if they do, they've chosen to set it themselves), this
seems an appropriate mitigation.

With the flag turned off:

![image](https://github.com/Unleash/unleash/assets/17786332/10a84562-c025-4e5c-b642-f949595b4e7e)

With the flag on:

![image](https://github.com/Unleash/unleash/assets/17786332/6fc35203-e2fa-4208-9650-0a87d3898996)
2024-06-21 12:51:37 +02:00
..
lib fix: turn off showing usernames and emails in the project cards when the flag is turned on (#7421) 2024-06-21 12:51:37 +02:00
mailtemplates fix-css-update-for-CR-email-template (#6186) 2024-02-13 10:16:25 +09:00
migrations feat: adding full creator information to view used by feature read (#7356) 2024-06-11 14:19:32 +02:00
test feat: Max strategies metrics (#7392) 2024-06-14 09:20:43 +02:00
migrator.ts fix: set log level to error for db migrate (#6601) 2024-03-19 14:45:27 +01:00
server-dev.ts feat: clean up command bar props (#7368) 2024-06-12 09:24:16 +03:00
server.ts