archivebox

by HelmForge

Helm chartv2.0.0App 0.9.77Apache-2.0Verified publisher

ArchiveBox self-hosted web archiving with Chromium headless, multi-format capture, and persistent storage

About this chart

ArchiveBox Helm Chart

Deploy ArchiveBox on Kubernetes using the official archivebox/archivebox container image.

ArchiveBox is a self-hosted web archiving platform that captures websites in multiple formats, including HTML, PDF, PNG, WARC, and media, using Chromium headless.

Features

  • Multi-format archiving - HTML, PDF, screenshot, WARC, media extraction
  • Chromium headless - full page rendering with /dev/shm tmpfs
  • SQLite or PostgreSQL - embedded SQLite is the default; external PostgreSQL is also supported
  • Persistent storage - archived content and SQLite database on PVC, can also be configured to use remote Postgres
  • Admin credentials - managed via Kubernetes Secret
  • Ingress support - TLS with cert-manager
  • S3-compatible backups - optional CronJob for /data archives

Installation

HTTPS repository:

helm repo add helmforge https://repo.helmforge.dev
helm repo update
helm install archivebox helmforge/archivebox -f values.yaml

OCI registry:

helm install archivebox oci://ghcr.io/helmforgedev/helm/archivebox -f values.yaml

Basic Example

# values.yaml
archivebox:
  adminUsername: admin
  adminPassword: "your-secure-password"

After deploying:

kubectl port-forward svc/<release>-archivebox 5797:80
# Open http://localhost:5797/

Architecture Guides

  • Chart design
  • Runtime architecture
  • Backup guide

One Recreate Deployment owns the /data dataset: SQLite, indexes, configuration, and captured artifacts. The optional backup CronJob reads that same claim and uploads a volume archive to S3-compatible storage. The chart deploys one ArchiveBox replica.

The chart owns Kubernetes workload, storage, routing, credentials, and optional backup resources. TLS policy, capture-egress controls, malicious-content isolation, storage lifecycle, off-cluster retention, and monitoring remain platform responsibilities. See DESIGN.md for the Mermaid topology, security and observability boundaries, gaps, and explicit non-goals.

Examples

  • Minimal local installation
  • Ingress with TLS
  • Scheduled S3 backup

Using an Existing Secret

archivebox:
  existingSecret: my-archivebox-secret
  existingSecretUsernameKey: admin-username
  existingSecretPasswordKey: admin-password

Key Values

KeyDefaultDescription
archivebox.port5797Application port
archivebox.adminUsernameadminAdmin username
archivebox.adminPassword""Admin password (auto-generated if empty)
archivebox.allowedHosts*Allowed hostnames
archivebox.publicIndexTruePublic index page
archivebox.publicAddLinksFalsePublic add URL view (PUBLIC_ADD_VIEW)
archivebox.baseUrl""BASE_URL environment variable; empty uses configuration from the admin UI
archivebox.serverSecurityModeautoServer security mode
archivebox.puid / archivebox.pgid""Optional UID/GID overrides; otherwise autodetected
archivebox.mediaMaxSize750mMax media download size
archivebox.timeout60URL archiving timeout (seconds)
externalDatabase.enabledfalseUse external PostgreSQL
externalDatabase.existingSecret""Secret containing the PostgreSQL password
persistence.enabledtrueEnable persistence for /data
persistence.size50GiPVC size (plan for large archives)
ingress.enabledfalseEnable ingress
service.port80Service port
backup.enabledfalseEnable scheduled S3-compatible backup
backup.schedule0 3 * * *Backup CronJob schedule
backup.s3.credentialsFromPodIdentityfalseUse EKS Pod Identity or IRSA instead of static S3 keys

Public URL

Configure BASE_URL through the first-use admin UI. To set it through Helm, set archivebox.baseUrl to the public URL, such as https://archive.example.com. BASE_URL configures links, CSRF origins, and HTTPS handling.

With archivebox.serverSecurityMode: auto, raw archived HTML uses no-JS replay on public hostnames. For full JavaScript replay on separate subdomains, use safe-subdomains-fullreplay with wildcard DNS and ingress, plus a wildcard certificate for HTTPS. See the upstream security modes.

External PostgreSQL

SQLite is the default database. To use an existing PostgreSQL database:

externalDatabase:
  enabled: true
  host: postgres.database.svc.cluster.local
  name: archivebox
  user: archivebox
  existingSecret: archivebox-postgres
  existingSecretPasswordKey: database-password

Create the database, role, and password Secret first. /data stores archived files and configuration. For existing collections, migrate SQLite records to PostgreSQL before changing the backend.

Upgrading

  • Remove archivebox.publicSnapshots; manage snapshot permissions in the UI. If it was "False", preserve private capture defaults through archivebox.extraEnv with name: PERMISSIONS and value: private.
  • Review saved security contexts and remove fixed UID/GID overrides to use autodetection. Migrate removed keys before reusing saved values, preserving existing Secret and PVC references.

Security Scan

The upstream entrypoint starts as root, prepares writable paths, then runs ArchiveBox as non-root. It detects the existing collection owner unless archivebox.puid / archivebox.pgid are set, falling back to 911 for a new root-owned collection. It retains CHOWN, DAC_OVERRIDE, FOWNER, SETUID, and SETGID for startup.

The chart also includes a bounded init container that changes only the /data directory itself when its current owner is root. It never recursively rewrites an existing collection. The application container still starts as root because the upstream entrypoint discovers the collection owner and drops privileges at runtime. Consequently, the default workload is not compatible with a namespace that enforces the Kubernetes Pod Security restricted profile without an explicit policy exception for this Deployment.

Security Scan:

Kubescape scan for MITRE,NSA,SOC2 with the default values:

FrameworkScore
MITRE100.00%
NSA70.00%
SOC280.00%
Aggregate resource score78.79%

Expected follow-up hardening is operator-dependent:

  • Set explicit CPU and memory requests and limits for the ArchiveBox workload.
  • Add namespace-level NetworkPolicy where the platform requires restricted ingress and egress.
  • Use an existing Secret for admin and S3 credentials in production.

Limitations

  • Single instance only - horizontal scaling is not supported, including with PostgreSQL
  • Storage-heavy - each archived snapshot is commonly 2-50MB; plan PVC size accordingly
  • Chromium resources - requires at least 2Gi RAM for Chromium headless rendering
  • /dev/shm - automatically mounted as memory-backed tmpfs for Chromium

Troubleshooting

  • If startup remains incomplete, inspect application logs, confirm data and runtime paths are writable by the selected UID/GID, and allow enough time for migrations on a large archive.
  • If captures fail, check Chromium memory pressure, DNS and outbound network policy, the target site's behavior, and per-URL timeout settings.
  • If the UI rejects the public hostname, align archivebox.baseUrl with the Ingress host and TLS name.
  • If backup Jobs fail, inspect both containers, verify the S3 endpoint and Secret keys, and test restore of the full archive before relying on retention.
  • The scheduled backup archives live /data and never dumps external PostgreSQL. Use a quiesced maintenance window and retain a matching database dump as described in the backup guide.

More Information

Deploy archivebox with OpenTenant

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