Skip to content

Commit

Permalink
fix(authelia): remove deprecated expand-env
Browse files Browse the repository at this point in the history
  • Loading branch information
Diaoul committed Jan 12, 2025
1 parent 42b9857 commit 07f5d57
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 54 deletions.
9 changes: 4 additions & 5 deletions kubernetes/apps/security/authelia/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ spec:
AUTHELIA_TELEMETRY_METRICS_ENABLED: "true"
AUTHELIA_THEME: dark
X_AUTHELIA_CONFIG: /config/configuration.yaml
X_AUTHELIA_CONFIG_FILTERS: expand-env,template
X_AUTHELIA_CONFIG_FILTERS: template
envFrom: *envFrom
probes:
liveness: &probes
Expand Down Expand Up @@ -131,10 +131,9 @@ spec:
- path: /config/configuration.yaml
subPath: configuration.yaml
readOnly: true
oidc-jwks:
secrets:
type: secret
name: authelia-oidc-jwks-key
name: authelia
globalMounts:
- path: /config/oidc-jwks-key.pem
subPath: oidc-jwks-key.pem
- path: /config/secrets
readOnly: true
1 change: 0 additions & 1 deletion kubernetes/apps/security/authelia/app/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ kind: Kustomization
resources:
- ./helmrelease.yaml
- ./secret.sops.yaml
- ./oidc-jwks-key-secret.sops.yaml
configMapGenerator:
- name: authelia
files:
Expand Down

This file was deleted.

