Skip to content

feat(fips): FIPS runtime image variant for the supervisor #6235

Backlog

Description

@Ygnas

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

Context

The supervisor image (deploy/docker/Dockerfile.supervisor) is built from a distroless base-nossl base and copies in a prebuilt, dynamically-linked supervisor binary. The gateway is getting a dedicated FIPS image variant (#6229) that links the system OpenSSL of a FIPS-capable base.

Problem

There is no supervisor image variant with a matching guarantee. A supervisor binary built with the FIPS feature set still needs a runtime base that provides the system libcrypto it links against, an assertion that it links it dynamically, and an auditable SBOM that reflects the built binary. In a workspace where different binaries select different crypto backends, cargo-auditable's metadata fallback resolves features across the whole workspace, so the embedded inventory lists the AWS-LC lanes of binaries the supervisor never links — a strict scan then fails on inventory the image does not contain.

Proposed approach

A supervisor sibling of the gateway FIPS image variant (#6229), reusing the same FIPS-capable base decision, that:

  • builds the supervisor with the crypto-openssl feature set (feat(fips): system-OpenSSL backend selection for the supervisor #6233);
  • links openssl dynamically against the base's libcrypto (OPENSSL_NO_VENDOR=1, OPENSSL_DYNAMIC=1, OPENSSL_STATIC unset — even OPENSSL_STATIC=0 makes pkg-config request static flags);
  • produces a binary that can be checked for compliance like the gateway variant: links libcrypto.so.3, imports the OpenSSL EVP functions, and carries an auditable SBOM listing no denied crate;
  • applies the package-scoped cargo-auditable graph (or Cargo's per-unit SBOM once a stable toolchain supports it) so the embedded inventory reflects the built binary rather than the whole workspace;
  • covers both supported architectures.

Current state

Validated end to end in the supervisor FIPS proof of feasibility: a built supervisor image linking the system OpenSSL dynamically, with .dep-v0 intact and no denied crates in its inventory, passed a strict compliance scan with unchanged policy — zero findings for the supervisor binary, with the image's FIPS module present and validated. The only scan failure was a known base-image certification gap in the scanner's data, independent of the supervisor. What remains is turning the validated recipe into a maintained, CI-built image variant and covering arm64.

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