Files
gitops/add-ons/authentik/blueprint-argocd.yaml
T

53 lines
2.0 KiB
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: blueprint-argocd
namespace: authentik
data:
argocd.yaml: |
version: 1
metadata:
name: ArgoCD
entries:
# Public client: the CLI can't keep a secret, so ArgoCD uses PKCE instead.
- model: authentik_providers_oauth2.oauth2provider
id: argocd-provider
identifiers:
name: argocd
attrs:
authorization_flow: !Find [authentik_flows.flow, [slug, default-provider-authorization-implicit-consent]]
invalidation_flow: !Find [authentik_flows.flow, [slug, default-provider-invalidation-flow]]
client_type: public
client_id: argocd
grant_types:
- authorization_code
- refresh_token
redirect_uris:
- matching_mode: strict
url: https://argo.whyredfire.dev/auth/callback
- matching_mode: strict
url: https://argo.whyredfire.dev/pkce/verify
- matching_mode: strict
url: http://localhost:8085/auth/callback
- matching_mode: strict
url: argocd://auth/callback
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: argocd
identifiers:
slug: argocd
attrs:
name: ArgoCD
provider: !KeyOf argocd-provider
meta_launch_url: https://argo.whyredfire.dev
- model: authentik_policies.policybinding
identifiers:
order: 0
target: !KeyOf argocd
attrs:
group: !Find [authentik_core.group, [name, admins]]