casepack

by sammyeby

Helm chartv0.8.9App 0.8.9ProprietaryVerified publisher

CasePack — multi-tenant incident evidence management platform for MSPs. Deploys the full stack in one command.

About this chart

CasePack Helm Chart

Umbrella Helm chart that deploys the full CasePack stack — API, SPA, PostgreSQL, Keycloak, Gotenberg, and SeaweedFS — in a single command.

Quick Start

helm repo add sammyeby https://sammyeby.github.io/charts/
helm repo update

helm upgrade --install casepack sammyeby/casepack \
  --namespace casepack \
  --create-namespace

This installs CasePack with all bundled infrastructure using default dev credentials. Not suitable for production without overrides.

Architecture

┌─────────────────────────────────────────────────────────────┐
│                   CasePack Umbrella Chart                    │
│                                                             │
│  ┌──────────────┐  ┌──────────────┐  ┌──────────────────┐  │
│  │ casepack-api │  │ casepack-spa │  │    postgresql     │  │
│  │  (subchart)  │  │  (subchart)  │  │    (subchart)     │  │
│  └──────┬───────┘  └──────────────┘  └────────┬─────────┘  │
│         │                                      │            │
│         ├──── OIDC auth ──┐                    │            │
│         ├──── JDBC ───────┼────────────────────┘            │
│         ├──── HTML → PDF ─┐                                 │
│         │                 │                                 │
│  ┌──────┴───────┐         │                                 │
│  │  gotenberg   │◀────────┘                                 │
│  │  (subchart)  │                                           │
│         │                 │                                 │
│  ┌──────┴───────┐  ┌─────┴──────┐                          │
│  │  seaweedfs   │  │  keycloak  │                          │
│  │  (subchart)  │  │ (subchart) │                          │
│  └──────────────┘  └────────────┘                          │
└─────────────────────────────────────────────────────────────┘

Subcharts

ComponentChartVersionCondition
CasePack APIcasepack-api0.37.0Always enabled
CasePack SPAcasepack-spa0.36.0Always enabled
PostgreSQLpostgresql (SamSoft)2.3.2postgresql.enabled
Keycloakkeycloak (SamSoft)1.4.1keycloak.enabled
Gotenberggotenberg (SamSoft)0.2.0gotenberg.enabled
SeaweedFSseaweedfs4.34.0seaweedfs.enabled

Self-Host License Setup

Run ./activate.sh <activation-token> first. It writes license.jwt, activation.json, and the self-host values in .env.

For Kubernetes, provide self-host runtime values through a Kubernetes Secret referenced by casepack-api.secrets.existingSecret. Create the env file outside git:

cat > /tmp/casepack-api-selfhost.env <<'EOF'
DB_URL=jdbc:postgresql://casepack-postgresql-primary:5432/casepack
DB_USER=casepack
DB_PASS=change-me
S3_ACCESS_KEY=admin
S3_SECRET_KEY=admin123456
S3_PUBLIC_ENDPOINT=https://s3.casepack.example.com
CASEPACK_LICENSE_TOKEN=<contents-of-license.jwt>
CASEPACK_LICENSE_KEY_SOURCE=jwks
CASEPACK_LICENSE_JWKS_URL=https://licensing.samuelumeh.com/.well-known/jwks.json
CASEPACK_DEPLOYMENT_MODE=self_host
CASEPACK_INSTALLATION_ID=inst_your-installation-id
CASEPACK_SELF_HOST_BOOTSTRAP_ENABLED=true
CASEPACK_SELF_HOST_BOOTSTRAP_TENANT_NAME=CasePack Workspace
[email protected]
CASEPACK_SELF_HOST_BOOTSTRAP_ADMIN_INITIAL_PASSWORD=change-me-on-first-login
CASEPACK_KEYCLOAK_BASE_URL=http://casepack-keycloak
CASEPACK_KEYCLOAK_REALM=casepack
CASEPACK_KEYCLOAK_SPA_CLIENT_ID=casepack-spa
CASEPACK_KEYCLOAK_SPA_REDIRECT_URI=http://localhost:3000/auth/callback
CASEPACK_KEYCLOAK_SA_CLIENT_ID=casepack-user-manager
CASEPACK_KEYCLOAK_SA_CLIENT_SECRET=casepack-user-manager-secret
EOF

kubectl create secret generic casepack-api-selfhost \
  --namespace casepack \
  --from-env-file=/tmp/casepack-api-selfhost.env

Then install with:

casepack-api:
  secrets:
    existingSecret: "casepack-api-selfhost"

keycloak:
  bootstrapRealm:
    existingSecret: "casepack-api-selfhost"

The Docker Compose path mounts license.jwt and activation.json directly. For Kubernetes, keep those files outside git and project the required values into the API Secret.

Renewal

For Kubernetes, run ./renew-license.sh --no-restart, update the license secret, then restart the API deployment:

kubectl create secret generic casepack-api-selfhost \
  --namespace casepack \
  --from-env-file=/tmp/casepack-api-selfhost.env \
  --dry-run=client -o yaml | kubectl apply -f -

kubectl rollout restart deployment/casepack-casepack-api -n casepack

Keycloak Realm, Theme, and Email

When bundled Keycloak is enabled, the chart installs the official CasePack theme and imports the casepack realm during Keycloak's first startup. The realm includes the SPA and user-management clients needed for onboarding. The theme image is published publicly on GHCR, so no registry pull Secret is required. If your cluster pulls images through a private mirror or registry that requires authentication, create a pull Secret in the release namespace and add it to keycloak.imagePullSecrets.

For a multi-user deployment, configure Keycloak SMTP so CasePack can send invitations, password-setup links, and password-reset emails. Create a Secret in the release namespace before installing the chart:

kubectl create secret generic casepack-keycloak-smtp \
  --namespace casepack \
  --from-literal=KC_SMTP_HOST=smtp.example.com \
  --from-literal=KC_SMTP_PORT=587 \
  [email protected] \
  --from-literal=KC_SMTP_FROM_DISPLAY_NAME=CasePack \
  --from-literal=KC_SMTP_AUTH=true \
  --from-literal=KC_SMTP_USER=your-smtp-username \
  --from-literal=KC_SMTP_PASSWORD=your-smtp-password \
  --from-literal=KC_SMTP_STARTTLS=true \
  --from-literal=KC_SMTP_SSL=false

Reference it from your values file:

keycloak:
  smtp:
    existingSecret: casepack-keycloak-smtp

Port 587 with STARTTLS is common. For implicit TLS on port 465, set KC_SMTP_PORT=465, KC_SMTP_STARTTLS=false, and KC_SMTP_SSL=true. For an unauthenticated private relay, set KC_SMTP_AUTH=false and leave KC_SMTP_USER and KC_SMTP_PASSWORD empty. Do not enable STARTTLS and SSL at the same time.

Keycloak only imports a realm when it does not already exist. For an existing installation, configure email under Realm settings → Email in the casepack realm and use Test connection. If needed, select casepack as both the login theme and email theme under Realm settings → Themes.

Production Deployment

Disable bundled infrastructure and point to managed services:

# production-values.yaml
postgresql:
  enabled: false

keycloak:
  enabled: false

gotenberg:
  enabled: false

seaweedfs:
  enabled: false

casepack-api:
  secrets:
    existingSecret: "casepack-api-secrets"
  config:
    oidcIssuerUri: "https://auth.example.com/realms/casepack"
    s3Endpoint: "http://object-store.internal:8333"
    s3PublicEndpoint: "https://s3.casepack.example.com"
    s3Region: "eu-central-1"
    s3PathStyle: "true"
    gotenbergUrl: "http://gotenberg.gotenberg-prod.svc.cluster.local:3000"
    corsOrigins: "https://casepack.example.com"
  ingress:
    enabled: true
    className: nginx
    annotations:
      cert-manager.io/cluster-issuer: letsencrypt-prod
    hosts:
      - host: api.casepack.example.com
        paths:
          - path: /
            pathType: Prefix
    tls:
      - secretName: casepack-api-tls
        hosts:
          - api.casepack.example.com
helm upgrade --install casepack sammyeby/casepack \
  --namespace casepack \
  --create-namespace \
  -f production-values.yaml

Parameters

Global

ParameterDescriptionDefault
global.domainBase domain for subchartscasepack.example.com
global.storageClassStorageClass for all PVCs"" (cluster default)

CasePack API (casepack-api.*)

