cronbird

by lebe-dev

Helm chartv1.0.0App 1.0.0Verified publisher

A Helm chart for cronbird - HTTP cron job monitoring service with Prometheus metrics

About this chart

cronbird helm Chart

Helm chart for deploying cronbird - a lightweight HTTP service that monitors cron job execution through callback pings and exports metrics for Prometheus/VictoriaMetrics.

Installation

helm repo add tinyops https://tinyops.ru/helm-charts/
helm repo update
helm upgrade --install --create-namespace -n cronbird cronbird tinyops/cronbird --version 1.0.0

Uninstallation

helm uninstall -n cronbird cronbird

Configuration

The following table lists the configurable parameters under .config section:

ParameterDescriptionDefaultRequired
config.listenListen address for the HTTP server (format: IP:PORT)"0.0.0.0:8080"No
config.identitiesComma-separated list of predefined job identities. Example: "clickhouse-backup-prod,pg-backup-staging,redis-backup-prod". Required if allowDynamic is false""Conditional
config.allowDynamicAllow dynamic identities (accept unknown identities on POST). Set to true to accept any valid identity without predefinition. Set to false to only accept identities listed in identitiesfalseNo
config.persistPathPath to state persistence file inside the container"/data/cronbird-state.json"No
config.persistIntervalPersistence interval in seconds (how often to write state to disk)60No
config.logLevelLog level: debug, info, warn, or error"info"No
config.secrets.authTokenBearer token for authentication. If set, all POST /callback/* requests must include Authorization: Bearer <token> header. Leave empty to disable authentication""No
config.secrets.annotationsAnnotations to add to the Secret resource. Useful for external secret management systems like External Secrets Operator or Sealed Secrets{}No

Configuration Examples

Static identities with authentication

config:
  identities: "backup-prod,backup-staging,monitoring-job"
  allowDynamic: false
  secrets:
    authToken: "my-secret-token-here"

Dynamic mode without authentication (dev/testing)

config:
  identities: ""
  allowDynamic: true
  secrets:
    authToken: ""

With External Secrets Operator

config:
  secrets:
    authToken: ""  # Will be injected by External Secrets
    annotations:
      external-secrets.io/backend: vault
      external-secrets.io/key-path: secret/data/cronbird/auth-token

With Sealed Secrets

config:
  secrets:
    authToken: "AQB5tz..."  # Sealed value
    annotations:
      sealedsecrets.bitnami.com/managed: "true"

Security

This Helm chart implements comprehensive security hardening following Kubernetes best practices:

Pod Security

  • Non-root user: Container runs as UID/GID 1001 (user cronbird)
  • Non-root enforcement: runAsNonRoot: true prevents accidental root execution
  • Filesystem group: fsGroup: 1001 ensures proper volume ownership
  • Seccomp profile: RuntimeDefault restricts available syscalls

Container Security

  • Read-only root filesystem: readOnlyRootFilesystem: true prevents runtime modifications
    • Writable /data directory mounted as volume for state persistence
  • Dropped capabilities: All Linux capabilities dropped (drop: [ALL])
  • No privilege escalation: allowPrivilegeEscalation: false prevents privilege elevation
  • Seccomp profile: Container-level RuntimeDefault seccomp filtering

Secret Management

  • Optional authentication: Bearer token authentication can be enabled via config.secrets.authToken
  • Constant-time comparison: Token validation uses constant-time comparison to prevent timing attacks
  • Kubernetes Secret: Sensitive data stored in native Secret resources
  • External secret systems: Supports annotations for External Secrets Operator, Sealed Secrets, etc.

Network Security

  • Health check endpoint: /health endpoint for liveness/readiness probes
  • Minimal port exposure: Only HTTP port 8080 exposed
  • Service isolation: ClusterIP service by default (not exposed externally)

Persistence Security

  • Optional persistence: State persistence disabled by default (uses emptyDir)
  • PVC support: Production deployments can enable PersistentVolumeClaim
  • Volume ownership: fsGroup ensures proper volume permissions

Recommendations

  1. Always enable authentication in production:

    config:
      secrets:
        authToken: "<strong-random-token>"
    
  2. Use external secret management for production:

    • External Secrets Operator
    • Sealed Secrets
    • HashiCorp Vault integration
  3. Enable persistence for production deployments:

    persistence:
      enabled: true
      size: 5Gi
    
  4. Restrict identities in production (disable dynamic mode):

    config:
      identities: "known-job1,known-job2"
      allowDynamic: false
    
  5. Use NetworkPolicy to restrict traffic (not included in chart):

    apiVersion: networking.k8s.io/v1
    kind: NetworkPolicy
    metadata:
      name: cronbird-netpol
    spec:
      podSelector:
        matchLabels:
          app.kubernetes.io/name: cronbird
      policyTypes:
        - Ingress
      ingress:
        - from:
          - namespaceSelector:
              matchLabels:
                name: monitoring  # Allow Prometheus
    

Requirements

  • Kubernetes 1.20+
  • Helm 3.0+

License

This chart follows the same license as the cronbird project.

Deploy cronbird with OpenTenant

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