---
# Declarative config for the browser-auth plugins bundled in the jellyfin-ha
# image (jellyfin-plugin-sso, jellyfin-plugin-ldapauth). Rendered into
# /config/plugins/configurations/ by the inject-plugin-config initContainer,
# which substitutes the OidSecret / LdapBindPassword placeholders from the
# VSO-synced oauth-credentials Secret so no secret is committed here. The SSO
# provider key "authentik" must match the redirect path segment registered on
# the shared Authentik "jellyfin" OAuth2 client. Roles/AdminRoles are matched
# against the hierarchical Authentik groups claim (akP-jellyfin-user grants
# login, akP-jellyfin-admin grants Jellyfin admin; global admins inherit the
# latter via akR-global-admin).
apiVersion: v1
kind: ConfigMap
metadata:
name: fafflix-plugin-config
namespace: fafflix
data:
SSO-Auth.xml: |
-
authentik
https://identity.k8s.syd1.au.unkin.net/application/o/jellyfin/
jellyfin
@@CLIENT_SECRET@@
true
true
true
akP-jellyfin-admin
akP-jellyfin-user
akP-jellyfin-admin
false
false
false
false
ak_groups
openid
profile
email
ak_groups
false
false
false
https
LDAP-Auth.xml: |
authentik-ldap.authentik.svc.cluster.local
6636
true
false
true
cn=jellyfin-ldap,ou=users,DC=ldap,DC=goauthentik,DC=io
@@LDAP_BIND_PASSWORD@@
ou=users,DC=ldap,DC=goauthentik,DC=io
(objectClass=user)
ou=users,DC=ldap,DC=goauthentik,DC=io
(memberOf=cn=akP-jellyfin-admin,ou=groups,DC=ldap,DC=goauthentik,DC=io)
false
uid, cn, mail, displayName
true
false
cn
cn
userPassword
true
branding.xml: |
<p style="text-align:center"><a href="/sso/OID/start/authentik">Sign in with SSO</a></p>
false