ParameterDescriptionDefault
casepack-api.replicaCountNumber of API replicas1
casepack-api.image.repositoryAPI image repositoryghcr.io/sammyeby/casepack-api
casepack-api.image.tagAPI image tag"" (chart appVersion)
casepack-api.config.oidcIssuerUriOIDC issuer URIhttp://casepack-keycloak/realms/casepack
casepack-api.config.s3EndpointInternal S3 endpoint used by API server-side storage operationshttp://casepack-seaweedfs-s3:8333
casepack-api.config.s3PublicEndpointOptional browser-facing S3 endpoint for presigned URLs; include S3_PUBLIC_ENDPOINT in existingSecret when using the Secret path""
casepack-api.config.gotenbergUrlInternal Gotenberg service URL used for document conversionhttp://casepack-gotenberg:3000
casepack-api.config.corsOriginsCORS allowed originshttp://localhost:3000
casepack-api.config.deploymentModeDeployment mode; include CASEPACK_DEPLOYMENT_MODE in existingSecret when using the Secret pathself_host
casepack-api.config.installationIdInstallation ID; include CASEPACK_INSTALLATION_ID in existingSecret when using the Secret path""
casepack-api.config.licenseKeySourceLicense key sourcejwks
casepack-api.config.licenseJwksUrlLicensing JWKS URLhttps://licensing.samuelumeh.com/.well-known/jwks.json
casepack-api.config.activationFileActivation bundle path when mounted as a file/run/secrets/activation.json
casepack-api.config.selfHostBootstrapEnabledBootstrap toggle; include CASEPACK_SELF_HOST_BOOTSTRAP_ENABLED in existingSecret when using the Secret pathtrue
casepack-api.config.selfHostBootstrapTenantNameInitial tenant name; include CASEPACK_SELF_HOST_BOOTSTRAP_TENANT_NAME in existingSecret when using the Secret pathCasePack Workspace
casepack-api.config.selfHostBootstrapAdminEmailBootstrap admin email; include CASEPACK_SELF_HOST_BOOTSTRAP_ADMIN_EMAIL in existingSecret when using the Secret path""
casepack-api.config.selfHostBootstrapAdminInitialPasswordBootstrap admin initial password; include CASEPACK_SELF_HOST_BOOTSTRAP_ADMIN_INITIAL_PASSWORD in existingSecret when using the Secret path""
casepack-api.secrets.existingSecretUse pre-created K8s Secret""
casepack-api.secrets.dbUrlPostgreSQL JDBC URLjdbc:postgresql://casepack-postgresql-primary:5432/casepack
casepack-api.secrets.dbPassDatabase passwordcasepack
casepack-api.secrets.licenseTokenInline license JWT as CASEPACK_LICENSE_TOKEN""
casepack-api.secrets.licenseTokenFileHelper value for rendering a wrapper-owned license.jwt Secret""
casepack-api.secrets.activationBundleHelper value for rendering a wrapper-owned activation.json Secret""
casepack-api.ingress.enabledEnable API Ingressfalse

CasePack SPA (casepack-spa.*)

ParameterDescriptionDefault
casepack-spa.enabledDeploy bundled SPAtrue
casepack-spa.replicaCountNumber of SPA replicas1
casepack-spa.image.repositorySPA image repositoryghcr.io/sammyeby/casepack-spa
casepack-spa.config.apiBaseUrlAPI base URLhttp://localhost:8080
casepack-spa.config.oidcAuthorityOIDC authority URLhttp://localhost:8081/realms/casepack
casepack-spa.config.deploymentModeSPA deployment modeSELF_HOST
casepack-spa.config.licensingPortalUrlLicensing portal URLhttps://licensing.samuelumeh.com/portal
casepack-spa.ingress.enabledEnable SPA Ingressfalse

PostgreSQL (postgresql.*)

ParameterDescriptionDefault
postgresql.enabledDeploy bundled PostgreSQLtrue
postgresql.auth.databaseDatabase namecasepack
postgresql.auth.usernameDatabase usercasepack
postgresql.auth.passwordDatabase passwordcasepack
postgresql.auth.postgresPasswordSuperuser passwordpostgres
postgresql.primary.persistence.sizePVC size10Gi

Keycloak (keycloak.*)

ParameterDescriptionDefault
keycloak.enabledDeploy bundled Keycloaktrue
keycloak.auth.adminUserAdmin usernameadmin
keycloak.auth.adminPasswordAdmin passwordadmin
keycloak.imagePullSecretsOptional registry pull Secrets for Keycloak and the theme loader; the theme image is public, so none are required by default[]
keycloak.externalDatabase.hostDatabase hostcasepack-postgresql-primary
keycloak.externalDatabase.databaseDatabase namekeycloak
keycloak.externalDatabase.userDatabase userkeycloak
keycloak.externalDatabase.passwordDatabase passwordkeycloak
keycloak.bootstrapRealm.existingSecretExisting Secret containing CASEPACK_KEYCLOAK_SA_CLIENT_SECRET; use the API Secret when applicable""
keycloak.smtp.existingSecretExisting Secret containing all nine KC_SMTP_* keys""
keycloak.smtp.hostSMTP server used when the chart creates the Secret""
keycloak.smtp.portSMTP port587
keycloak.smtp.fromSender email address; replace for multi-user deploymentsnoreply@localhost
keycloak.smtp.fromDisplayNameSender display nameCasePack
keycloak.smtp.authEnable SMTP authenticationtrue
keycloak.smtp.userSMTP username""
keycloak.smtp.passwordSMTP password; prefer existingSecret in production""
keycloak.smtp.starttlsEnable STARTTLStrue
keycloak.smtp.sslEnable implicit TLSfalse
keycloak.theme.image.repositoryOfficial CasePack theme image repositoryghcr.io/sammyeby/keycloak-themes
keycloak.theme.image.tagOfficial CasePack theme image tag0.5.0
keycloak.theme.image.pullPolicyTheme loade

Deploy casepack with OpenTenant

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