added authelia openid

This commit is contained in:
Ariel Sosnovsky committed 2023-04-18 10:48:51 -04:00
1 parent dd9210147d
commit 3508351c9f
4 files changed
+69 -55

No files matched your search

+15 -54
View File
@@ -28,7 +28,6 @@ authelia:
env:
- name: TZ
value: "America/Toronto"
resources:
limits:
cpu: "4.00"
@@ -36,6 +35,7 @@ authelia:
requests:
cpu: "0.25"
memory: 50Mi
persistence:
enabled: true
readOnly: false
@@ -55,60 +55,7 @@ authelia:
## Default policy can either be 'bypass', 'one_factor', 'two_factor' or 'deny'. It is the policy applied to any
default_policy: two_factor
networks: []
# networks:
# - name: private
# networks:
# - 10.0.0.0/8
# - 172.16.0.0/12
# - 192.168.0.0/16
# - name: vpn
# networks:
# - 10.9.0.0/16
rules: []
# rules:
# - domain_regex: '^.*\.example.com$'
# policy: bypass
# - domain: public.example.com
# policy: bypass
# - domain: "*.example.com"
# policy: bypass
# methods:
# - OPTIONS
# - domain: secure.example.com
# policy: one_factor
# networks:
# - private
# - vpn
# - 192.168.1.0/24
# - 10.0.0.1
# - domain:
# - secure.example.com
# - private.example.com
# policy: two_factor
# - domain: singlefactor.example.com
# policy: one_factor
# - domain: "mx2.mail.example.com"
# subject: "group:admins"
# policy: deny
# - domain: "*.example.com"
# subject:
# - "group:admins"
# - "group:moderators"
# policy: two_factor
# - domain: dev.example.com
# resources:
# - "^/groups/dev/.*$"
# subject: "group:dev"
# policy: two_factor
# - domain: dev.example.com
# resources:
# - "^/users/john/.*$"
# subject:
# - ["group:dev", "user:john"]
# - "group:admins"
# policy: two_factor
# - domain: "{user}.example.com"
# policy: bypass
authentication_backend:
ldap:
@@ -153,6 +100,20 @@ authelia:
database_index: 0
maximum_active_connections: 8
minimum_idle_connections: 0
identity_providers:
oidc:
enabled: true
access_token_lifespan: 8h
authorize_code_lifespan: 1m
id_token_lifespan: 1h
refresh_token_lifespan: 90m
enforce_pkce: public_clients_only
enable_pkce_plain_challenge: false
minimum_parameter_entropy: 8
enable_client_debug_messages: false
clients: []
secret:
existingSecret: authelia
+1 -1
View File
@@ -5,7 +5,7 @@ nextcloud:
pullPolicy: IfNotPresent
flavor: fpm
replicaCount: 1
replicaCount: 2
nodeSelector:
homelab/capacity: high
+17
View File
@@ -11,6 +11,23 @@ authelia:
startup_check_address: {{ .Values.global.email }}
disable_require_tls: true
identity_providers:
oidc:
clients:
- id: nextcloud
description: NextCloud
secret: '$pbkdf2-sha512$310000$flG99HwC8BHSZSFdao0WfA$iBEXWiKkPN7mrd57NrYXTd6MA1/gExEaJfyF3yFPXd3YWMAdHWXtgw7JXfu44w0qCFkzq7fYuJdD9GX2SdH/sA'
public: false
authorization_policy: two_factor
redirect_uris:
- https://nextcloud.{{ .Values.global.domain }}/apps/oidc_login/oidc
scopes:
- openid
- profile
- email
- groups
userinfo_signing_algorithm: none
persistence:
storageClass: "{{ .Values.global.nfs.storageClass }}"
+36
View File
@@ -68,6 +68,42 @@ apps:
nextcloudData:
storageClass: {{ .Values.global.nfs.storageClass }}
existingClaim: {{ .Values.storage.nextcloudData.name }}
configs:
authelia.config.php: |-
<?php
$CONFIG = array (
'allow_user_to_change_display_name' => false,
'lost_password_link' => 'disabled',
'oidc_login_provider_url' => 'https://auth.core.{{ .Values.global.domain }}',
'oidc_login_client_id' => 'nextcloud',
'oidc_login_client_secret' => 'xjW7ByDrY0IpGo6XC5o6eQEUGagjkK6hULfbtADO5GV-ugHiG1ri1FRvkfL.-sacdHWyqZyO',
'oidc_login_auto_redirect' => false,
'oidc_login_end_session_redirect' => false,
'oidc_login_button_text' => 'Log in with Authelia',
'oidc_login_hide_password_form' => false,
'oidc_login_use_id_token' => true,
'oidc_login_attributes' => array (
'id' => 'preferred_username',
'name' => 'name',
'mail' => 'email',
'groups' => 'groups',
),
'oidc_login_default_group' => 'oidc',
'oidc_login_use_external_storage' => false,
'oidc_login_scope' => 'openid profile email groups',
'oidc_login_proxy_ldap' => false,
'oidc_login_disable_registration' => true,
'oidc_login_redir_fallback' => false,
'oidc_login_alt_login_page' => 'assets/login.php',
'oidc_login_tls_verify' => true,
'oidc_create_groups' => false,
'oidc_login_webdav_enabled' => false,
'oidc_login_password_authentication' => false,
'oidc_login_public_key_caching_time' => 86400,
'oidc_login_min_time_between_jwks_requests' => 10,
'oidc_login_well_known_caching_time' => 86400,
'oidc_login_update_avatar' => false,
);
ingresses:
values: |-
services: