nix-community / authentik-nix

Nix flake with package, NixOS module and basic VM test for authentik. Trying to provide an alternative deployment mode to the officially supported docker-compose approach. Not affiliated with or officially supported by the authentik project [maintainer=@willibutz]
MIT License
82 stars 18 forks source link

Media Upload #8

Closed xanderio closed 10 months ago

xanderio commented 10 months ago

authentik currently only allows media files to be uploaded with /media is a mountpoint. This is do to authentik only supporting a containerized deployment with either docker or Kubernetes.

Relevant upstream code: https://github.com/goauthentik/authentik/blob/d71171378547f5a0c02aa5c6bd2e7dcd7a5db106/authentik/api/v3/config.py#L70-L71

I'm currently working on a simple patch to always add the Capabilities.CAN_SAVE_MEDIA for nix deployments, but this can't be upstreamed. We should contact upstream about this issue and see if they are interested in a real fix for this problem.