# Shares the same Authentik OAuth2 provider/client_id as home's GitLab # (infrastructure/authentik/gitlab-blueprint.yaml has both redirect_uris # registered). Same Vault path (secret/gitlab-oauth) home's copy reads # from - vps-eso-reader policy widened to allow this one extra path # (infrastructure/vps-eso/manifests/clustersecretstore.yaml's policy, # applied live via vault CLI, not git-tracked - matches how every other # Vault policy/auth-method in this repo is set up). apiVersion: external-secrets.io/v1 kind: ExternalSecret metadata: name: gitlab-oidc namespace: gitlab spec: refreshInterval: 1h secretStoreRef: kind: ClusterSecretStore name: vault-backend target: name: gitlab-oidc-secret creationPolicy: Owner template: type: Opaque data: GITLAB_OIDC_CLIENT_ID: "{{ .clientId }}" GITLAB_OIDC_CLIENT_SECRET: "{{ .clientSecret }}" data: - secretKey: clientId remoteRef: key: gitlab-oauth property: client-id - secretKey: clientSecret remoteRef: key: gitlab-oauth property: client-secret