You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The FIPS posture of an image is a property of its dependency graph: a single dependency bump can silently reintroduce aws-lc-rs, ring or a RustCrypto implementation into the production graph and void the posture, even though the code did not change.
Problem
Nothing in CI currently fails when that happens. The posture is only checked manually, with ad-hoc cargo tree invocations.
Proposed approach
A CI check that, for each shipped binary:
resolves the production dependency graph with the exact feature set of that binary (weak/optional features resolved through cargo metadata, not assumed),
applies a denylist of non-module crypto crates, mirroring the list maintained by openshift/check-payload (PR #360),
scans the built binary for bundled-crypto symbols and verifies it links the system libcrypto,
fails the build on any real finding.
The tooling exists: cargo-fips-check does exactly this. Pitfalls learned from running it against the OpenShell graph, worth encoding in the check configuration:
cargo tree with default edge selection includes dev-dependencies; the production graph must be audited with normal edges only, otherwise test-only backends look like real findings,
building with cargo's per-unit SBOM (through cargo auditable) eliminates the workspace-wide feature-unification false positives,
expect a small set of name-based false positives (for example vendored protoc and z3 matching a vendored regex) and allowlist them explicitly rather than weakening the rules.
Current state
Validated manually against the FIPS gateway build: the dependency graph, the binary and the SBOM all pass with no real finding. Remaining work is wiring it into CI with the right feature set per binary.
Activity