Repository navigation
Releases
v0.3.0-alpha
Minor bump — one feature with a potentially breaking default. 303
tests pass (was 289 on 0.2.4-alpha; +14 env_safety / loader /
YAML-parse coverage).
Added
-
FLEET-STRONGHOLDS §11.3 — dev-fixture DSL gate (closes #54,
via PR #55). CronManager adopts the cross-service pattern that
refuses dev / mock / test / example DSL files in non-dev
environments. New config field:
security.allow_dev_fixture_dsls: bool(defaultfalse, alias
allowDevFixtureDsls). Case-insensitive, POSIX-slash normalised
substring match against every file path underdsl_path.Fixture patterns (intentionally narrow — the shipped
DSL/samples/tree walks clean):dev-login, mock-, -mock, /test/, example-, -example, /dev/, /mocks/Behaviour matrix:
APP_ENVallow_dev_fixture_dslsFile matches a pattern → dev / development / local any WARN, load continues not-dev true WARN, load continues (operator opt-in) not-dev false (default) Fatal error, boot refuses Gate is wired through both boot (
main.rs) and/reload
(src/router.rs) so a mock DSL dropped at runtime is caught
too. The pattern match bubbles a fatal error out of the walk —
it is a security-posture violation, not an authoring bug, so
it does NOT flow through the FN2 skip-and-warn path.
Changed
-
BREAKING (operator-visible, config-driven): operators whose
dsl_pathcontains files matching any fixture pattern will see
those files refuse to load after upgrade under non-dev
APP_ENV. Three resolution paths:- Rename the files out of the pattern list (recommended) —
mock-upstream.yaml→upstream-stub.yaml. - Opt out with
security.allow_dev_fixture_dsls: trueand
accept the doctor WEAK + env_safety §11.2 posture WARN. - Set
APP_ENV=dev(also permits weak credentials — not
recommended for staging/prod).
The gate does not touch deployments where no file matches a
pattern. The shippedDSL/samples/tree (hello-world,
time-bounded,manual-trigger,post-webhook,backup,
health-check,examples,manual-script) is pattern-clean —
examples.yamlis distinct fromexample-which requires a
trailing dash. - Rename the files out of the pattern list (recommended) —
-
env_safety::posture_checks_forrecognises
allow_dev_fixture_dsls=trueas unsafe-in-prod (same class
asallow_dangerous_env_overrides=true,trust_network=true).
UnderAPP_ENV=production, the opt-out trips the §11.2 posture
WARN;cronmanager doctorlists it as WEAK with the full
fixture-pattern list in the message.
v0.2.4-alpha
One feature on top of 0.2.3-alpha. Not required by upgraders;
empty default = no behaviour change. 289 tests pass (was 275 on
0.2.3-alpha; +14 invariant / pentest / end-to-end coverage).
Added
-
security.allowed_private_hosts(closes #49, via PR #51
superseding #50) — per-hostname exception to the SSRF
pre-flight. HTTP jobs whose URL host is listed may resolve to
RFC 1918 / loopback / CGNAT / ULA addresses while
block_private_networksstaystrue, so cluster-internal
targets (e.g.http://ruuter-internal:8080,
http://my-svc.ns.svc.cluster.local) work under a non-dev
APP_ENV. Previously the only option was
block_private_networks: false, whichenv_safetyrefuses
outsidedev— the operator either lost every cluster-internal
job or lost the posture gates.Exact, case-insensitive match (trailing dot folded); no
wildcards, no suffix matching. Permitted entry characters are
RFC 1035 hostname chars (ASCII letters/digits/hyphen/dot) plus
underscore for k8s / DNS SRV compatibility. Entries that can
never match a URL host (*,*.svc.cluster.local,svc?x,
IP literals, scheme/port/path markers, whitespace, control
bytes) are ignored at normalisation with a doctor WEAK + boot
WARN. Link-local and cloud metadata addresses
(169.254.0.0/16,fe80::/10,fd00:ec2::254,
::ffff:169.254.169.254), unspecified, multicast, and
broadcast stay refused even for listed hosts.Config field accepts both snake_case (
allowed_private_hosts)
and camelCase (allowedPrivateHosts) via#[serde(alias)];
deny_unknown_fieldscatches typos like
allowed_private_host(singular).cronmanager doctorlists
valid entries as INFO.
Changed
-
Boot WARN when
allowed_private_hostsis set alongside
block_private_networks: false. The allowlist is inert in
that combination because every private address is already
permitted; the operator most likely wanted the allowlist
instead of the kill switch, not alongside it. See PR #51. -
Error message on SSRF-refused HTTP job now points at
security.allowed_private_hostsinstead of suggesting
block_private_networks=false. CLAUDE.md troubleshooting
updated to lead with the allowlist and demote the kill switch
to a dev-only last resort.
v0.2.3-alpha
One headline feature + two CI unblockers on top of 0.2.2-alpha.
Not required by upgraders; new field defaults preserve existing
behaviour. 266 tests pass (was 244 on 0.2.2-alpha; +22 header
coverage).
Added
-
HTTP jobs accept
headers:andheaderEnvs:(closes #39,
via PR #46 superseding #40). Two optional YAML fields on
type: httpjobs:headers: X-Source: cronmanager headerEnvs: X-Internal-Service-Token: INTERNAL_SERVICE_TOKEN
headerEnvsholds env-var NAMES (same convention as
security.per_group_token_envs); values are resolved at fire
time, never stored inJobKind, never logged, never persisted,
and marked sensitive on the HTTP/2 wire via
HeaderValue::set_sensitive(true). Rotating the backing env
needs no/reload.Load-time validation refuses: invalid header name, forbidden
framing header (host,content-length,transfer-encoding,
connection,upgrade,te,trailer— case-insensitive),
HTTP/2 pseudo-headers (:authority,:method,:path,
:scheme,:status), same header set in both maps, malformed
env-var name (empty, leading digit, non-alnum/_), literal value
that isn't a valid header value, env var unset / empty / not a
valid header value. Attacker-controlled CRLF-injection payloads
in env values are refused at both load AND fire with anti-leak
error strings. One file failing header validation is skipped
with ERROR; sibling files load normally (per the per-file
skip-and-warn rule).In-crate shape change:
JobKind::Httpgains
headers: Vec<HttpHeader>;HttpExecutor::executetakes a
headers: &[HttpHeader]argument. No external semver impact —
CronManager ships as a binary, not a library.
Changed
- Empty env values are now rejected at
headerEnvs:load
(new loudness). An emptyAuthorization:or service-token
header is a 100% config bug — some upstreams accept it as
"no auth" and return 200. Fails loudly at load, not silently
at fire. See PR #46.
Security
- CI unblocker — ignore RUSTSEC-2024-0449 (closes #41, via
PR #45).unsafe-libyamlis unmaintained (upstream archived
2024-03-25). Pulled in transitively viaserde_yaml_ng; the
advisory itself states "No safe upgrade is available". YAML is
only read from operator-controlled files, never over the wire —
exposure is nil. Mirrored in.cargo/audit.tomlanddeny.toml
with 2027-01-31 review date.
Build
- CI unblocker — bump
async-trait0.1.91 → 0.1.92 (closes
#43, via PR #45). Rust 1.99.0 stabilised a new
clippy::double_must_uselint that fires inside the proc-macro
expansion ofasync-trait 0.1.91. The 0.1.92 release resolves
the lint in generated code (upstream #303). Patch bump via
Cargo.lockonly;Cargo.tomlspecasync-trait = "0.1"
already permits it.
v0.2.2-alpha
h2ck.me v1 audit-cycle round — closes six findings surfaced in
h2ck.me/projects/CronManager-on-Rust/v1/NEXT-TASKS.md (2026-09-17).
Every fix / feature landed as its own one-issue-one-branch-one-PR
per the project's ops policy: PRs #20, #22, #24, #26, #28, #30.
239 tests pass (was 223 on 0.2.1-alpha; added +6 lock-order pin,
+3 405 pins, +1 axum shutdown wiring, +1 SIGTERM handler unit,
+3 offline-mode dispatch/env, +7 doctor findings + render); cargo fmt --check + cargo clippy --all-targets -- -D warnings +
cargo audit --deny warnings + cargo deny check all + mdbook build all clean.
Patch version bump. CronManager ships as a binary, not a library
— there are no external Rust API consumers — so the two additive
items with in-crate shape implications (new ExecutionStatus::Offline
variant, new ExecutorBundle.offline_mode: bool field) don't
warrant a minor bump on their own. Config / DSL / HTTP / CLI
surface stays fully backward-compatible with 0.2.1-alpha; every
new lever defaults to the pre-existing behaviour
(CRONMANAGER_OFFLINE unset = 100% behavioural parity).
Ships on dev only. main remains at 0.1.4-alpha.
Added
cronmanager doctorCLI subcommand — synchronous offline
config audit. Loads the same config the boot path would, runs
every checkmain.rsruns (env-safety, refuse-to-start, DSL
path existence, database env, weak posture flags) and prints
severity-prefixed findings (FATAL/BREAK/WEAK/INFO).
Exits1on any FATAL. Never binds a listener, never touches
the DB. Wire into containerHEALTHCHECKor pre-deploy CI.
Adopts FLEET-STRONGHOLDS §8.2 (XTR-pattern). (h2ck.me v1 T-19,
PR #30.)CRONMANAGER_OFFLINE=trueenv-var lever — short-circuits
every HTTP + shell dispatch. One history row per fire records
status=OFFLINE, no network call, no child process. Boot
emits a WARN and doctor surfaces an INFO. Truthy values:
true/1/yes/on(case-insensitive). New
ExecutionStatus::Offlinevariant with labelOFFLINE— the
job_execution_history.statuscolumn isVARCHAR(50)so no
migration is required. New publicExecutorBundle.offline_mode: boolfield. Adopts FLEET-STRONGHOLDS §9.1. (h2ck.me v1 U15,
PR #28.)- Graceful shutdown on SIGTERM (unix) + SIGINT / Ctrl+C —
axum::serve(..).with_graceful_shutdown(shutdown_signal())
drains in-flight requests when the container orchestrator
sends SIGTERM (docker stop, k8s pod eviction). Before this
change, in-flight requests were aborted mid-flight and their
history rows lost. Newsrc/signal.rsmodule holds the
future. Windows: only Ctrl+C is available; tokio's ctrl_c
handler covers both platforms. Newlibcdev-dependency
(SIGTERM-to-self regression pin). (h2ck.me v1 T-18 /
FLEET §34.4, PR #26.)
Changed
tower_http::RequestBodyLimitLayer413 body is now
structured JSON matching every other failure path in the
codebase:{"error":"request_too_large","message":"...","limit":N}.
Previously the layer emitted a bare-text body that JSON clients
couldn't parse. Newstructured_error_body_middlewarein
src/router.rs, wired outside the body-limit layer via
from_fn_with_state. Handler-generated 413s (e.g.
TooManyQueryParams) that already carryapplication/json
pass through untouched. (h2ck.me v1 T-15 /
FLEET-STRONGHOLDS §U10, PR #22.)
Fixed
Scheduler::describe_runninglock-order inversion risk —
the method used to acquirerunningthenjobsand hold both
simultaneously, while every other acquisition site
(stop,trigger_now,reload_from) takes at most one at a
time. Any future caller goingjobs→runningcould have
deadlocked.describe_runningnow snapshotsrunningunder
its own lock (cloning JobKey + started_at_ms + schedule),
releases it, then takesjobsfor the per-keylast_result
lookup. No method insrc/scheduler.rsholds both
simultaneously anymore. Regression pin
(describe_running_and_reload_do_not_deadlock) hammers
describe_running+reload_from+stopconcurrently for
500 ms with a 10 s timeout guard. (h2ck.me v1 T-5 /
2026-09-17 concurrency mini-audit R-4, PR #20.)- mdbook-linkcheck failure on CHANGELOG version headings —
the linkcheck flagged## [0.2.1-alpha]/## [0.2.0-alpha]
as "potential incomplete link" (pre-existing failure on
dev). Add explicit link definitions at the bottom of
CHANGELOG.md — the Keep-a-Changelog idiom — so linkcheck
resolves them.
Tests
- 405 Method Not Allowed regression pins — axum's
MethodRouteralready emits 405 with the correctAllow:
header when the path matches but the method doesn't, but no
regression tests locked the behaviour. New
wrong_method_on_health_returns_405_with_allow_header,
wrong_method_on_execute_returns_405, and
unknown_path_still_returns_404guard against a future
Router::fallbackrefactor silently downgrading to 404 or
vice versa. (h2ck.me v1 T-17 / RFC 7231 §7.4.1, PR #24.)
v0.2.1-alpha — Dockerfile CVE-patch republish of v0.2.0-alpha
[0.2.1-alpha] - 2026-09-14
Security-patch republish of 0.2.0-alpha. Application code is
byte-identical to 0.2.0-alpha; the only source change is the
Dockerfile runtime layer, which now runs apt-get -y upgrade
before installing runtime dependencies. This absorbs Debian
security-channel patches on top of the pinned debian:13.6-slim
base.
Why
Trivy on the 0.2.0-alpha publish flagged 12 upstream-fixed
CVEs (9 HIGH + 3 CRITICAL) in the runtime layer — gzip,
libpcre2-8-0, libsqlite3-0, and perl-base. The pinned
base image tag froze at v0.1.4-alpha release time, so any CVE
patched in Debian's security channel since then wasn't reaching
the built image. The Trivy failure blocked cosign signing —
v0.2.0-alpha images landed on both registries but are UNSIGNED
and carry the 12 CVEs.
Yank notice
v0.2.0-alpha is yanked. The git tag stays in place as
historical record; the GH Release carries a yanked notice
pointing at v0.2.1-alpha. Registry artefacts for
v0.2.0-alpha remain (immutable-tag discipline) but SHOULD NOT
be pulled — they are unsigned AND carry the 12 known CVEs.
Changed
Dockerfileruntime layer now runsapt-get update && apt-get -y upgradebefore installing runtime deps. Every build picks
up the latest security-channel patches without moving off the
pinned base tag. No layer-caching regression — buildx
cache-from GHA still hits when only source (not the Dockerfile)
changes.Cargo.toml,Cargo.lock,VERSION,docker-compose.yml,
README.md,book/src/introduction.md— version bumped
0.2.0-alpha→0.2.1-alpha(atomic per DEV-REQUIREMENTS §8).
No functional change
223 tests pass (identical to 0.2.0-alpha). cargo fmt --check
cargo clippy --all-targets -- -D warnings+cargo auditcargo deny check all+( cd book && mdbook build )all
clean. No Rust source touched — every symbol / API / config
field / DSL shape from0.2.0-alphacarries forward unchanged.
v0.2.0-alpha — h2ck.me v2 audit-round + FLEET adoptions
⚠️ YANKED — do not use. Superseded byv0.2.1-alpha, which republishes this exact application code on a Dockerfile that pulls Debian security-channel patches. Trivy on this publish flagged 12 upstream-fixed CVEs (9 HIGH + 3 CRITICAL) in the runtime layer — gzip / libpcre2 / libsqlite3 / perl-base. The Trivy failure blocked cosign signing, so the images atdocker.io/turnerrainer/cronmanager:0.2.0-alphaandghcr.io/turnerrainer/cronmanager:0.2.0-alphaare UNSIGNED AND vulnerable. Immutable-tag discipline keeps them addressable, but pull:0.2.1-alphaor:alphainstead.
[0.2.0-alpha] - 2026-09-13
h2ck.me v2 audit round + Buerostack fleet-strongholds adoption.
Closes every break-test finding surfaced after 0.1.4-alpha
merged (FN1, FN2, FN3, FN5, FN9, FN-LOG-1..4, F-CM-1, F-CM-4),
the F-CM-2 per-group-token feature request, the FN7/FN8 DSL
list-form request, and all four PR-review v2 backlog nits. Also
adopts four cross-service FLEET-STRONGHOLDS.md patterns (§1.6
W3C traceparent propagation, §5.1 default security response
headers, §11.1 credential-safety gate, §11.2 posture-safety
gate).
223 tests pass (was 156); cargo audit clean; cargo deny check all clean; cargo clippy --all-targets -- -D warnings clean;
mdbook build + linkcheck clean. Minor version bump because
JobKind::Exec changes shape (command: String →
argv: Vec<String>) — any downstream consumer constructing a
JobSpec directly must update the fixture. Config / DSL / HTTP
surface stays backward-compatible: every new field defaults to
the pre-existing behaviour.
Ships on dev only. main remains at 0.1.4-alpha until the
project reaches prod-ready state.
Added
/healthzpublic alias for/health— Kubernetes
livenessProbedefault binds cleanly without a token.
(h2ck.me FN1 / F-CM-4.)security.expose_jobs_publicly/security.expose_running_publicly
— optional gate on/jobs*and/running*recon endpoints.
Defaulttruefor backward compat; boot WARN when lefttrue
with a token configured. (h2ck.me FN3 / F-CM-1.)security.per_group_token_envs: BTreeMap<String, String>—
optional scoped tokens per group. When populated,
/execute/:g/:j,/stop/:g/:j,/reload/:gaccept EITHER the
master admin token OR the group-specific token. Values are
env-var names — no raw tokens in the config file. Missing envs
WARN at boot and the group falls back to master-only.
(h2ck.me F-CM-2.)- DSL
command:accepts YAML list form — explicit-argv
passthrough for shell jobs that needsh -c "…"semantics.
String form (JVM parity: whitespace-tokenised) remains
supported. (h2ck.me FN7 + FN8.) env_safetymodule — readsAPP_ENV/ENVIRONMENT/
DEPLOY_ENV(first match wins, unknown values fail-safe to
Production) and REFUSES to boot in non-devwhen weak
credentials or unsafe posture flags are present. Weak-pattern
list coverschangeit,password,01234,dev-,-test,
example,test-admin-token, plus min-length checks (32 for
tokens, 12 for passwords). Indevthe same conditions
produce WARN and boot continues. (FLEET-STRONGHOLDS §11.1 +
§11.2.)- Default security response headers — Content-Security-Policy,
Strict-Transport-Security, X-Frame-Options DENY,
X-Content-Type-Options nosniff, Referrer-Policy no-referrer on
every response, including error paths. (FLEET §5.1.) - W3C Trace Context response headers —
traceparent+
x-trace-idon every response. Inboundtraceparentis
inherited when well-formed (version=00, 32-hex trace-id
≠ all-zeros); fresh 32-hex uuid otherwise. (FLEET §1.6.) - Per-request access log — one INFO line per completed
request:http_request_completed method=X route=Y status=Z duration_us=… trace_id=…. Matched route pattern only (never
raw URI), never headers/bodies, never client IP. SOC 2 CC7.2 /
ISO 27001 A.12.4 compliance. (h2ck.me FN-LOG-3.) - Auth-fail WARN with client_ip_hash + route + reason — every
admin-gate reject emits a structured line with a PII-safe
SHA-256 short-hash of the client IP, the matched route
pattern, and a distinguishable reason (missing header vs
wrong token). Enables blocklist derivation from logs without
exposing raw IPs. (h2ck.me FN-LOG-2.) tower_http::TimeoutLayerwraps the whole request/body-
read/handler/response-write againstlimits.request_timeout_secs.
Kills slow-drip and slow-loris style requests that used to
bypass the executor-level timeout. (h2ck.me FN5.)sha2direct dep +security::short_client_hash— PII-safe
short-hash helper.tower-httpgains thetimeoutfeature.
Changed
⚠️ JobKind::Exec.command: String→argv: Vec<String>—
shape change to the executor API. Loader normalises both DSL
forms (string / list) to argv before the executor sees them.
Any Rust fixture constructing aJobSpecdirectly must update
the field.JobKind::exec_command_display()returns the argv
space-joined for logs / display. (h2ck.me FN7 + FN8.)- DSL loader skips-and-warns on per-file errors — one bad
file no longer aborts the whole boot //reload. Bad files
log at ERROR (naming source path + reason); sibling good files
register. If EVERY file fails, boot succeeds with 0 jobs plus
a distinguishable WARN. Onlyread_dirfailures remain fatal.
(h2ck.me FN2.) PostgresRecordersanitisesresponse_bodyBEFORE persist
— newsecurity::sanitize_for_persistenceruns first, then
truncate_response_bodyapplies the 64 KiB head+tail cap.
Downstream DB-row viewers see escaped CR/LF/ANSI; raw bytes
no longer land in the row. (h2ck.me PR-review v1 nit #3.)ReloadGatememory bounded — opportunistic stale eviction
(entries older than10 × min_interval_secs) plus hard cap
at 1024 distinct groups on the write path. Behavioural no-op
for deployments with < 1024 groups. (h2ck.me PR-review v1
nit #1.)- Log stream is plain-text under Docker / systemd —
tracing_subscriber::fmt()only emits ANSI colour codes when
stderr is a TTY. SIEM parsers see clean bytes. (h2ck.me
FN-LOG-1.) admin_gateextracts group from URL path and checks both
master AND group-specific tokens in parallel via
subtle::ConstantTimeEqso a caller can't time which token
was consulted. (F-CM-2.)docker-compose.yml:read_only: trueon the cronmanager
service — rootfs is immutable;/tmpstays writable via
tmpfs(64 MiB). Any shell job needing persistent scratch
points at a bind-mounted volume added by the operator.
(h2ck.me FN9.) Image tag bumped from the stale0.1.0-alpha.1
to track the crate version.main.rsusesinto_make_service_with_connect_info::<SocketAddr>
soadmin_gatereceives the peer address for the auth-fail
log line.
Tests / hardening (in commits, not surfaced to end users)
- 14 new
env_safety::testsunit tests (env classification,
weak-value detection, enforce_* behaviour). - 5 new
traceparent::testsunit tests. - 7 new integration tests for the F-CM-2 per-group-token accept /
reject matrix. - 5 new integration tests for FN3 recon-endpoint gating.
- 4 new loader tests for the two DSL command forms.
- 2 new shell-executor tests for the argv shape.
- Regression pin
trust_network_true_with_token_set_still_enforces_gate
(h2ck.me PR-review nit #4) locks in the invariant that
admin.trust_network=truenever silently disables the runtime
token check. - Regression pin
slow_body_upload_hits_request_deadlinedrives
a raw TCP socket to verify the FN5 fix. - Regression pin
every_response_carries_security_headerswalks
four routes and validates all five FLEET §5.1 headers. - Regression pins
every_response_carries_traceparent_headers+
traceparent_inherits_inbound_trace_id.
Documentation
CLAUDE.md: new "Breaking / non-obvious changes in0.2.0-alpha"
section with 15 numbered items covering every code / config /
DSL surface change; expanded boot-log triage tables; two-form
command:guide; Rust-fixture update pattern; hard rule that
version bumps / tags / GitHub Releases require explicit
maintainer approval regardless of invocation mode. Records
thatmainis intentionally frozen at0.1.4-alphauntil
prod-ready.book/src/configuration.md: field reference gains the three
new SecurityConfig knobs; new "Per-group admin tokens" and
"Environment-aware boot safety gates" subsections; two-form
command:documentation with worked "why the string form
breaks for shell quoting" example; REST-API table gains an
Auth column and the/healthzalias; new "Every response
carries" / "Access logging" / "Log stream is plain-text under
Docker / systemd" subsections.book/src/failure-modes.md: status table gains 401 / 403 / 408 /
413 too_many_query_params / 429 too_many_requests; common
causes gains skip-and-warn / env-safety / slow-body triage.
v0.1.4-alpha — h2ck.me v1 audit hardening
[0.1.4-alpha] - 2026-09-06
Security hardening pass in response to the h2ck.me pre-publication
audit (../h2ck.me/projects/CronManager-on-Rust/v1/AUDIT.md). All
findings addressed and validated by h2ck.me
(v1/PR-REVIEWS/3-89bce00.md — ✅ approve). 156 tests pass
(was 90); cargo audit clean; cargo deny check clean;
cargo clippy --all-targets -- -D warnings clean; mdbook build
- linkcheck clean. Also bundles the Snyk-flagged runtime base
image bumpdebian:bookworm-slim→debian:13.6-slim(PR #2).
Version jump 0.1.0-alpha.3 → 0.1.4-alpha is intentional
(alignment with the fleet's shared version counter); no
intermediate alpha tags exist.
Added
adminconfig block — bearer-token gate on
POST /execute,POST /stop,POST /reload. Token comes from
the env var named byadmin.bearer_token_env
(defaultCRONMANAGER_ADMIN_TOKEN). Constant-time comparison
viasubtle::ConstantTimeEq. Case-insensitive scheme name per
RFC 6750. Read-only endpoints (/health,/jobs,/running,
/actuator/*) stay open.admin.trust_network=truedisables
the boot-time refusal to start on non-loopback binds without a
token. (Finding C1.)securityconfig block — every hardening cap is
operator-tunable, and every cap emits a WARN at boot if
loosened from the default. Fields:block_private_networks,
allow_dangerous_env_overrides,max_query_params,
max_dsl_file_bytes,dsl_load_timeout_secs,max_retry_count,
min_cron_interval_secs,stored_response_body_max_bytes,
reload_min_interval_secs.- Bounded query-string extractor —
POST /execute/…refuses
requests with more thansecurity.max_query_paramspairs
(default 64). Structured413naming the count + cap.
(Finding C2.) - SSRF pre-flight — HTTP job URLs are refused at load if the
host is a literal private / loopback / link-local / ULA IP
(IPv4, IPv6, and IPv4-mapped IPv6). At fire time, hostnames
are DNS-resolved and refused if any returned address is
non-routable. Reqwest redirects are DISABLED so a legit upstream
can't 302 the executor into a metadata endpoint.
(Finding H1.) - Log-injection sanitiser — captured shell stderr / non-2xx
HTTP response bodies are stripped of CR/LF/ANSI/control bytes
before landing in error strings that get logged. Cap at 4 KiB
per log stanza. DB rows retain a larger head+tail slice via
truncate_response_body. (Finding H2.) - Dangerous-env blacklist —
/executerefuses env overrides
forPATH,LD_*,DYLD_*,PYTHONPATH,NODE_OPTIONS,
RUBYOPT,PERL5OPT,JAVA_TOOL_OPTIONS, and the loader-hook
families. Case-insensitive. Response is403 forbiddennaming
the offending key. (Finding H3.) /reloadper-group throttle — second reload within
security.reload_min_interval_secsfor the same group returns
429 too_many_requestswithretry_after_secs. (Finding H4.)- DSL file-size cap + load wall-clock timeout — per-file YAML
refused at load if bigger thansecurity.max_dsl_file_bytes
(default 1 MiB). Full walk wrapped in atokio::time::timeout
underspawn_blocking, default 15s. (Finding M1.) - retryCount cap — DSL with
retryCount > security.max_retry_countrejected at load. WARN above 5.
(Finding M2.) - High-frequency cron WARN — jobs whose next two fires are
less thansecurity.min_cron_interval_secsapart emit a WARN
at load naming the job + interval. (Finding M3.) - Override audit log — INFO log per
/executecall lists the
applied override KEYS (never values). (Finding M4.) - History row body truncation —
response_bodycapped at
security.stored_response_body_max_bytes(default 64 KiB) per
row via head+tail slice with an inline marker. New migration
adds a compound(job_group, job_name, execution_time DESC)
index. (Finding M5.)
Fixed
- Reqwest client no longer follows redirects (was up to 10 by
default). See the SSRF pre-flight addition. - HTTP upstream error bodies were logged verbatim including
attacker-controlled CRLF / ANSI. Now sanitised.
Migration
Existing operators on loopback / private-network deployments need
no changes — the gate short-circuits when no token is configured
and every new default is safe. Public / internet-exposed
deployments now MUST either:
- Set
CRONMANAGER_ADMIN_TOKENand pass
Authorization: Bearer <token>on every state-changing call, or - Set
admin.trust_network=trueif a reverse proxy / service
mesh authenticates every request before it reaches the process.
Otherwise the process refuses to start with an explanatory error.