pinniped-concierge
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'sPATH. By default the kubeconfig embeds the admin's absolute path (e.g./usr/local/bin/pinniped), which breaks on Homebrew, Windows or~/bininstalls.--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_accessto--oidc-scopesif 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
extraDeployor 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
TLSRouteCRD, 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.hostnameandsectionName:
- 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
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.security.allowInsecureImages | Allows skipping image verification | false |
global.compatibility.openshift.adaptSecurityContext | Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC (auto, force, disabled) | auto |
Common parameters
| Name | Description | Value |
|---|---|---|
nameOverride | String to partially override common.names.name | "" |
fullnameOverride | String to fully override common.names.fullname | "" |
namespaceOverride | String to fully override common.names.namespace | "" |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
extraDeploy | Array of extra objects to deploy with the release | [] |
CRD parameters
| Name | Description | Value |
|---|---|---|
crds.install | Render the Concierge CRDs as regular templates. Disable when the CRDs are managed outside this release | true |
crds.keep | Annotate the CRDs with helm.sh/resource-policy: keep, so helm uninstall leaves them and every authenticator in place | true |
Pinniped Concierge parameters
| Name | Description | Value |
|---|---|---|
image.registry | Pinniped image registry | ghcr.io |
image.repository | Pinniped image repository | vmware/pinniped/pinniped-server |
image.tag | Pinniped image tag | v0.48.0 |
image.digest | Pinniped image digest in the form sha256:aa.... (takes precedence over the tag) | sha256:c98ed3977081d7e18be6a5176656371621a1deea1a67b5a42f8b152b856ce4c8 |
image.pullPolicy | Pinniped image pull policy | IfNotPresent |
image.pullSecrets | Pinniped image pull secrets (also given to the kube-cert-agent pods) | [] |
replicaCount | Number of Concierge replicas | 2 |
updateStrategy.type | Deployment strategy type | RollingUpdate |
config | Concierge pinniped.yaml settings (upstream defaults) | {} |
Impersonation proxy parameters
| Name | Description | Value |
|---|---|---|
impersonationProxy.mode | Impersonation 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=true | auto |
impersonationProxy.externalEndpoint | Endpoint advertised to clients. Defaults to tlsRoute.hostname when the TLSRoute is enabled | "" |
impersonationProxy.service.type | Type of the Service the Concierge creates for the proxy (LoadBalancer, ClusterIP, None). Forced to None when tlsRoute.enabled=true | LoadBalancer |
impersonationProxy.service.annotations | Annotations for that Service | {} |
impersonationProxy.tls | Optional TLS settings (secretName, certificateAuthorityData). When empty the Concierge generates its own CA | {} |
TLSRoute parameters
| Name | Description | Value |
|---|---|---|
tlsRoute.enabled | Create a TLSRoute to the impersonation proxy | false |
tlsRoute.apiVersion | TLSRoute 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartpinniped-concierge is pinned at v0.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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