purple-pie

by Cryptex Labs

Helm chartv0.0.1App 0.0.4Verified publisher

Protected personal information server

About this chart

Protected Personal Information Server

Key features

  • Encrypted user data store
  • Attributes
  • Schedules
  • Contacts
  • Audit logging for user information access
  • Localized configuration

Source

https://gitlab.com/cryptexlabs/public/docker/purple-pie

https://gitlab.com/cryptexlabs/public/helm/-/tree/master/charts/purple-pie

Installation notes

Initializing vault

By default installation will fail because for very ridiculous and obscure reasons which no one has yet to identify, vault must be initialized by pounding commands on a CLI.

1. exec into pod and run initialize command

kubectl exec -it purple-pie-vault-0 -- /bin/sh
vault operator init

Copy the token and the keys output from the command you ran above

2. port forward the svc then open in browser

kubectl port-forward pod/purple-pie-vault-0 8200:8200

3. Enter in 3 keys

4. Hope you don't have to do that again

5. Exec into vault pod again

kubectl exec -it purple-pie-vault-0 -- /bin/sh

6. Run these commands

export VAULT_TOKEN="your root account token from step 1"
vault secrets enable transit
vault secrets enable -path=encryption transit
vault write -f transit/keys/users
vault policy write purple-pie-users -<<EOF
path "transit/encrypt/users" {
   capabilities = [ "update" ]
}
path "transit/decrypt/users" {
   capabilities = [ "update" ]
}
EOF
vault token create -policy=purple-pie-users -format=json

7. Base64 encode the auth.client_token from the output in last step

echo -n "your token" | base64

8. Manually edit vault secrets

kubectl edit secret purple-pie-vault-secrets

9. Run helm upgrade again to retry the installation

Deploy purple-pie with OpenTenant

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