Skip to content

Use FIPSCapable#2315

Merged
qmuntal merged 1 commit into
microsoft/mainfrom
dev/qmuntal/fipscapable
May 26, 2026
Merged

Use FIPSCapable#2315
qmuntal merged 1 commit into
microsoft/mainfrom
dev/qmuntal/fipscapable

Conversation

@qmuntal
Copy link
Copy Markdown
Member

@qmuntal qmuntal commented May 26, 2026

A previous PR removed FIPSCapable, as the OpenSL backend merged it with FIPS(). Both functions are useful independently, so the OpenSSL backend reverted the change.

Copilot AI review requested due to automatic review settings May 26, 2026 12:43
@qmuntal qmuntal requested a review from a team as a code owner May 26, 2026 12:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR restores a separate FIPSCapable check in the OpenSSL backend so the backend can distinguish “FIPS mode is enabled” from “the default provider is FIPS-capable”, addressing environments where fips=yes isn’t set but a FIPS-capable provider is in use.

Changes:

  • Switch the OpenSSL backend’s FIPS availability check to use osslsetup.FIPSCapable().
  • Vendor a newer github.com/microsoft/go-crypto-openssl revision that reintroduces/extends FIPSCapable and related OpenSSL-version handling.

Patches are happy!

Show a summary per file
File Description
patches/0003-Implement-crypto-internal-backend.patch Updates the backend initialization logic to use FIPSCapable for FIPS-availability checks and adjusts related commentary.
patches/0001-Vendor-external-dependencies.patch Bumps the vendored go-crypto-openssl module and adds/updates FIPS detection helpers (including FIPSCapable).

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 3

Comment thread patches/0003-Implement-crypto-internal-backend.patch
Comment thread patches/0001-Vendor-external-dependencies.patch
Comment thread patches/0001-Vendor-external-dependencies.patch
@qmuntal qmuntal enabled auto-merge May 26, 2026 14:12
@qmuntal qmuntal merged commit 79a8c53 into microsoft/main May 26, 2026
60 of 62 checks passed
@qmuntal qmuntal deleted the dev/qmuntal/fipscapable branch May 26, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants