pinniped-concierge

by Avisto Telecom

Helm chartv0.2.0App v0.48.0Verified publisher

Pinniped Concierge - credential exchange and impersonation proxy for Kubernetes clusters

About this chart

Pinniped Concierge

Pinniped Concierge lets users authenticate to a Kubernetes cluster with external credentials (e.g. tokens issued by an OIDC provider or a Pinniped Supervisor). It exchanges them for cluster credentials, either through the kube-cert-agent (clusters with reachable control-plane nodes) or through its impersonation proxy.

This chart is built from the upstream install-pinniped-concierge.yaml release manifests, using the Bitnami common library.

Installation

Add repository

helm repo add avisto https://avistotelecom.github.io/charts/

Install chart (one release per cluster: the CRDs, APIServices and CredentialIssuer are cluster-scoped)

helm install pinniped-concierge avisto/pinniped-concierge --namespace pinniped-concierge --create-namespace

The Concierge spawns kube-cert-agent pods with hostPath volumes on control-plane nodes: the release namespace must allow the privileged Pod Security Standard.

JWTAuthenticators and WebhookAuthenticators are declared in authenticators.jwt / authenticators.webhook (object name → spec, see the commented examples in values.yaml).

Quick start

The Concierge trusts an OIDC provider directly (here a public client with PKCE, e.g. a GitLab application with "Confidential" unchecked). A Pinniped Supervisor can sit in between to federate several providers.

# ---- values.yaml ----
authenticators:
  jwt:
    sso:
      issuer: https://sso.example.com
      audience: <client-id>   # some providers set the ID token audience to the client ID
      claims:
        username: email
        groups: groups

# Optional: expose the impersonation proxy through a Gateway API TLSRoute
# instead of a LoadBalancer Service (see "Exposing the impersonation proxy
# through Gateway API" below for the Gateway listener it needs)
impersonationProxy:
  mode: enabled
tlsRoute:
  enabled: true
  hostname: concierge.example.com
  parentRefs:
    - name: gateway
      namespace: gateway
      sectionName: tls-passthrough
kubectl create namespace pinniped-concierge
kubectl label namespace pinniped-concierge pod-security.kubernetes.io/enforce=privileged
helm install pinniped-concierge avisto/pinniped-concierge -n pinniped-concierge -f values.yaml

# As cluster admin, generate a kubeconfig to hand out (needs the pinniped CLI).
# Register http://127.0.0.1:48095/callback as redirect URI at the provider.
pinniped get kubeconfig --oidc-client-id <client-id> --oidc-scopes openid,profile,email \
  --oidc-listen-port 48095 > developer.kubeconfig
# Users log in through their browser on first use. Grant them access with regular
# RBAC bindings on their username (email) or groups.
kubectl --kubeconfig developer.kubeconfig get pods

Handing out a kubeconfig

The kubeconfig from pinniped get kubeconfig holds no secret (public CA, client ID and URLs only), so a single file can be shared with every user through a repo or wiki. A few tweaks make it work beyond the admin's machine:

