supertokens

by Diabolocom

Helm chartv1.0.0App 3.14.0

SuperTokens Core Deployment

About this chart

supertokens

SuperTokens Core Deployment

Deployment

The chart currently use external postgres servers.

  helm install supertokens . -n supertokens --create-namespace

Values

KeyTypeDefaultDescription
apiKeys.enabledboolfalseenable the use of API Keys with supertokens-core
apiKeys.keyslist[]list of API Keys to load and use with supertokens-core
autoscaling.enabledboolfalseenable autoscaling of replicas
autoscaling.maxReplicasint100maximum replica count when autoscaling
autoscaling.minReplicasint1minimal replica count when autoscaling
autoscaling.targetCPUUtilizationPercentageint80target CPU usage before autoscaling
database.hoststring"postgres"database host address
database.namestring"supertokens"database name
database.passwordstring"supersecretpassword"database user password
database.portint5432database port
database.userstring"supertokens"database username
database.schemastring"supertokens"database schema
database.connectionPoolSizeint5maximum postgres connection pool size
accessTokenValidityint3600Time in seconds for how long an access token is valid for
accessTokenBlacklistingboolfalseIf true, allows for immediate revocation of any access token. Keep in mind that setting this to true will result in a db query for each API call that requires authentication.
accessTokenSigningKeyDynamicbooltrueIf this is set to true, the JWT (access token) signing key will change every fixed interval of time.
accessTokenSigningKeyUpdateIntervalint168Time in hours for how frequently the JWT (access token) signing key will change. This value only makes sense if "accessTokenSigningKeyDynamic" is true.
refreshTokenValidityint144000Time in mins for how long a refresh token is valid for.
passwordResetTokenLifetimeint3600000Time in milli-seconds for how long a password reset token is valid for.
emailVerificationTokenLifetimeint86400000Time in milli-seconds for how long an email verification token is valid for.
passwordlessMaxCodeInputAttemptsint5The maximum number of code input attempts per login before the user needs to restart.
passwordlessCodeLifetimeint900000Time in milliseconds for how long a passwordless code is valid for.
basePathstring""base api path
disableTelemetryboolfalseenable/disable telemetry
maxServerPoolSizeint10maximum java server pool size
fullnameOverridestring""
image.pullPolicystring"IfNotPresent"
image.repositorystring"supertokens/supertokens-postgresql"docker repository
image.tagstring"3.12"Overrides the image tag whose default is the chart appVersion.
imagePullSecretslist[]
nameOverridestring""
podAnnotationsobject{}
podSecurityContextobject{}
replicaCountint1
resourcesobject{}limit and requests for resources for supertokens-core container
securityContextobject{}
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template

Autogenerated from chart metadata using helm-docs v1.7.0

Deploy supertokens with OpenTenant

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