cronbird
by lebe-dev
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:
| Parameter | Description | Default | Required |
|---|---|---|---|
config.listen | Listen address for the HTTP server (format: IP:PORT) | "0.0.0.0:8080" | No |
config.identities | Comma-separated list of predefined job identities. Example: "clickhouse-backup-prod,pg-backup-staging,redis-backup-prod". Required if allowDynamic is false | "" | Conditional |
config.allowDynamic | Allow 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 identities | false | No |
config.persistPath | Path to state persistence file inside the container | "/data/cronbird-state.json" | No |
config.persistInterval | Persistence interval in seconds (how often to write state to disk) | 60 | No |
config.logLevel | Log level: debug, info, warn, or error | "info" | No |
config.secrets.authToken | Bearer token for authentication. If set, all POST /callback/* requests must include Authorization: Bearer <token> header. Leave empty to disable authentication | "" | No |
config.secrets.annotations | Annotations 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(usercronbird) - Non-root enforcement:
runAsNonRoot: trueprevents accidental root execution - Filesystem group:
fsGroup: 1001ensures proper volume ownership - Seccomp profile:
RuntimeDefaultrestricts available syscalls
Container Security
- Read-only root filesystem:
readOnlyRootFilesystem: trueprevents runtime modifications- Writable
/datadirectory mounted as volume for state persistence
- Writable
- Dropped capabilities: All Linux capabilities dropped (
drop: [ALL]) - No privilege escalation:
allowPrivilegeEscalation: falseprevents privilege elevation - Seccomp profile: Container-level
RuntimeDefaultseccomp 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:
/healthendpoint for liveness/readiness probes - Minimal port exposure: Only HTTP port
8080exposed - 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:
fsGroupensures proper volume permissions
Recommendations
-
Always enable authentication in production:
config: secrets: authToken: "<strong-random-token>" -
Use external secret management for production:
- External Secrets Operator
- Sealed Secrets
- HashiCorp Vault integration
-
Enable persistence for production deployments:
persistence: enabled: true size: 5Gi -
Restrict identities in production (disable dynamic mode):
config: identities: "known-job1,known-job2" allowDynamic: false -
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcronbird is pinned at v1.0.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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