20 changes: 13 additions & 7 deletions kubernetes/apps/security/authelia/app/resources/configuration.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
# NOTE: Authelia vars should be escaped with $${VAR_NAME} to avoid interpolation by Flux
authentication_backend:
ldap:
address: ldap://glauth.security.svc.cluster.local:389
Expand Down Expand Up @@ -52,8 +51,15 @@ access_control:
- name: internal
networks: ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
rules:
# bypass for authelia
- domain: auth.${DOMAIN}
policy: bypass
# one factor for local
- domain: "*.${DOMAIN}"
policy: one_factor
network:
- internal
# bypass for API access
- domain:
- audiobookshelf.${DOMAIN}
- lidarr.${DOMAIN}
Expand Down Expand Up @@ -86,14 +92,14 @@ access_control:
identity_providers:
oidc:
jwks:
# prettier-ignore
- key: {{ secret "/config/oidc-jwks-key.pem" | mindent 10 "|" | msquote }}
- key: |
{{ secret "/config/secrets/OIDC_JWKS_KEY" | mindent 10 "|" | msquote }}'
cors:
endpoints: ["authorization", "token", "revocation", "introspection"]
clients:
- client_name: Grafana
client_id: grafana
client_secret: "$${GRAFANA_OAUTH_CLIENT_SECRET}"
client_secret: '{{ secret "/config/secrets/GRAFANA_OAUTH_CLIENT_SECRET" }}'
public: false
authorization_policy: two_factor
scopes: ["openid", "profile", "groups", "email"]
Expand All @@ -102,7 +108,7 @@ identity_providers:
userinfo_signed_response_alg: none
- client_name: Jellyfin
client_id: jellyfin
client_secret: "$${JELLYFIN_OAUTH_CLIENT_SECRET}"
client_secret: '{{ secret "/config/secrets/JELLYFIN_OAUTH_CLIENT_SECRET" }}'
public: false
authorization_policy: two_factor
require_pkce: true
Expand All @@ -115,7 +121,7 @@ identity_providers:
token_endpoint_auth_method: client_secret_post
- client_name: Miniflux
client_id: miniflux
client_secret: "$${MINIFLUX_OAUTH_CLIENT_SECRET}"
client_secret: '{{ secret "/config/secrets/MINIFLUX_OAUTH_CLIENT_SECRET" }}'
public: false
authorization_policy: two_factor
scopes: ["openid", "profile", "groups", "email"]
Expand All @@ -135,7 +141,7 @@ identity_providers:
token_endpoint_auth_method: none
- client_name: Paperless
client_id: paperless
client_secret: "$${PAPERLESS_OAUTH_CLIENT_SECRET}"
client_secret: '{{ secret "/config/secrets/PAPERLESS_OAUTH_CLIENT_SECRET" }}'
public: false
authorization_policy: two_factor
scopes: ["openid", "profile", "groups", "email"]
Expand Down
8 changes: 5 additions & 3 deletions kubernetes/apps/security/authelia/app/secret.sops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ stringData:
INIT_POSTGRES_USER: ENC[AES256_GCM,data:NBXkJO0sAzY=,iv:UAGOIw3JA14i7g+tkbZH0r9VpVfneovJikidJs7pduU=,tag:f9VTDF5ZKF5ZSaqHnh5I4g==,type:str]
INIT_POSTGRES_PASS: ENC[AES256_GCM,data:oQmW3uZYd8mf9YLuxiAe8mc8Bd8=,iv:4OEdtaPFyEvA99MSkEfiSmEAPfAgmRsFVUVk4WAOC+s=,tag:dCLZ2B24ptJl80Im8zqAhg==,type:str]
INIT_POSTGRES_SUPER_PASS: ENC[AES256_GCM,data:UHoDjFcM50R+XtqMnR/dC1cfHhQ=,iv:eOtptQOu/mAWhuvIhuGjdoaeiWDcqhriUyS0A3auAWo=,tag:YYZD7MUN6nmnwkZiY2zBBQ==,type:str]
#ENC[AES256_GCM,data:BnQyu7ZWj3QZVohSM8Q=,iv:XD8QslqNspCTMVMhBsNRBW/1/MkDypdezTLV1qMHdC0=,tag:L1xMhSvF6BU+peFExVMxyg==,type:comment]
OIDC_JWKS_KEY: ENC[AES256_GCM,data:GJ/xjzOxLGB09ryBKs+Pw2+Q6FfU1+gWChyaDAo3Zh1rV4py1XidM/M54908AlZ3HwH1MOOhrDMupxlvicitvYiAPkAdxMycIuk/CL7mlPv8O8jTXlc1VPwA0kGoQwZ4ENmAw7Lmbq3IHwqwgQzlzS9G2T/kdjXb276M+XD6Qs80GGKdoYRDFE2OhqFam3wgNnEBJPRPfBptCJ/Okc99pFw8KVFVT+a/AwQzCgEciWhy0tiz7ATbu54fM81JO06NDGxcCVUru9OLEy/T7JTdpxdujsxBw94GoTzhq11xTBqPoqG4TnirCWlxrzJg3jgaKLJ3/n+nbFL/zdejVqS4dOpiv/2Ig9XZ+Dv16jND0OHKzX43rRiAuIx1bcoGhkVlngzvOKrCgCf22RR3md8CHWPiMIYuO9nhdSmfVN8qjp4d6b2D2wkwC22cyqKDrWuUlKmmWKQar5zg+Ank4KgAM3rXTpjajzzz/xaMxEXKWnZ9cbKLAPQbKxjCLLOVmd0s039e0EZyoF7+0yKnNp9V4kkcgQxvL05cDvNMjLybvfTt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iv:LNngGJ48cBifO570UpP96OvGw2AETquoj53XWixDrMA=,tag:2Eb6i9w1onmbP80t/U6SuA==,type:str]
lastmodified: "2025-01-12T16:23:10Z"
mac: ENC[AES256_GCM,data:Z2baKxzAqMaef05VoFQZTuppbmd5FJerRc1bwrB5O36InQasBtkdIwV6qS7Lh4RFAh7AFNCs+aEwLqGD3qol2fi/E7jV5tqONkp6PLZ7lEv7WVJFMmgWxT/Agpdo9r6rL4lB5WsjOSvdQeNhcmf9o+hqDGujr5YxDq/dvHIXSxE=,iv:XbZ1eCqqzFiSpgC7cEiRCZ3zv21eGo01kvwbAQakohg=,tag:FniPAa0pY8tuCYmppRn3oQ==,type:str]
pgp:
- created_at: "2024-06-21T22:45:08Z"
enc: |-
Expand All @@ -55,4 +57,4 @@ sops:
-----END PGP MESSAGE-----
fp: 86170CE5CB464ADDC6BE8E597450F180356132B6
encrypted_regex: ^(data|stringData)$
version: 3.8.1
version: 3.9.3

0 comments on commit 07f5d57

Please sign in to comment.