Feature Request: Consistent Avatar Upload Support in authentik
Is your feature request related to a problem? Please describe.
In authentik, applications support uploading images (e.g., logos in SVG or PNG format), but user avatars are not supported in the same way. This inconsistency is confusing and frustrating, as it allows images for application logos but not for user avatars. If security concerns are the reason for blocking avatar uploads, the approach should be consistent—either disable image uploads entirely or enable them for both applications and avatars. The lack of avatar support forces reliance on external services like Gravatar, which introduces unnecessary complexity, privacy concerns, and resource overhead.
Describe the solution you'd like
- Enable avatar image uploads for users in authentik, similar to how application logos are handled (supporting formats like PNG and SVG).
- Allow uploaded avatars to be passed to applications during login, ensuring a consistent user profile image across all connected services.
- Implement security measures for avatar uploads, such as:
- Parsing SVGs to detect and remove potential malicious code.
- Scanning raster images (e.g., PNG) for harmful content.
- Converting or sanitizing images to ensure they are safe for use.
This would provide a seamless and integrated experience without relying on external services like Gravatar.
Describe alternatives you've considered
- Using Gravatar: Relying on Gravatar for avatars was considered, but it has significant drawbacks:
- Privacy concerns: Sharing user data with a third-party service raises data protection issues.
- Extra effort: Users must set up and maintain a Gravatar account, adding unnecessary complexity.
- Resource inefficiency: External services increase latency and dependency on third-party infrastructure.
- No Avatars: Omitting avatars entirely avoids the issue but diminishes user experience, as personalized profile images are a standard feature in modern identity management systems.
- Custom External Hosting: Hosting avatars on a separate service and linking them was considered, but this adds complexity and maintenance overhead, similar to Gravatar.
Additional context
The ability to upload application logos but not user avatars creates an inconsistent user experience in authentik. By enabling secure avatar uploads with proper sanitization (e.g., SVG parsing, image scanning), authentik can provide a cohesive and user-friendly feature set. This would eliminate the need for external services like Gravatar, improve privacy, and streamline the user experience across applications.
I agree that making user icons a first class citizen in Authentik would be beneficial. In the meantime, I followed these instructions to allow users to upload their own: https://github.com/goauthentik/authentik/discussions/6824 . It doesn't address everything you listed but it's a useful stopgap.
I agree that making user icons a first class citizen in Authentik would be beneficial. In the meantime, I followed these instructions to allow users to upload their own: #6824 . It doesn't address everything you listed but it's a useful stopgap.
Thank you for the workaround I really appreciate it.
In my case I want that issue to be fixed, because it makes no sense to to make a workaround, while in other situations, it is possible. 🤷🏽♂️
We're closing this in favor of this parent issue: #25250