Repository navigation
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.