Skip to Content
Security and networking

OIDC sign-in

Sign users in at the edge with an OpenID Connect provider before their requests reach a Route, a workload's address or a namespace, and read who signed in.

This page lists the spec and status fields of OIDCProvider, each with its type, its limits and its description. The Platform page explains the concept, and the metadata of every kind is the same.

OIDCProvider

apiVersion: funcd.io/v1alpha1
kind: OIDCProvider
metadata:
  name: sso
  namespace: default
  resourceGroup: rg1
spec:
  issuer: http://login.localhost:8080/auth/v1/
  addon: login
  client:
    registration: {}
  sessionSecret: sso-session
apiVersionkind
funcd.io/v1alpha1OIDCProvider

OIDCProvider.spec

FieldType and limitsDescription
addonstring, a DNS-1123 labelThe add-on object of the namespace that serves the provider: funcd reaches the provider at the engine's own address, while browsers use issuer.
audiencesarray of string valuesThe aud values a Bearer token may carry to sign a call in. Empty, the default, means that a Bearer token signs nobody in.
clientobject, OIDCProvider.spec.client, requiredThe sign-in client: set exactly one of registration, a client funcd registers at the provider, and credentialsSecret, a client made by hand.
issuerstring, requiredThe provider's issuer URL, as its discovery document names it and as browsers reach it. Without addon, funcd reads the discovery document and every endpoint it names over https only, at addresses reachable from the internet; with addon, at the add-on engine's own address.
sessionSecretstring, required, a DNS-1123 labelA Secret of the namespace whose SESSION_KEY holds 32 random bytes, the key that seals the sign-in cookies. A new key ends every session of the provider.

OIDCProvider.spec.client

FieldType and limitsDescription
credentialsSecretstring, a DNS-1123 labelA Secret of the namespace, written by hand, whose CLIENT_ID and CLIENT_SECRET hold a client made at the provider.
registrationobject, OIDCProvider.spec.client.registrationfuncd registers the client at the provider's registration endpoint, keeps its redirect URIs on the callbacks of the hosts that sign in with the provider, and writes its credentials to a Secret it owns.

OIDCProvider.spec.client.registration

FieldType and limitsDescription
credentialSecretNamestring, a DNS-1123 labelThe Secret funcd writes the client to, as CLIENT_ID, CLIENT_SECRET, REGISTRATION_ACCESS_TOKEN and REGISTRATION_CLIENT_URI, and deletes with the provider. Empty means the provider's name. funcd leaves alone a Secret of that name it did not write, and the provider then stays Pending with reason SecretNotOwned.
rotateinteger, at least 0Raise it above status.observedRotate to rotate the client's secret: funcd asks the provider for a new one and stores it.
tokenSecretstring, a DNS-1123 labelA Secret whose REGISTRATION_TOKEN funcd sends as a Bearer token with every registration, for a provider that requires one.

OIDCProvider.status

FieldType and limitsDescription
callbacksarray of string valuesThe callbacks funcd last applied to the registered client's redirect URIs, sorted.
clientIdstringThe client ID the stored client carries.
conditionsarray of ConditionThe conditions that explain the phase.
observedGenerationintegerThe generation of the spec that funcd last acted on.
observedRotateintegerThe spec.client.registration.rotate value funcd last applied: a rotation is done once it equals rotate.
phasestring, one of Pending, Deploying, Ready, Idle, Degraded, Failed, TerminatingWhere the object is in its lifecycle.

HTTP API

The table lists each described operation of these kinds, with its method and path. The operation's page in the API reference gives its parameters, its body, its authentication and every answer, with when it happens and what to do.

MethodPathOperation
GET/apis/funcd.io/v1alpha1/namespaces/{namespace}/oidcprovidersList the OIDCProviders of a namespace
POST/apis/funcd.io/v1alpha1/namespaces/{namespace}/oidcprovidersCreate an OIDCProvider
GET/apis/funcd.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}Read an OIDCProvider
PUT/apis/funcd.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}Replace an OIDCProvider
DELETE/apis/funcd.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}Delete an OIDCProvider

On this page