fix(sbom): stop resolving tenant manifests in shared deployments (#330)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 5m59s
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 5m59s
npm lockfile generation, `cargo generate-lockfile` and `cargo metadata` ran over tenant manifests with no gate, and each connects wherever the scanned repository says: a committed .npmrc or .cargo/config.toml, or a URL or git dependency in the manifest itself — outside net_guard. Forcing our own registry cannot help when the manifest names the host, so they are now gated like pip-compile, under the same opt-in, with a skip reason that says why (egress, not code execution). `cargo audit` read .cargo/audit.toml from the repository too, which could point it at another advisory database or `ignore` the repository's own advisories — silencing findings in our report. It keeps running, from a fresh empty directory with `--file <repo>/Cargo.lock`. Lockfile generation is now a pure plan plus an executor, and the npm and pip lockfile lists are shared: pip-compile no longer re-resolves a uv project and writes a second, fresh requirements.txt beside uv.lock. The js-no-lockfile nightly target now records `sbom_dependencies` as skipped instead of resolving; the scanning guide says to commit a lockfile. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
This commit is contained in:
1 parent
44a48957c1
commit
5a184583de
9 files changed
+282
-136
No files matched your search
+9
-7
@@ -131,13 +131,15 @@ BREAKPILOT_SNAPSHOT_DIR=/data/compliance-scanner/oscal
|
||||
# BREAKPILOT_SEMANTIC_MAPPING=false
|
||||
# BREAKPILOT_GROUNDED_CHECKS=true
|
||||
|
||||
# Execute code from the repositories being scanned? A few stages do: cargo
|
||||
# clippy compiles the repo (build.rs, proc macros), ESLint runs from the repo's
|
||||
# own node_modules, pip-compile builds sdists (setup.py), and the firmware
|
||||
# reproducible build shells out to Nix with sandbox=false. They are OFF unless
|
||||
# this is set, and a staging/production APP_ENV ignores it — the agent holds
|
||||
# every tenant's data. Firmware SBOMs come from an imported Firmwerk bundle
|
||||
# instead.
|
||||
# Execute code from the repositories being scanned, or fetch from hosts they
|
||||
# name? A few stages do: cargo clippy compiles the repo (build.rs, proc
|
||||
# macros), ESLint runs from the repo's own node_modules, pip-compile builds
|
||||
# sdists (setup.py), the firmware reproducible build shells out to Nix with
|
||||
# sandbox=false, and npm / cargo lockfile generation and cargo metadata fetch
|
||||
# whatever the manifests name (#330). They are OFF unless this is set, and a
|
||||
# staging/production APP_ENV ignores it — the agent holds every tenant's data.
|
||||
# Without them, commit a lockfile; firmware SBOMs come from an imported
|
||||
# Firmwerk bundle.
|
||||
# PW_ALLOW_UNTRUSTED_CODE_EXEC=1
|
||||
|
||||
# Deployment feature flags (comma list). `source_only` = static analysis only:
|
||||
|
||||
Reference in new issue
Block a user