Skip to content

v0.2.4-alpha

Choose a tag to compare

@github-actions github-actions released this 15 Oct 11:17
· 6 commits to dev since this release
1f7b1b3

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_networks stays true, 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, which env_safety refuses
    outside dev — 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_fields catches typos like
    allowed_private_host (singular). cronmanager doctor lists
    valid entries as INFO.

Changed

  • Boot WARN when allowed_private_hosts is 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_hosts instead 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.