mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-17 02:12:55 +02:00
Add oidc freshrss
This commit is contained in:
@@ -76,6 +76,11 @@ spec:
|
||||
secretKeyRef:
|
||||
name: argocd-oidc-client-secret
|
||||
key: client_secret
|
||||
- name: FRESHRSS_OIDC_CLIENT_SECRET
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: freshrss-oidc-client-secret
|
||||
key: client_secret
|
||||
server:
|
||||
volumes:
|
||||
- name: blueprint-vault
|
||||
@@ -90,6 +95,9 @@ spec:
|
||||
- name: blueprint-argocd
|
||||
configMap:
|
||||
name: authentik-blueprint-argocd
|
||||
- name: blueprint-freshrss
|
||||
configMap:
|
||||
name: authentik-blueprint-freshrss
|
||||
volumeMounts:
|
||||
- name: blueprint-vault
|
||||
mountPath: /blueprints/custom/vault-oidc.yaml
|
||||
@@ -103,6 +111,9 @@ spec:
|
||||
- name: blueprint-argocd
|
||||
mountPath: /blueprints/custom/argocd-oidc.yaml
|
||||
subPath: argocd-oidc.yaml
|
||||
- name: blueprint-freshrss
|
||||
mountPath: /blueprints/custom/freshrss-oidc.yaml
|
||||
subPath: freshrss-oidc.yaml
|
||||
ingress:
|
||||
enabled: true
|
||||
ingressClassName: nginx
|
||||
@@ -128,6 +139,9 @@ spec:
|
||||
- name: blueprint-argocd
|
||||
configMap:
|
||||
name: authentik-blueprint-argocd
|
||||
- name: blueprint-freshrss
|
||||
configMap:
|
||||
name: authentik-blueprint-freshrss
|
||||
volumeMounts:
|
||||
- name: blueprint-vault
|
||||
mountPath: /blueprints/custom/vault-oidc.yaml
|
||||
@@ -141,6 +155,9 @@ spec:
|
||||
- name: blueprint-argocd
|
||||
mountPath: /blueprints/custom/argocd-oidc.yaml
|
||||
subPath: argocd-oidc.yaml
|
||||
- name: blueprint-freshrss
|
||||
mountPath: /blueprints/custom/freshrss-oidc.yaml
|
||||
subPath: freshrss-oidc.yaml
|
||||
postgresql:
|
||||
enabled: false
|
||||
redis:
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: authentik-blueprint-freshrss
|
||||
data:
|
||||
freshrss-oidc.yaml: |
|
||||
version: 1
|
||||
metadata:
|
||||
name: FreshRSS OIDC
|
||||
entries:
|
||||
- model: authentik_providers_oauth2.oauth2provider
|
||||
id: freshrss-provider
|
||||
state: present
|
||||
identifiers:
|
||||
name: FreshRSS
|
||||
attrs:
|
||||
name: FreshRSS
|
||||
authorization_flow: !Find [authentik_flows.flow, [slug, default-provider-authorization-implicit-consent]]
|
||||
authentication_flow: !Find [authentik_flows.flow, [slug, default-authentication-flow]]
|
||||
invalidation_flow: !Find [authentik_flows.flow, [slug, default-provider-invalidation-flow]]
|
||||
client_type: confidential
|
||||
client_id: freshrss
|
||||
client_secret: !Env [FRESHRSS_OIDC_CLIENT_SECRET, ""]
|
||||
redirect_uris:
|
||||
- matching_mode: strict
|
||||
url: https://rss.rubenhensen.nl/i/oidc/
|
||||
signing_key: !Find [authentik_crypto.certificatekeypair, [name, "authentik Self-signed Certificate"]]
|
||||
property_mappings:
|
||||
- !Find [authentik_providers_oauth2.scopemapping, [managed, goauthentik.io/providers/oauth2/scope-openid]]
|
||||
- !Find [authentik_providers_oauth2.scopemapping, [managed, goauthentik.io/providers/oauth2/scope-email]]
|
||||
- !Find [authentik_providers_oauth2.scopemapping, [managed, goauthentik.io/providers/oauth2/scope-profile]]
|
||||
- model: authentik_core.application
|
||||
id: freshrss-app
|
||||
state: present
|
||||
identifiers:
|
||||
slug: freshrss
|
||||
attrs:
|
||||
name: FreshRSS
|
||||
provider: !KeyOf freshrss-provider
|
||||
meta_launch_url: https://rss.rubenhensen.nl
|
||||
@@ -99,3 +99,21 @@ spec:
|
||||
remoteRef:
|
||||
key: kv/argocd-oidc
|
||||
property: client_secret
|
||||
---
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: freshrss-oidc-client-secret
|
||||
spec:
|
||||
secretStoreRef:
|
||||
name: vault-backend
|
||||
kind: ClusterSecretStore
|
||||
refreshInterval: 15m
|
||||
target:
|
||||
name: freshrss-oidc-client-secret
|
||||
creationPolicy: Owner
|
||||
data:
|
||||
- secretKey: client_secret
|
||||
remoteRef:
|
||||
key: kv/freshrss-oidc
|
||||
property: client_secret
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: freshrss-oidc-client-secret
|
||||
spec:
|
||||
secretStoreRef:
|
||||
name: vault-backend
|
||||
kind: ClusterSecretStore
|
||||
refreshInterval: 15m
|
||||
target:
|
||||
name: freshrss-oidc-client-secret
|
||||
creationPolicy: Owner
|
||||
data:
|
||||
- secretKey: client_secret
|
||||
remoteRef:
|
||||
key: kv/freshrss-oidc
|
||||
property: client_secret
|
||||
@@ -42,7 +42,20 @@ spec:
|
||||
- name: CRON_MIN
|
||||
value: "13,43"
|
||||
- name: OIDC_ENABLED
|
||||
value: "0"
|
||||
value: "1"
|
||||
- name: OIDC_PROVIDER_METADATA_URL
|
||||
value: https://authentik.rubenhensen.nl/application/o/freshrss/.well-known/openid-configuration
|
||||
- name: OIDC_CLIENT_ID
|
||||
value: freshrss
|
||||
- name: OIDC_CLIENT_SECRET
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: freshrss-oidc-client-secret
|
||||
key: client_secret
|
||||
- name: OIDC_SCOPES
|
||||
value: "openid email profile"
|
||||
- name: OIDC_X_FORWARDED_HEADERS
|
||||
value: X-Forwarded-Port X-Forwarded-Proto X-Forwarded-Host
|
||||
- name: TZ
|
||||
value: Europe/Amsterdam
|
||||
image: freshrss/freshrss:latest
|
||||
|
||||
Reference in New Issue
Block a user