Cloudogu EcoSystem Docs

Using AuthRegistration

This page describes how to use an AuthRegistration resource.

Example CR

Example without secretRef: the controller should create and manage a Secret automatically.

apiVersion: k8s.cloudogu.com/v1
kind: AuthRegistration
metadata:
  name: bluespice-auth
  namespace: ecosystem
spec:
  protocol: OIDC
  consumer: bluespice
  logoutURL: https://bluespice.example.com/logout
  params:
    scope: "openid profile email"

Optionally, spec.secretRef can be set. In this case, the controller should use that Secret:

spec:
  secretRef: bluespice-auth-credentials

Usage

  1. Create the resource:
kubectl apply -f authregistration.yaml
  1. Observe status:
kubectl -n ecosystem get ar bluespice-auth
kubectl -n ecosystem get ar bluespice-auth -o jsonpath='{.status.resolvedSecretRef}{"\n"}'
kubectl -n ecosystem get ar bluespice-auth -o jsonpath='{range .status.conditions[*]}{.type}={.status}{" ("}{.reason}{")\n"}{end}'
  1. Inspect the effective Secret:
SECRET_NAME=$(kubectl -n ecosystem get ar bluespice-auth -o jsonpath='{.status.resolvedSecretRef}')
kubectl -n ecosystem get secret "${SECRET_NAME}" -o yaml

Spec Fields

FieldTypeRequiredDescription
spec.protocolstringYesAuthentication protocol. Allowed values: CAS, OIDC, OAUTH.
spec.consumerstringYesName/identifier of the consuming service.
spec.secretRefstringNoName of an existing target Secret for credentials. If omitted, the controller creates a dedicated Secret.
spec.logoutURLstring (URI)NoOptional logout URL for single logout integrations.
spec.paramsmap[string]stringNoOptional protocol-specific additional parameters.

Status Fields

FieldTypeDescription
status.resolvedSecretRefstringEffective Secret used for credentials (either spec.secretRef or a generated Secret).
status.conditions[]metav1.ConditionResource state conditions. Relevant condition types are Completed and CredentialsPublished.

Conditions

status.conditions[*].status uses the standard values True, False, Unknown.

Condition TypeMeaning
CompletedThe overall registration process has finished.
CredentialsPublishedCredentials were written to the effective Secret (status.resolvedSecretRef).

Last updated on 2/23/2026