casepack-api

by sammyeby

Helm chartv0.37.0App 0.37.0ProprietaryVerified publisher

CasePack API — Java backend for incident reporting and evidence management for MSPs

About this chart

CasePack API Helm Chart

Deploy CasePack API on Kubernetes — multi-tenant incident evidence management for MSPs. Self-host-first. Built for NIS2-style compliance workflows.

Prerequisites

  • Kubernetes 1.26+
  • Helm 3.10+
  • PostgreSQL 17 instance with a casepack database and user
  • Keycloak with a casepack realm configured (OIDC)
  • S3-compatible object storage (SeaweedFS, Ceph RGW, AWS S3, etc.)

Install

helm install casepack-api oci://ghcr.io/sammyeby/charts/casepack-api \
  --version 0.3.0 \
  --namespace casepack \
  --create-namespace \
  -f my-values.yaml

Upgrade

helm upgrade casepack-api oci://ghcr.io/sammyeby/charts/casepack-api \
  --version 0.4.0 \
  -f my-values.yaml

Upgrading

0.34.3

Documentation only: the README points to SamSoft's licensing portal instead of bysam.io. The image and values are unchanged.

0.33.1

NIS2 reminder email delivery is opt-in. Set config.notificationEmailDeliveryEnabled=true and config.appBaseUrl to the SPA's public URL, and reference an SMTP Secret through smtp.existingSecret. Without config.appBaseUrl, links in reminder emails point to http://localhost:5173. Set config.apiPublicUrl to add the RFC 8058 one-click unsubscribe header for external contacts. Existing installations keep reminder email disabled; reminders still appear in the app.

0.29.0

Contact-request email delivery is opt-in. Set config.contactEmailDeliveryEnabled=true, configure the private marketing bucket, and reference an SMTP Secret through smtp.existingSecret. Existing installations keep delivery disabled.

Uninstall

helm uninstall casepack-api --namespace casepack

Quick Start Values

Create a my-values.yaml file:

image:
  repository: ghcr.io/sammyeby/casepack-api

config:
  oidcIssuerUri: "https://auth.example.com/realms/casepack"
  s3Endpoint: "http://seaweedfs-s3.casepack.svc.cluster.local:8333"
  s3PublicEndpoint: "https://s3.casepack.example.com"
  gotenbergUrl: "http://gotenberg.gotenberg.svc.cluster.local:3000"
  corsOrigins: "https://casepack.example.com"

secrets:
  existingSecret: "casepack-api-secrets"

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

Secrets

The chart expects a Kubernetes Secret with the following keys:

