Deployment guide

Cronmaster

Overview

Cronmaster is an open-source, self-hosted web interface for managing the cron jobs on a server. Instead of hand-editing crontab text over SSH, you create, edit, pause, resume and run scheduled jobs from a browser. A human-readable schedule builder, live job output and a searchable history of every run come with it.

This SecureAnyCloud image runs Cronmaster on Ubuntu 24.04 on Azure. It builds the pinned Cronmaster v2.3.1 release from source (recorded in /opt/cronmaster/VERSION). Cronmaster is a Next.js application that runs on Node.js 22 LTS under systemd and binds to loopback only (127.0.0.1:3000). nginx is the sole network-facing surface. It terminates TLS on port 443 and reverse proxies to Cronmaster, and port 80 redirects to HTTPS.

Secure by default. Cronmaster manages the system crontab, so leaving it open would let anyone who can reach it schedule or run arbitrary commands on your server. This image turns authentication on and generates a unique administrator password on each virtual machine's first boot, written to a root-only file. There are no shared or default credentials, and nothing is baked into the image. The service refuses to start without a password, so the open no-authentication mode can never ship.

Manages the system crontab. Cronmaster reads and writes the host's cron jobs directly and runs with the privileges required to do so. Adding a job in the interface writes it straight to the real crontab, and the system cron daemon runs it. Because a cron management tool grants command execution to anyone who signs in, treat the admin password as highly sensitive and restrict who can reach the service.

What you get:

  • The pinned Cronmaster v2.3.1 release, built from source on Node.js 22 LTS and run under systemd
  • Cronmaster bound to loopback only (127.0.0.1:3000), never exposed directly to the network
  • nginx terminating TLS on :443 and reverse proxying to Cronmaster, with HSTS and sensible security headers
  • Port :80 returning a 301 redirect to HTTPS for every path except an unauthenticated /healthz endpoint (HTTP 200) for load balancer probes
  • Authentication on by default, with a unique admin password generated per VM on first boot and written to a root-only file
  • The system cron daemon installed and enabled, so scheduled jobs actually run
  • A self-signed TLS certificate regenerated per VM on first boot, with the VM IP, hostname and 127.0.0.1 in its Subject Alternative Names. Replace it with your own CA-signed certificate for production
  • A built-in self test at /usr/local/bin/cronmaster-selftest that checks the authentication and the host crontab integration end to end over TLS
  • An Ubuntu 24.04 LTS base with the latest security patches applied at build time
  • The Azure Linux Agent for cloud integration and SSH key injection
  • 24/7 SecureAnyCloud support with a guaranteed 24 hour response SLA

Prerequisites

  • An Azure subscription with permission to deploy virtual machines
  • An SSH key pair for administrative access to the VM as the azureuser account
  • A network security group (NSG) that allows inbound TCP 443 (HTTPS) and 80 (redirect) from the networks that should reach the service, and 22 (SSH) from your management network only
  • A VM size of Standard_B2s or larger
1

Deploy from the Azure Portal

Find the Cronmaster on Ubuntu 24.04 LTS image in the Azure Marketplace and select Create.

Choose your subscription, resource group and region. Select a VM size (Standard_B2s or larger) and provide your SSH public key for the azureuser account.

On the Networking tab, allow inbound 443 and 80 from your users, and restrict 22 to your management network.

Select Review + create, then Create. When the VM is running, browse to https://<your-public-ip>/.

2

Deploy from the Azure CLI

Deploy the image from the command line, restricting SSH to your management network. Replace the angle-bracket values with your own before you run the commands:

# Accept the Marketplace terms once per subscription (required before the first CLI deploy)
az vm image terms accept --urn sac1647283583153:cronmaster-ubuntu-24-04:default:latest
az vm create \
  --resource-group my-resource-group \
  --name cronmaster \
  --image sac1647283583153:cronmaster-ubuntu-24-04:default:latest \
  --size Standard_B2s \
  --admin-username azureuser \
  --ssh-key-values ~/.ssh/id_rsa.pub \
  --public-ip-sku Standard
