Skip to content

Security: fabriziosalmi/zion

SECURITY.md

Security Policy

Supported Versions

Security fixes ship in the latest release only. There is no long-term support branch: older minors receive nothing, and the way to stay patched is to move to the current version.

Version Supported
< 0.19.0 No

Everything at or above that line is the current release. Stated as a single threshold on purpose — the previous wording carried a second, hardcoded row (0.4.x) that bump-version.sh never rewrote, so it kept claiming support for 0.4.x while the threshold marched on to 0.7.x. A policy that contradicts itself is worse than a terse one, and on a security policy it is worse still.

Reporting a Vulnerability

Please do not file public issues for security bugs. Use GitHub Security Advisories ("Report a vulnerability"). For supply-chain incidents (a published artifact that fails provenance verification) use the same channel and tag the report as supply-chain.

What to include

  • A description of the vulnerability and the affected component (src/<module>.rs).
  • Steps to reproduce, including a minimal zion.toml if relevant.
  • A proof-of-concept request, payload, or config when possible.
  • Impact assessment (information disclosure, RCE, DoS, integrity, etc.).
  • Disclosure timeline you would like us to follow, if any.

What happens next

  1. Acknowledgement within 48 hours.
  2. Triage + reproduction within 5 business days. We will share our severity assessment (CVSS v3.1) with you.
  3. Patch development on a private branch. You can request to be added.
  4. Coordinated disclosure: GHSA published, CVE assigned (when applicable), and a release is cut on the master branch with the fix.
  5. Postmortem published in docs/security/ for any high/critical-severity issue.

Supply-chain integrity

Every Zion release carries cryptographic evidence linking it to a public GitHub Actions build:

  • SLSA v1.0 build provenance for every binary, the SHA256SUMS file, and every container image — generated by actions/attest-build-provenance and recorded in the Sigstore Rekor public log.
  • Cosign keyless signature for every published container image.
  • CycloneDX SBOM attached to each release and attested to the image digest.
  • Reproducible builds — SOURCE_DATE_EPOCH is wired through the build, archives are normalized, and the toolchain is pinned (Rust, zig, cargo-zigbuild). A weekly job rebuilds the latest release's Linux musl binary and compares it with the published one (.github/workflows/reproducibility.yml).

Verification recipes (gh attestation verify, cosign verify, cosign verify-attestation) live in docs/security/supply-chain.md. If a published release fails verification, treat it as a P0 incident — file a security advisory immediately.

Build-time policy gates

These checks run on every PR, daily on master, and on every release tag. A release cannot be published if any of these fail:

  • cargo audit — RustSec advisory DB
  • cargo deny — advisories, licenses, banned crates, vendored sources (config: deny.toml)
  • CodeQL — Rust + Actions semantic SAST
  • OSSF Scorecard — repo-level supply-chain posture
  • cargo clippy --all-features -D warnings and the full test matrix

Informational signals (do not block, but are reviewed):

  • cargo geiger — unsafe-surface report.
  • cargo vet — supply-chain trust audit (gated once supply-chain/ baselines are populated).

Hardening guidance

For deployment hardening (TLS posture, header policies, sandboxing, kernel tunables) see docs/security/hardening.md.

Compliance documentation

Document Purpose
docs/security/threat-model.md STRIDE per surface, mitigation + residual risk
docs/security/asvs.md OWASP ASVS L2 mapping, control → file → test
docs/security/fips.md FIPS 140-3 build (--features fips), conformance posture
docs/security/tls-conformance.md BoGo / RFC 8446 verification recipes
docs/security/supply-chain.md SLSA L3 + cosign + SBOM verification
docs/adr/ Architecture Decision Records
Learn more about advisories related to fabriziosalmi/zion in the GitHub Advisory Database