passbolt

by CNIEG

Helm chartv1.1.17App 3.4.0-ce-non-root

A Helm chart to deploy Passbolt

About this chart

Passbolt

Passbolt is an open sourced password manager.

Introduction

This chart bootstraps a Passbolt instance.

Prerequisites

  • Kubernetes 1.14+

Installing the chart

To install the chart:

$ helm repo add github-cnieg https://cnieg.github.io/helm-charts
$ helm install github-cnieg/passbolt

After startup of the main pod, you need to manually create the first administrator with the following command inside the container :

bin/cake passbolt register_user -u <email> -f <firstname> -l <lastname> -r admin

Then, follow the instructions printed on screen.

Uninstalling the chart

To uninstall/delete the deployment:

$ helm list
NAME           REVISION    UPDATED                     STATUS      CHART              NAMESPACE
kindly-newt    1           Mon Oct  5 11:08:43 2020    DEPLOYED    passbolt-1.0.1    default
$ helm delete kindly-newt

Configuration

The following table lists the configurable parameters of the Passbolt chart and their default values.

ParameterDescriptionDefault
image.repositoryimage repositorypassbolt
image.tagpassbolt image tag.2.13.5-debian
image.pullPolicyImage pull policyIfNotPresent
imagePullSecretsimagePullSecrets to use for private repositories[]
nameOverrideOverride chart name""
fullnameOverrideOverrides Chart fullname""
podAnnotationsCustom annotations for podsNone
podSecurityContextPrivilege and access control settings for pods{}
securityContextPrivilege and access control settings for containers{}
service.typeKubernetes service typeClusterIP
service.portKubernetes service port80
podDisruptionBudget.enabledFlag for enabling pod disruption budgettrue
podDisruptionBudget.rule.typeRule type of pdbminAvailable
podDisruptionBudget.rule.typeRule value of pdb1
ingress.enabledFlag for enabling ingressfalse
persistence.annotationsKubernetes ingress annotations{}
ingress.labelsIngress additional labels{}
ingress.hosts[0].hostHostname to your Passbolt installationpassbolt.organization.com
ingress.hosts[0].pathsPaths within the URL structure[]
ingress.tlsIngress secrets for TLS certificates[]
ingress.classNameIngress className for multi ingress env and kube v1.19nil
email.hostEmail server host namesmtp.example.com
email.portEmail server port number25
email.fromEmail from field[email protected]
email.usernameUsername for login to email servernil
email.passwordPassword for login to email servernil
email.timeoutEmail default connection timeout30
envEnvironment variables to attach to the podsnil
secretsEnvEnvironment variables to attach to the pods from secretsnil
persistence.enabledFlag for enabling persistent storagefalse
persistence.existingClaimDo not create a new PVC but use this oneNone
persistence.storageClassStorage class to be used""
persistence.accessModeVolumes access mode to be setReadWriteOnce
persistence.sizeSize of the volume512Mi
db.hostHostname of MariaDBpassbolt-mariadb
db.nameDatabase name used by Passboltpassbolt
mariadb.enabledFlag for provisioning an embedded MariaDB instancetrue
mariadb.fullnameOverrideService name for accessing embedded MariaDB instancepassbolt-mariadb
mariadb.auth.databaseDefault name for database to createpassbolt
mariadb.auth.usernameDefault username for the database to createpassbolt
mariadb.auth.passwordDefault password for the database to createpassword
passbolt.baseUrlBase URL where Passbolt will be accessiblepassbolt.organization.com
passbolt.proFlag for enabling pro licensefalse
resourcesPassbolt Pod resource requests & limits{}
affinityNode / Pod affinities{}
nodeSelectorNode labels for pod assignment{}
tolerationsList of node taints to tolerate[]

Using external MySQL / MariaDB database

  1. Create a yaml file db-mysql.yaml which will bind a local kubernetes host db-mysql to the external hostname of the database
apiVersion: v1
kind: Service
metadata:
  name: db-mysql
spec:
  externalName: db.example.com
  type: ExternalName
  1. Create a yaml file db-passbolt.yaml with a secret containing credentials to access database
apiVersion: v1
kind: Secret
metadata:
  name: db-passbolt
data:
  username: <Username in Base64>
  password: <Password in Base64>
  1. Upload the two files
$ kubectl apply -f db-mysql.yaml
$ kubectl apply -f db-passbolt.yaml
  1. Set the following values of the chart:
db:
  host: db-mysql
  name: passbolt
  existingSecret:
    name: db-passbolt
    usernameKey: username
    passwordKey: password

mariadb:
  enabled: false

Enabling pro license

  1. Create a yaml file passbolt-key.yaml with a secret that contains one or more keys to represent the certificates that you want including
apiVersion: v1
kind: Secret
metadata:
  name: passbolt-key
data:
  subscription_key.txt: "<Content of subscription_key.txt in Base64>"
  1. Upload your passbolt-key.yaml to a secret in the cluster you are installing Passbolt to.
$ kubectl apply -f passbolt-key.yaml
  1. Set the following values of the chart:
passbolt:
  license:
    enabled: true
    existingSecret:
      name: passbolt-key
      licenseKey: subscription_key.txt

Deploy passbolt with OpenTenant

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