KeyDescription
DB_URLPostgreSQL JDBC URL (e.g. jdbc:postgresql://postgres:5432/casepack)
DB_USERDatabase username
DB_PASSDatabase password
S3_ACCESS_KEYS3 access key
S3_SECRET_KEYS3 secret key
S3_PUBLIC_ENDPOINT(optional) Browser-facing endpoint for presigned upload/download URLs. Prefer config.s3PublicEndpoint when using chart values.
CASEPACK_LICENSE_TOKENRequired. License JWT from SamSoft's licensing portal
CASEPACK_LICENSE_TOKEN_FILE(optional) Path to license file (alternative to inline token)
CASEPACK_LICENSE_PUBLIC_KEY(optional) Base64-encoded Ed25519 JWK fallback for license verification. Omit when CASEPACK_LICENSE_KEY_SOURCE=jwks.
CASEPACK_PROVISIONING_SECRET(optional) HMAC-SHA256 shared secret for provisioning webhook verification (64-char hex string)
CASEPACK_TEST_DATA_RESET_HMAC_SECRET(optional) HMAC-SHA256 shared secret for stage/dev-only test-data reset
CASEPACK_KEYCLOAK_SA_CLIENT_ID(optional) Keycloak service account client ID for Admin API user management
CASEPACK_KEYCLOAK_SA_CLIENT_SECRET(optional) Keycloak service account client secret
CASEPACK_KEYCLOAK_SPA_CLIENT_IDOIDC client ID for action-email redirect (default: casepack-spa)
CASEPACK_KEYCLOAK_SPA_REDIRECT_URI(optional) Redirect URI after Keycloak action completion
CASEPACK_KEYCLOAK_ACTION_TOKEN_LIFESPANAction-link validity in seconds (default: 259200 / 72 hours)
CASEPACK_PROVISIONING_INBOX_ENABLEDfalse

Create the secret:

kubectl create secret generic casepack-api-secrets \
  --namespace casepack \
  --from-literal=DB_URL="jdbc:postgresql://postgres:5432/casepack" \
  --from-literal=DB_USER=casepack \
  --from-literal=DB_PASS=changeme \
  --from-literal=S3_ACCESS_KEY=admin \
  --from-literal=S3_SECRET_KEY=changeme

Then reference it:

secrets:
  existingSecret: "casepack-api-secrets"

Parameters

Application Configuration

ParameterDescriptionDefault
config.serverPortAPI server port8080
config.forwardHeadersStrategyReverse proxy header strategyNATIVE
config.oidcIssuerUriKeycloak realm issuer URIhttp://keycloak:8082/realms/casepack
config.oidcJwkSetUriJWK set URI (auto-derived from issuer if empty)""
config.s3EndpointInternal S3 endpoint URL used by API server-side storage operationshttp://seaweedfs-s3:8333
config.s3PublicEndpointOptional browser-facing S3 endpoint used for presigned URLs; blank falls back to config.s3Endpoint""
config.gotenbergUrlGotenberg service URL used for document conversionhttp://localhost:3000
config.s3RegionS3 regionus-east-1
config.s3BucketDefault S3 bucket namecasepack
config.s3PathStyleUse path-style S3 access (required for SeaweedFS / Ceph RGW)true
config.s3PresignExpiryPresigned URL expiry in seconds900
config.s3AutoCreateBucketAuto-create S3 bucket on startuptrue
config.s3BucketPerTenantEnable per-tenant S3 bucket isolationfalse
config.evidenceMaxBytesMax evidence file size in bytes104857600 (100 MB)
config.evidenceAllowedTypesAllowed content types (empty = all)""
config.rateLimitEnabledEnable per-tenant rate limitingtrue
config.rateLimitInitEvidence init requests per minute30
config.rateLimitFinalizeEvidence finalize requests per minute30
config.rateLimitGlobalGlobal requests per minute300
config.rateLimitWebhookIntakeWebhook intake requests per minute60
config.rateLimitContactRequestsPerHourPublic contact requests allowed per source IP per hour5
config.exportMaxItemsMax evidence items per export100
config.exportMaxBytesMax export size in bytes536870912 (512 MB)
config.exportPoolSizeAsync export thread pool size2
config.webhookEnabledEnable webhook intake endpointstrue
config.webhookMaxPayloadMax webhook payload size in bytes1048576 (1 MB)
config.timelineEnabledEnable NIS2 timeline/milestone endpointstrue
config.corsOriginsComma-separated allowed CORS originshttp://localhost:5173
config.swaggerPublicAllow unauthenticated Swagger UI accessfalse
config.javaOptsJVM options-Xms256m -Xmx512m
config.provisioningInboxEnabledProvisioning events durable async processing flagfalse
config.testDataResetEnabledEnable stage/dev/test-only internal test-data reset endpointfalse
config.testDataResetEnvironmentReset environment guard; use staging, dev, or test outside productionlocal
config.contactNotifyEmailInternal recipient for contact-request notifications[email protected]
config.emailFromSender address used for contact-request email[email protected]
config.marketingAssetsBucketPrivate S3 bucket containing allowlisted sample assets""
config.marketingAssetLinkExpirySecondsSample download link lifetime, up to seven days172800
config.samplePackZipKeyFixed S3 key for the sample evidence packsamples/CasePack_Sample_Evidence_Pack.zip
config.sampleReportPdfKeyFixed S3 key for the sample reportsamples/CasePack_Sample_Evidence_Pack_V2.pdf
config.contactEmailDeliveryEnabledEnable durable SMTP delivery for public contact requestsfalse
config.contactEmailDeliveryDelayMsDelay between contact-request delivery polls5000
config.notificationEmailDeliveryEnabledSend NIS2 deadline reminder emails over SMTP; reminders always appear in the appfalse
config.appBaseUrlSPA URL for links in reminder emails; required when reminder email is on""
config.apiPublicUrlPublic API URL for the one-click unsubscribe header in reminder emails""
smtp.existingSecretExisting Secret containing the SMTP host, username, and password""
smtp.hostKeySMTP host key in the existing Secretsmtp-host
smtp.usernameKeySMTP username key in the existing Secretsmtp-user
smtp.passwordKeySMTP password key in the existing Secretsmtp-password
smtp.portSMTP server port587
smtp.authEnable SMTP authenticationtrue
smtp.starttlsEnable SMTP STARTTLStrue

Image

ParameterDescriptionDefault
image.repositoryContainer image repositoryghcr.io/sammyeby/casepack-api
image.tagImage tag (defaults to appVersion)""
image.pullPolicyImage pull policyIfNotPresent
imagePullSecretsImage pull secrets[]

Ingress

ParameterDescriptionDefault
ingress.enabledEnable ingressfalse
ingress.classNameIngress class namenginx
ingress.annotationsIngress annotations{}
ingress.hostsIngress hosts configurationsee values.yaml
ingress.tlsTLS configuration[]

Resources & Scaling

ParameterDescriptionDefault
replicaCountNumber of replicas1
resources.requests.cpuCPU request250m
resources.requests.memoryMemory request384Mi
resources.limits.cpuCPU limit1
resources.limits.memoryMemory limit768Mi
autoscaling.enabledEnable HPAfalse
autoscaling.minReplicasMinimum replicas1
autoscaling.maxReplicasMaximum replicas5
autoscaling.targetCPUUtilizationPercentageTarget CPU utilization75
podDisruptionBudget.enabledEnable PDBfalse
podDisruptionBudget.minAvailableMinimum available pods1

Other

ParameterDescriptionDefault
serviceAccount.createCreate a service accounttrue
service.typeKubernetes service typeClusterIP
service.portService port80
nodeSelectorNode selector{}
tolerationsTolerations[]
affinityAffinity rules{}

What's Included

  • Deployment with health probes (liveness, readiness, startup), read-only root filesystem, non-root user
  • Service (ClusterIP)
  • Ingress (optional, supports cert-manager TLS)
  • ConfigMap for application configuration
  • Secret (chart-managed or reference existing)
  • ServiceAccount (optional)
  • HPA (optional)
  • PodDisruptionBudget (optional)

Database Migrations

CasePack API uses Flyway for database migrations. Migrations run automatically on startup — no manual steps required. Ensure the database user has CREATE TABLE privileges on first deploy.

Licensing

A valid license token is required to start CasePack. Obtain a license from SamSoft's licensing portal and set CASEPACK_LICENSE_TOKEN in your secret. For SaaS deployments using JWKS, configure CASEPACK_LICENSE_KEY_SOURCE=jwks and CASEPACK_LICENSE_JWKS_URL; do not include CASEPACK_LICENSE_PUBLIC_KEY unless you intentionally need an env-var fallback verifier.

Support

Deploy casepack-api with OpenTenant

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