SingleSignOn Config

SingleSignOnConfig defines the configurations of SSO.

A typical SingleSignOnConfig for a Kalm-Cloud cluster would look as follows:

apiVersion: core.kalm.dev/v1alpha1
kind: SingleSignOnConfig
metadata:
name: sso
namespace: kalm-system
spec:
domain: foobar.kalm.dev
idTokenExpirySeconds: 300
issuer: https://kalm.dev/oidc
issuerClientId: W67pe2..LQ01wf1p
issuerClientSecret: -oR5lZmbgERGz9F2..YQYE0J561mRYQ

It configures its OIDC provider by assigning issuer as https://kalm.dev/oidc, it also set the client id and client secret in the spec.

SingleSignOnConfig

NameTypeDescriptionRequired
issuerstringThe base path of dex and the external name of the OpenID Connect service.Domain or issuer can't be blank at the same time.
jwksUristringJWKS endpoint used to verify JWT tokens
domainstringkalm dex oidc provider domainDomain or issuer can't be blank at the same time.
useHttpboolDefault scheme is https, this flag is to change it to httpFalse
port*intport of kalm dex oidc providerFalse
showApproveScreenbool
alwaysShowLoginScreenbool
connectorsDexConnector []Dex connectors configConnectors and TemporaryUser can't be blank at the same time.
temporaryUser*TemporaryDexUserTemporary Dex user, mainly used for bootstrapping setup of Kalm.Connectors and TemporaryUser can't be blank at the same time.
externalEnvoyExtAuthz*ExtAuthzEndpointCreate service entry if the ext_authz service is running out of istio meshFalse
idTokenExpirySeconds*uint32expiry of idToken in secondsFalse

DexConnector

NameTypeDescriptionRequired
typestringtype of Connector, currently support: github and gitlabTrue
idstringid of dex connectorTrue
namestringname of dex connectorTrue
config*runtime.RawExtensionconfig for dex connectorTrue

TemporaryDexUser

NameTypeDescriptionRequired
usernamestringTrue
passowrdHashstringbcrypt hash of the passwordTrue
userIdstringTrue
emailstringTrue

ExtAuthzEndpoint

NameTypeDescriptionRequired
hoststringhost of endpointTrue
portintport of endpointTrue
schemestringhttp or httpsTrue
Last updated on by Liu Mingmin