gafaelfawr

by joaquinito2051

Helm chartv4.6.1App 3.6.0

The Gafaelfawr authentication and authorization system

About this chart

gafaelfawr

The Gafaelfawr authentication and authorization system

Homepage: https://gafaelfawr.lsst.io/

Maintainers

NameEmailUrl
rra

Values

KeyTypeDefaultDescription
affinityobject{}Affinity rules for the Gafaelfawr frontend pod
cloudsql.enabledboolfalseEnable the Cloud SQL Auth Proxy sidecar, used with CloudSQL databases on Google Cloud
cloudsql.image.pullPolicystring"IfNotPresent"Pull policy for Cloud SQL Auth Proxy images
cloudsql.image.repositorystring"gcr.io/cloudsql-docker/gce-proxy"Cloud SQL Auth Proxy image to use
cloudsql.image.tagstring"1.29.0"Cloud SQL Auth Proxy tag to use
cloudsql.instanceConnectionNamestring""Instance connection name for a CloudSQL PostgreSQL instance
cloudsql.serviceAccountstring""The Google service account that has an IAM binding to the gafaelfawr and gafaelfawr-tokens Kubernetes service accounts and has the cloudsql.client role
config.cilogon.clientIdstring""CILogon client ID. One and only one of this, config.github.clientId, or config.oidc.clientId must be set.
config.cilogon.loginParamsobject{"skin":"LSST"}Additional parameters to add
config.cilogon.redirectUrlstring/login at the value of config.hostReturn URL given to CILogon (must match the CILogon configuration)
config.cilogon.testboolfalseWhether to use the test instance of CILogon
config.databaseUrlstringNone, must be setURL for the PostgreSQL database
config.errorFooterstring""HTML footer to add to any login error page (inside a tag).
config.github.clientIdstring""GitHub client ID. One and only one of this, config.cilogon.clientId, or config.oidc.clientId must be set.
config.groupMappingobject{}Defines a mapping of scopes to groups that provide that scope. Tokens from an OpenID Connect provider such as CILogon that include groups in an isMemberOf claim will be granted scopes based on this mapping.
config.hoststringNone, must be setUsed to construct issuers and URLs.
config.initialAdminslist[]Usernames to add as administrators when initializing a new database. Used only if there are no administrators.
config.issuer.expMinutesint43200 (30 days)Session length and token expiration (in minutes)
config.issuer.influxdb.enabledboolfalseWhether to issue tokens for InfluxDB. If set to true, influxdb-secret must be set in the Gafaelfawr secret.
config.issuer.influxdb.usernamestring""If set, force all InfluxDB tokens to have that username instead of the authenticated identity of the user requesting a token
config.knownScopesobjectSee the values.yaml fileNames and descriptions of all scopes in use. This is used to populate the new token creation page. Only scopes listed here will be options when creating a new token.
config.ldap.baseDnstringNone, must be setBase DN for the LDAP search to find a user's groups
config.ldap.groupMemberAttrstring"member"Member attribute of the object class. Values must match the username returned in the token from the OpenID Connect authentication server.
config.ldap.groupObjectClassstring"posixGroup"Object class containing group information
config.ldap.uidAttrstring"uidNumber"Attribute containing the user's UID number (only used if uidBaseDn is set)
config.ldap.uidBaseDnstringGet the UID number from the upstream authentication providerBase DN for the LDAP search to find a user's UID number
config.ldap.urlstringDo not use LDAPLDAP server URL from which to retrieve user group information
config.loglevelstring"INFO"Choose from the text form of Python logging levels
config.oidc.audiencestringValue of config.oidc.clientIdAudience for the JWT token
config.oidc.clientIdstring""Client ID for generic OpenID Connect support. One and only one of this, config.cilogon.clientId, or config.github.clientId must be set.
config.oidc.issuerstringNone, must be setIssuer for the JWT token
config.oidc.loginParamsobject{}Additional parameters to add to the login request
config.oidc.loginUrlstringNone, must be setURL to which to redirect the user for authorization
config.oidc.scopeslist["openid"]Scopes to request from the OpenID Connect provider
config.oidc.tokenUrlstringNone, must be setURL from which to retrieve the token for the user
config.oidcServer.enabledboolfalseWhether to support OpenID Connect clients. If set to true, oidc-server-secrets must be set in the Gafaelfawr secret.
config.proxieslist[10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16]List of netblocks used for internal Kubernetes IP addresses, used to determine the true client IP for logging
fullnameOverridestring""Override the full name for resources (includes the release name)
image.pullPolicystring"IfNotPresent"Pull policy for the Gafaelfawr image
image.repositorystring"lsstsqre/gafaelfawr"Gafaelfawr image to use
image.tagstringThe appVersion of the chartTag of Gafaelfawr image to use
imagePullSecretslist[]Secret names to use for all Docker pulls
ingress.annotationsobject{}Additional annotations to add to the ingress
ingress.enabledbooltrueWhether to create an ingress
ingress.hoststring""Hostname for the ingress. This should normally be the same as config.host.
ingress.tlslist[]Configures TLS for the ingress if needed. If multiple ingresses share the same hostname, only one of them needs a TLS configuration.
nameOverridestring""Override the base name for resources
nodeSelectorobject{}Node selector rules for the Gafaelfawr frontend pod
podAnnotationsobject{}Annotations for the Gafaelfawr frontend pod
redis.affinityobject{}Affinity rules for the Redis pod
redis.image.pullPolicystring"IfNotPresent"Pull policy for the Redis image
redis.image.repositorystring"redis"Redis image to use
redis.image.tagstring"6.2.6"Redis image tag to use
redis.nodeSelectorobject{}Node selection rules for the Redis pod
redis.persistence.accessModestring"ReadWriteOnce"Access mode of storage to request
redis.persistence.enabledbooltrueWhether to persist Redis storage and thus tokens. Setting this to false will use emptyDir and reset all tokens on every restart. Only use this for a test deployment.
redis.persistence.sizestring"1Gi"Amount of persistent storage to request
redis.persistence.storageClassstring""Class of storage to request
redis.persistence.volumeClaimNamestring""Use an existing PVC, not dynamic provisioning. If this is set, the size, storageClass, and accessMode settings are ignored.
redis.podAnnotationsobject{}Pod annotations for the Redis pod
redis.tolerationslist[]Tolerations for the Redis pod
replicaCountint1Number of web frontend pods to start
resourcesobject{}Resource limits and requests for the Gafaelfawr frontend pod
serviceAccount.annotationsobject{}Annotations to add to the service account. If CloudSQL is in use, the annotation specifying the Google service account will also be added.
serviceAccount.createboolfalseForce creation of a service account. Normally, no service account is used or mounted. If CloudSQL is enabled, a service account is always created regardless of this value.
serviceAccount.namestringName based on the fullname templateName of the service account to use
tokens.affinityobject{}Affinity rules for the token management pod
tokens.nodeSelectorobject{}Node selection rules for the token management pod
tokens.podAnnotationsobject{}Annotations for the token management pod
tokens.resourcesobject{}Resource limits and requests for the Gafaelfawr token management pod
tokens.serviceAccount.annotationsobject{}Annotations to add to the service account. If CloudSQL is in use, the annotation specifying the Google service account will also be added.
tokens.serviceAccount.createbooltrueCreate a Kubernetes service account to use for token management with a cluster role that allows it to list, get, patch, and delete secrets in any namespace. Even if true, it is only created if tokens.secrets is non-empty.
tokens.serviceAccount.namestringFormed by appending -tokens to the fullname templateName of the service account to use
tokens.tolerationslist[]Tolerations for the token management pod
tolerationslist[]Tolerations for the Gafaelfawr frontend pod
vaultSecretsPathstringNone, must be setPath to the Vault secret (secret/k8s_operator/<host>/gafaelfawr, for example)

Autogenerated from chart metadata using helm-docs v1.5.0

Deploy gafaelfawr with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has gafaelfawr 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 chartgafaelfawr is pinned at v4.6.1 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