Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gravatar,initials doesn't fallback when gravatar.com is unreachable #9218

Closed
jdow opened this issue Apr 11, 2024 · 0 comments · Fixed by #9248
Closed

gravatar,initials doesn't fallback when gravatar.com is unreachable #9218

jdow opened this issue Apr 11, 2024 · 0 comments · Fixed by #9248
Labels
bug Something isn't working

Comments

@jdow
Copy link

jdow commented Apr 11, 2024

Describe the bug
On System -> Settings -> Avatar section, there is this blurb of text:
Multiple values can be set, comma-separated, and authentik will fallback to the next mode when no avatar could be found. For example, setting this to gravatar,initials will attempt to get an avatar from Gravatar, and if the user has not configured on there, it will fallback to a generated avatar.

However, if authentik is deployed in an environment that doesn't allow a network connection to gravatar.com, i.e. firewall or similar, even the setting "gravatar,initials" leaves each user's avatar as a broken thumbnail, and initials are never retrieved. Further, each GET of a user ends up being really slow. i.e. retrieving 150k users by paginating through /core/users/ takes 12 hours.

Once changing the setting to "initials" only, retrieving 150k users takes about 2 minutes, and users have proper initials avatars.

To Reproduce
Set global Avatar setting to gravatar,initials and block outgoing connections to gravatar.com

Expected behavior
Failback to using initials setting

Version and Deployment (please complete the following information):

  • authentik version: [e.g. 2024.2.2]
  • Deployment: [e.g. custom helm]
@jdow jdow added the bug Something isn't working label Apr 11, 2024
@jdow jdow changed the title gravatar,initials doesn't fallback when gravatars.com is unreachable gravatar,initials doesn't fallback when gravatar.com is unreachable Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant