Skip to content

ci(fips): gate FIPS-denied crypto dependencies #6230

Backlog

Description

@akram

Part of the FIPS 140-3 umbrella (#6224).

Context

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

  1. added
    state:triage-needed
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:triage-needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions