mirror of
https://github.com/optim-enterprises-bv/homelab.git
synced 2025-11-01 02:18:01 +00:00
feat(authelia): harden oidc clients
This commit is contained in:
@@ -75,42 +75,54 @@ configMap:
|
|||||||
allowed_origins_from_client_redirect_uris: true
|
allowed_origins_from_client_redirect_uris: true
|
||||||
endpoints: [ userinfo, authorization, token, revocation, introspection ]
|
endpoints: [ userinfo, authorization, token, revocation, introspection ]
|
||||||
clients:
|
clients:
|
||||||
|
|
||||||
- client_id: argocd
|
- client_id: argocd
|
||||||
client_secret: { path: /secrets/client-argocd/client_secret.txt }
|
client_secret: { path: /secrets/client-argocd/client_secret.txt }
|
||||||
client_name: Argo CD
|
client_name: Argo CD
|
||||||
public: false
|
public: false
|
||||||
authorization_policy: two_factor
|
authorization_policy: two_factor
|
||||||
|
pre_configured_consent_duration: 1 month
|
||||||
redirect_uris:
|
redirect_uris:
|
||||||
- https://argocd.stonegarden.dev/auth/callback
|
- https://argocd.stonegarden.dev/auth/callback
|
||||||
- https://argocd.stonegarden.dev/applications
|
- https://argocd.stonegarden.dev/applications
|
||||||
scopes: [ openid, groups, email, profile, offline_access ]
|
scopes: [ openid, groups, email, profile, offline_access ]
|
||||||
userinfo_signed_response_alg: none
|
userinfo_signed_response_alg: none
|
||||||
id_token_signed_response_alg: ES256
|
id_token_signed_response_alg: ES256
|
||||||
|
access_token_signed_response_alg: ES256
|
||||||
|
|
||||||
- client_id: argocd-cli
|
- client_id: argocd-cli
|
||||||
client_name: Argo CD (CLI)
|
client_name: Argo CD (CLI)
|
||||||
public: true
|
public: true
|
||||||
authorization_policy: two_factor
|
authorization_policy: two_factor
|
||||||
|
pre_configured_consent_duration: 1 month
|
||||||
redirect_uris: [ http://localhost:8085/auth/callback ]
|
redirect_uris: [ http://localhost:8085/auth/callback ]
|
||||||
scopes: [ openid, groups, email, profile, offline_access ]
|
scopes: [ openid, groups, email, profile, offline_access ]
|
||||||
userinfo_signed_response_alg: none
|
id_token_signed_response_alg: ES256
|
||||||
|
access_token_signed_response_alg: ES256
|
||||||
|
|
||||||
- client_id: kubectl
|
- client_id: kubectl
|
||||||
client_name: kubectl
|
client_name: kubectl
|
||||||
public: true
|
public: true
|
||||||
authorization_policy: two_factor
|
authorization_policy: two_factor
|
||||||
|
pre_configured_consent_duration: 1 month
|
||||||
|
require_pkce: true
|
||||||
redirect_uris: [ http://localhost:8000, http://localhost:18000 ]
|
redirect_uris: [ http://localhost:8000, http://localhost:18000 ]
|
||||||
scopes: [ openid, groups, email, profile, offline_access ]
|
scopes: [ openid, groups, email, profile, offline_access ]
|
||||||
userinfo_signed_response_alg: none
|
|
||||||
- client_id: netbird
|
- client_id: netbird
|
||||||
client_secret: { path: /secrets/client-netbird/client_secret.txt }
|
client_secret: { path: /secrets/client-netbird/client_secret.txt }
|
||||||
client_name: NetBird
|
client_name: NetBird
|
||||||
public: false
|
public: false
|
||||||
authorization_policy: two_factor
|
authorization_policy: two_factor
|
||||||
|
pre_configured_consent_duration: 1 month
|
||||||
|
require_pkce: true
|
||||||
|
pkce_challenge_method: S256
|
||||||
audience: [ netbird ]
|
audience: [ netbird ]
|
||||||
redirect_uris:
|
redirect_uris:
|
||||||
- http://localhost:53000
|
- http://localhost:53000
|
||||||
- https://netbird.stonegarden.dev/callback
|
- https://netbird.stonegarden.dev/callback
|
||||||
- https://netbird.stonegarden.dev/silent-callback
|
- https://netbird.stonegarden.dev/silent-callback
|
||||||
scopes: [ openid, profile, email ]
|
scopes: [ openid, profile, email, offline_access ]
|
||||||
token_endpoint_auth_method: client_secret_post
|
token_endpoint_auth_method: client_secret_post
|
||||||
|
|
||||||
secret:
|
secret:
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ spec:
|
|||||||
mountPath: /var/lib/netbird
|
mountPath: /var/lib/netbird
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 192Mi
|
memory: 128Mi
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
limits:
|
limits:
|
||||||
memory: 256Mi
|
memory: 256Mi
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ spec:
|
|||||||
containerPort: 80
|
containerPort: 80
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 256Mi
|
memory: 64Mi
|
||||||
cpu: 200m
|
cpu: 200m
|
||||||
limits:
|
limits:
|
||||||
memory: 512Mi
|
memory: 512Mi
|
||||||
|
|||||||
@@ -35,3 +35,10 @@ spec:
|
|||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
name: relay
|
name: relay
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 16Mi
|
||||||
|
cpu: 10m
|
||||||
|
limits:
|
||||||
|
memory: 64Mi
|
||||||
|
cpu: 4000m
|
||||||
Reference in New Issue
Block a user