# Allow the web UI from your users and SSH from your management network only
az vm open-port --resource-group my-resource-group --name cronmaster --port 443 --priority 1001
az network nsg rule create --resource-group my-resource-group --nsg-name cronmasterNSG \
  --name allow-ssh --priority 1002 --destination-port-ranges 22 \
  --source-address-prefixes <your-mgmt-cidr> --access Allow --protocol Tcp

When the VM is running, browse to https://<public-ip>/.

3

Retrieve your per-instance admin password

Authentication is on by default. Each VM generates its own admin password on first boot and writes it to a root-only file. Read the file over SSH:

ssh azureuser@<vm-ip> 'sudo cat /root/cronmaster-credentials.txt'

The file contains the CRONMASTER_PASS and CRONMASTER_URL for this specific VM. Cronmaster uses a single admin password and no username.

Keep the password secret. It lives only in this root-only file and in the service environment file, and is never baked into the image.

4

Sign in to the web interface

Browse to https://<vm-ip>/. The certificate is self-signed per VM, so your browser shows a certificate warning the first time. Accept it to proceed, or install the per-VM certificate, or place a CA-signed certificate in front as covered in Step 11.

Cronmaster presents a password prompt. Enter the CRONMASTER_PASS value from Step 3.

5

Explore the dashboard

After you sign in, Cronmaster opens the dashboard. The left panel shows live system information: status, uptime, memory, CPU and load.

The main panel lists every scheduled task with its raw cron expression, its command, a plain-English translation of the schedule, and the user it runs as. A New Task button sits above the list.

6

Create a cron job

Click New Task to open the create form. Choose the user the job runs as and enter the schedule. Pick a task type: either a Custom Command (a single command line) or a Saved Script from the library.

Enter the command to run and an optional description. Saving the task writes it straight to the real crontab, and the system cron daemon runs it on schedule.

7

Build schedules with human-readable syntax

You do not have to remember cron field order. Open Quick Patterns in the task form to pick from common intervals, each labelled in plain English, or search for one. Cronmaster fills in the matching cron expression for you.

The dashboard also translates every job's schedule back into a sentence, such as "At 02:00 AM, every day", so a schedule is never a mystery.

8

Live job output and log history

You can run any job on demand and watch its output stream live in the interface. Cronmaster also keeps a searchable history of previous runs with their exit status, so you can see at a glance which jobs succeeded or failed and read the captured output of any run.

Log retention is configurable through the service environment. To confirm what reaches the real system crontab, check it directly from the shell:

sudo crontab -l -u root 2>/dev/null | head -20 || echo "(no jobs scheduled yet — add one in the web UI)"
9

Verify the deployment

SSH to the VM as azureuser and confirm that the services are running and Cronmaster is bound to loopback only:

systemctl is-active cronmaster nginx cron
sudo ss -tlnp | grep -E ':3000|:443 |:80 ' | sed 's/users:.*//'

All three services report active, and Cronmaster listens on 127.0.0.1:3000 only. nginx is the only component exposed on :80 and :443.

Run the built-in self test. It reads this VM's password and checks the full round trip over TLS. An unauthenticated request is refused, a password login succeeds and the UI renders, and a job seeded into the system crontab is surfaced by the application, which proves the host crontab integration:

sudo /usr/local/bin/cronmaster-selftest
10

Check TLS and the per-instance certificate

nginx terminates TLS on port 443 and redirects plain HTTP on port 80 to HTTPS. Confirm the redirect, confirm that an unauthenticated request is refused, and confirm that a request carrying a valid session succeeds:

curl -s -o /dev/null -w 'port 80 -> HTTP %{http_code}\n' http://127.0.0.1/
curl -sk -o /dev/null -w 'unauthenticated -> HTTP %{http_code}\n' https://127.0.0.1/api/cronjobs
P=$(sudo grep '^AUTH_PASSWORD=' /etc/cronmaster/cronmaster.env | cut -d= -f2-)
J=$(mktemp)
curl -sk -c "$J" -o /dev/null -H 'Content-Type: application/json' --data "{\"password\":\"$P\"}" https://127.0.0.1/api/auth/login
curl -sk -o /dev/null -w 'authenticated -> HTTP %{http_code}\n' -b "$J" https://127.0.0.1/api/cronjobs rm -f "$J"

Port 80 returns 301, an unauthenticated request returns 401, and an authenticated request returns 200.

The self-signed certificate is regenerated per VM on first boot, with the VM IP and hostname in its Subject Alternative Names. Inspect it with:

11

Check the version and credential summary

The baked version and this VM's credential summary are recorded on the VM. The password line is redacted below. Read the full value from the root-only file in Step 3:

cat /opt/cronmaster/VERSION
sudo sed 's/^CRONMASTER_PASS=.*/CRONMASTER_PASS=<redacted per-VM secret>/' /root/cronmaster-credentials.txt | grep -E '^CRONMASTER_'
12

Replace the certificate for production

The per-VM certificate is self-signed, so browsers warn on first use. For a public deployment, put a real certificate in front. The simplest approach is to point a DNS name at the VM and obtain a free certificate with Certbot:

# Point https://<your-domain> at this VM first, then:
sudo apt-get install -y certbot python3-certbot-nginx
sudo certbot --nginx -d <your-domain>

Alternatively, terminate TLS at an Azure Application Gateway or a load balancer in front of the VM and forward to port 443.

13

Configure Cronmaster and rotate the password

Service and environment. The service definition is at /etc/systemd/system/cronmaster.service. Its environment, including the per-VM AUTH_PASSWORD and other settings, is in /etc/cronmaster/cronmaster.env.

Rotate the password. Edit AUTH_PASSWORD in /etc/cronmaster/cronmaster.env, then run sudo systemctl restart cronmaster. Use a strong value of at least 16 characters, because the service refuses to start with a shorter one.

Choose which user's crontab is managed. The HOST_CRONTAB_USER setting controls this, and the default is the system root crontab. Adjust it in the unit if you want Cronmaster to manage a different user's cron jobs.

Optional single sign-on. Cronmaster also supports OIDC single sign-on with providers such as Keycloak, Authentik and Auth0. If you prefer SSO to the built-in password, see the upstream documentation to configure SSO_MODE and the OIDC_* settings.

Security notes

  • No default login. Authentication is on by default, and a unique admin password is generated on each VM's first boot into a root-only file and the service environment file. The service refuses to start without one.
  • Loopback-only application. Cronmaster binds to 127.0.0.1:3000 and is reachable only through the nginx TLS reverse proxy on :443. Keep it that way, and let nginx (or a load balancer) be the sole network-facing surface.
  • It manages the system crontab. Cronmaster reads and writes the host's cron jobs and runs with the privileges required to do so. A cron management tool grants command execution to anyone who signs in, so treat the password as highly sensitive and restrict who can reach the service.
  • Restrict access. Allow 443 only from the networks that need it, and keep 22 restricted to your management network. Replace the self-signed certificate with a CA-signed one for production.
  • Always use HTTPS. A cron management interface over plaintext HTTP would expose the login password and let anyone schedule commands. Always reach it over TLS.

Support

This image is backed by 24/7 SecureAnyCloud support with a guaranteed 24 hour response SLA. Contact sales@secureanycloud.com for assistance.

Cronmaster is open-source software distributed under the GNU Affero General Public License v3.0 (AGPL-3.0) and is free. The SecureAnyCloud charge covers packaging, hardening, security patching, image maintenance and support.

Deploy on Azure

Launch Cronmaster on Ubuntu 24.04 LTS on Azure with 24/7 support from SecureAnyCloud.

View this image

Need Help?

Our support team is available 24/7.

sales@secureanycloud.com

Deploy on Azure