pinniped get kubeconfig --pinniped-cli-path pinniped > prod.kubeconfig
# Cluster, user and context names are copied from the admin kubeconfig ("<admin-name>-pinniped"):
# rename them to something users recognize (mikefarah/yq v4)
N=prod; yq -i ".clusters[0].name = \"$N\" | .users[0].name = \"$N\" | .contexts[0].name = \"$N\"
  | .contexts[0].context = {\"cluster\": \"$N\", \"user\": \"$N\"} | .current-context = \"$N\"" prod.kubeconfig
  • --pinniped-cli-path pinniped: resolve the CLI from the user's PATH. By default the kubeconfig embeds the admin's absolute path (e.g. /usr/local/bin/pinniped), which breaks on Homebrew, Windows or ~/bin installs.
  • --install-hint: message kubectl shows when the CLI is missing. Defaults to a link to https://get.pinniped.dev/cli; override it only to point to internal install instructions.
  • Login frequency: with a Supervisor, the CLI refreshes the session silently until the Supervisor session expires. When the Concierge trusts an OIDC provider directly, add offline_access to --oidc-scopes if the provider supports it, otherwise users get a browser login each time the ID token expires.
  • --oidc-skip-browser: print the login URL instead of opening a browser, for users on SSH sessions or jump hosts.
  • The kubeconfig only logs users in. What they can do comes from RBAC bindings on their username or groups, which the chart does not manage (use extraDeploy or your usual RBAC tooling).

Exposing the impersonation proxy through Gateway API

Instead of the LoadBalancer Service the Concierge creates by default, the impersonation proxy can be exposed with a TLSRoute:

impersonationProxy:
  mode: enabled
tlsRoute:
  enabled: true
  hostname: concierge.example.com
  parentRefs:
    - name: gateway
      namespace: gateway
      sectionName: tls-passthrough

Why a TLSRoute and not an HTTPRoute: users authenticate to the impersonation proxy with TLS client certificates, so the Gateway must forward TLS untouched instead of terminating it.

Requirements:

  • the TLSRoute CRD, in the standard channel since Gateway API v1.5.0
  • a Gateway controller that supports TLS passthrough (tested with Istio 1.30)
  • a passthrough listener on the parent Gateway, matching tlsRoute.hostname and sectionName:
- name: tls-passthrough
  hostname: concierge.example.com
  port: 443
  protocol: TLS
  tls:
    mode: Passthrough   # TLS reaches the Concierge pods untouched
  allowedRoutes:
    kinds:
      - kind: TLSRoute
    namespaces:         # only the Concierge release namespace may attach
      from: Selector
      selector:
        matchLabels:
          kubernetes.io/metadata.name: pinniped-concierge

If external-dns manages your records, note that it does not read TLSRoute hostnames by default (enable its gateway-tlsroute source, or create the record another way).

The Concierge generates the serving certificate for concierge.example.com itself and publishes its CA in the CredentialIssuer status, where pinniped get kubeconfig picks it up. Set impersonationProxy.tls.secretName to use your own certificate instead.

Upgrading

The CRDs are regular templates (crds.install, enabled by default), so every helm upgrade or GitOps sync updates them along with the chart. With crds.keep (enabled by default) they carry helm.sh/resource-policy: keep: helm uninstall leaves them, and the authenticators they hold, in place.

The Concierge patches spec.caBundle of its APIServices at runtime: GitOps tools should ignore that field.

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.security.allowInsecureImagesAllows skipping image verificationfalse
global.compatibility.openshift.adaptSecurityContextAdapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC (auto, force, disabled)auto

Common parameters

NameDescriptionValue
nameOverrideString to partially override common.names.name""
fullnameOverrideString to fully override common.names.fullname""
namespaceOverrideString to fully override common.names.namespace""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
extraDeployArray of extra objects to deploy with the release[]

CRD parameters

NameDescriptionValue
crds.installRender the Concierge CRDs as regular templates. Disable when the CRDs are managed outside this releasetrue
crds.keepAnnotate the CRDs with helm.sh/resource-policy: keep, so helm uninstall leaves them and every authenticator in placetrue

Pinniped Concierge parameters

NameDescriptionValue
image.registryPinniped image registryghcr.io
image.repositoryPinniped image repositoryvmware/pinniped/pinniped-server
image.tagPinniped image tagv0.48.0
image.digestPinniped image digest in the form sha256:aa.... (takes precedence over the tag)sha256:c98ed3977081d7e18be6a5176656371621a1deea1a67b5a42f8b152b856ce4c8
image.pullPolicyPinniped image pull policyIfNotPresent
image.pullSecretsPinniped image pull secrets (also given to the kube-cert-agent pods)[]
replicaCountNumber of Concierge replicas2
updateStrategy.typeDeployment strategy typeRollingUpdate
configConcierge pinniped.yaml settings (upstream defaults){}

Impersonation proxy parameters

NameDescriptionValue
impersonationProxy.modeImpersonation proxy mode: auto runs it only when the cluster has no visible control-plane nodes (managed clusters such as EKS, GKE, AKS), enabled always, disabled never. Must be enabled when tlsRoute.enabled=trueauto
impersonationProxy.externalEndpointEndpoint advertised to clients. Defaults to tlsRoute.hostname when the TLSRoute is enabled""
impersonationProxy.service.typeType of the Service the Concierge creates for the proxy (LoadBalancer, ClusterIP, None). Forced to None when tlsRoute.enabled=trueLoadBalancer
impersonationProxy.service.annotationsAnnotations for that Service{}
impersonationProxy.tlsOptional TLS settings (secretName, certificateAuthorityData). When empty the Concierge generates its own CA{}

TLSRoute parameters

NameDescriptionValue
tlsRoute.enabledCreate a TLSRoute to the impersonation proxyfalse
tlsRoute.apiVersionTLSRoute API version (v1 in

Deploy pinniped-concierge with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has pinniped-concierge on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartpinniped-concierge is pinned at v0.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply