Logo Fips Compliance

Fips Compliance

Tổ chức
RedHatProductSecurity
fips-compliance

Enforce FIPS 140-2/140-3 compliance for RHEL, OpenShift, and Go workloads. Use when building, configuring, reviewing, or auditing systems that require FIPS-validated cryptographic modules, RHEL crypto-policy enforcement, FIPS-ready Go binaries, or FIPS-mode kernel and cluster configuration.

Tổng quan

Nhà phát hànhRedHatProductSecurity
Kho mãprodsec-skills
Tên kỹ năngfips-compliance
Sao
56
Bản fork
9
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được RedHatProductSecurity công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Fips Compliance trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/RedHatProductSecurity/prodsec-skills/tree/main/module/skills/fips-compliance
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/RedHatProductSecurity/prodsec-skills.git /tmp/prodsec-skills
mkdir -p .claude/skills
cp -r /tmp/prodsec-skills/module/skills/fips-compliance .claude/skills/fips-compliance
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Fips Compliance trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Fips Compliance ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Fips Compliance với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

FIPS Compliance

Guidance for enforcing Federal Information Processing Standards (FIPS) 140-2 and 140-3 across RHEL/RHCOS nodes, OpenShift clusters, Go applications, and container workloads. For general algorithm guidance and post-quantum readiness, see algorithm-selection. For TLS version and cipher suite enforcement on Kubernetes, see tls-compliance.

FIPS Mode Enforcement

LayerMechanismValidation Command
RHCOS/RHEL kernelfips=1 boot parametercat /proc/sys/crypto/fips_enabled returns 1
RHEL crypto policyupdate-crypto-policies --set FIPSupdate-crypto-policies --show returns FIPS
OpenShift clusterfips: true in install-config.yamloc get cm -n openshift-config -o jsonpath='{.items[*].data.install-config}'
etcd encryptionaescbc or aesgcm encryption typeSee etcd Encryption at Rest verification commands

Critical: OpenShift FIPS mode must be enabled at install time — it cannot be enabled post-deployment. The installer must run from a RHEL host already in FIPS mode, using the openshift-install-fips binary extracted from the release image.

SSH keys: Do not use ed25519 keys when installing a FIPS-enabled cluster. ed25519 is not FIPS-approved — use RSA instead.

FIPS-Approved and Prohibited Algorithms

CategoryApprovedProhibited in FIPS Mode
Symmetric encryptionAES-128, AES-192, AES-256 (GCM, CBC, CCM)ChaCha20-Poly1305, RC4, Blowfish, DES, 3DES
HashingSHA-256, SHA-384, SHA-512, SHA-3MD5, SHA-1 (for signatures/integrity)
AsymmetricRSA >= 2048, ECDSA (P-256, P-384, P-521)RSA < 2048, non-NIST curves
Key exchangeECDHE (P-256, P-384), DH >= 2048X25519 (not FIPS-validated), static RSA
MACHMAC-SHA-256, HMAC-SHA-384Poly1305
Post-quantumNone currently FIPS-validatedML-KEM, ML-DSA, X25519MLKEM768 (awaiting NIST validation)

FIPS and PQC are mutually exclusive today. Post-quantum algorithms like X25519MLKEM768 cannot be used on FIPS-enabled clusters because they have not been submitted to NIST for FIPS validation. Plan for this to change as NIST completes PQC module validation.

RHEL Crypto Policies

RHEL system-wide crypto policies enforce FIPS constraints across all crypto libraries (OpenSSL, GnuTLS, NSS, libgcrypt, Kernel Crypto API).

bash
# Set FIPS policy
update-crypto-policies --set FIPS

# Verify active policy
update-crypto-policies --show

Subpolicies

Apply subpolicies on top of FIPS for additional restrictions or compatibility workarounds:

SubpolicyCommandEffect
NO-SHA1--set FIPS:NO-SHA1Disables SHA-1 in all signatures and certificates
NO-ENFORCE-EMS--set FIPS:NO-ENFORCE-EMSRelaxes mandatory TLS Extended Master Secret (see TLS in FIPS Mode)
OSPP--set FIPS:OSPPCommon Criteria restrictions — RSA/DH >= 3072 bits
NO-CAMELLIA--set FIPS:NO-CAMELLIARemoves Camellia ciphers

Custom Subpolicies

Create .pmod files in /etc/crypto-policies/policies/modules/ for site-specific restrictions:

ini
# /etc/crypto-policies/policies/modules/SITE.pmod
cipher@SSH = -CHACHA20-POLY1305
ssh_etm = 0
bash
update-crypto-policies --set FIPS:SITE

Go FIPS Builds

Two distinct paths exist for building FIPS-compliant Go binaries. Choose based on your environment.

Red Hat Go Toolset (RHEL)

Red Hat's Go toolset routes crypto calls to the FIPS-validated OpenSSL module via CGO — it does not use Google's BoringCrypto.

ConstraintRequirement
CGO_ENABLEDMust be 1 (default) — setting to 0 disables OpenSSL linkage
Static linkingProhibited — -extldflags "-static" breaks dlopen for OpenSSL
-tags no_opensslProhibited — disables the OpenSSL integration
Base imageMust include OpenSSL (UBI images include it)
FIPS detectionAutomatic via /proc/sys/crypto/fips_enabled at runtime
go
import "github.com/golang-fips/openssl/v2"

func init() {
    openssl.Init("")
}

// Check FIPS status at runtime
if openssl.FIPS() {
    // Using FIPS-validated OpenSSL path
}
bash
# Verify binary links to OpenSSL
go tool nm ./myapp | grep -i dlopen_openssl

Upstream Go 1.24+ (Native FIPS 140-3)

Go 1.24 introduced native FIPS 140-3 support with CMVP Certificate #5247, independent of Red Hat's OpenSSL approach.

SettingOptions
GOFIPS140 (build-time)off (default), latest, v1.0.0, certified, inprocess
GODEBUG=fips140 (runtime)off (default), on, only (non-production — panics on non-FIPS calls)
APIcrypto/fips140.Enabled(), crypto/fips140.Version()

When FIPS mode is active, Go performs integrity self-checks at init, runs known-answer self-tests per FIPS 140-3 Implementation Guidance, and restricts crypto/tls to approved cipher suites and key exchange mechanisms.

Common Violations

ViolationWhy It Breaks FIPSFix
CGO_ENABLED=0No OpenSSL linkage (Red Hat path)Set CGO_ENABLED=1
-extldflags "-static"Prevents dlopen of OpenSSLUse dynamic linking
-tags no_opensslDisables OpenSSL integrationRemove the tag
Importing golang.org/x/cryptoNot FIPS-validated — may bypass validated modulesUse standard crypto/* packages
Using crypto/md5 for integrityMD5 is not FIPS-approved for security purposesUse crypto/sha256
ChaCha20-Poly1305 cipher suitesNot FIPS-approvedUse AES-GCM cipher suites

Historical: CVE-2023-3089

OpenShift 4.10–4.12 Go components were not configured to use FIPS-validated crypto modules, defaulting to Go's standard crypto library instead of OpenSSL. Approximately 50% of certificates on affected clusters were produced by non-compliant modules. Remediation required updating to patched releases and rotating certificates (or full reinstall for the most regulated environments). Red Hat has since added build-time enforcement policies that terminate builds using non-compliant crypto.

TLS in FIPS Mode

FIPS-Approved Cipher Suites

FIPS mode filters out non-approved ciphers. On OpenShift, the Ingress Operator automatically detects FIPS mode and removes non-compliant ciphers.

TLS 1.2 (FIPS-approved):

Cipher SuiteKey ExchangeEncryption
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256ECDHEAES-128-GCM
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256ECDHEAES-128-GCM
TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384ECDHEAES-256-GCM
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384ECDHEAES-256-GCM

TLS 1.3 (FIPS-approved):

Cipher SuiteFIPS Status
TLS_AES_128_GCM_SHA256Approved
TLS_AES_256_GCM_SHA384Approved
TLS_CHACHA20_POLY1305_SHA256Filtered out on FIPS clusters

Extended Master Secret (EMS) Enforcement

Starting with RHEL 9.2, TLS Extended Master Secret (RFC 7627) is mandatory for all TLS 1.2 connections in FIPS mode. This is a FIPS 140-3 requirement.

Breaking change: Legacy clients that do not support EMS or TLS 1.3 (including RHEL 6/7 and Go <= 1.18) cannot connect to FIPS-enabled RHEL 9.2+ systems over TLS 1.2.

Workaround (non-compliant — use only during migration):

bash
update-crypto-policies --set FIPS:NO-ENFORCE-EMS

etcd Encryption at Rest

Encryption TypeAlgorithmStatus
aescbcAES-CBC with PKCS#7 padding, 32-byte keySupported
aesgcmAES-GCMSupported
identityNo encryptionNot compliant — secrets stored in plaintext

Verification

bash
# OpenShift API server
oc get openshiftapiserver -o=jsonpath='{range .items[0].status.conditions[?(@.type=="Encrypted")]}{.reason}{"\n"}{.message}{"\n"}'

# Kubernetes API server
oc get kubeapiserver -o=jsonpath='{range .items[0].status.conditions[?(@.type=="Encrypted")]}{.reason}{"\n"}{.message}{"\n"}'

# OAuth API server
oc get authentication.operator.openshift.io -o=jsonpath='{range .items[0].status.conditions[?(@.type=="Encrypted")]}{.reason}{"\n"}{.message}{"\n"}'

Expected output: EncryptionCompleted. Keys are rotated automatically on a weekly basis.

Limitation: Encryption keys are stored in plaintext on the nodes hosting the API server, co-located with etcd. This provides protection for etcd backups and offline disk access, but limited benefit against node-level compromise.

Operator and Workload Considerations

  • cert-manager: Certificate resources must specify FIPS-compliant key algorithms — RSA >= 2048 or ECDSA P-256/P-384 via spec.privateKey.algorithm and spec.privateKey.size. Do not use ed25519.
  • Service mesh: mTLS cipher suites must use FIPS-approved algorithms only. Post-quantum key exchange (X25519MLKEM768) is not available on FIPS-enabled clusters. Ambient mode (ztunnel) supports FIPS 140-2 with TLS 1.2.
  • Container images: Use FIPS-enabled UBI base images (registry.access.redhat.com/ubi9/ubi-minimal). The Red Hat Go toolchain must be used for the build stage. OpenSSL must be present in the runtime image.
  • Containers inherit host FIPS: Containers detect FIPS mode via /proc/sys/crypto/fips_enabled from the host kernel — no per-container FIPS configuration is needed.
  • FIPS validation terminology: Use "FIPS validated" (applies to cryptographic modules). "FIPS compliant" and "FIPS certified" are incorrect terms per NIST.

FIPS Validation Status

Red Hat submits five cryptographic modules per RHEL release for NIST CMVP validation:

ModulePurpose
OpenSSLPrimary crypto library (TLS, certificates, Go crypto)
Kernel Crypto APIKernel-level encryption (dm-crypt, IPsec)
GnuTLSAlternative TLS library
NSSNetwork Security Services (Firefox, certificate tools)
libgcryptGnuPG and other applications
RHEL VersionFIPS StandardValidation Deadline
RHEL 8.xFIPS 140-2Active through September 21, 2026
RHEL 9.0+FIPS 140-3Current standard
RHEL 10FIPS 140-3 onlyReuses RHEL 9 OpenSSL module

Auditing FIPS Compliance

bash
# Verify all nodes have FIPS kernel enabled
oc debug node/<node> -- chroot /host cat /proc/sys/crypto/fips_enabled

# Check crypto policy on nodes
oc debug node/<node> -- chroot /host update-crypto-policies --show

# Verify FIPS boot parameter
oc debug node/<node> -- chroot /host grep -o 'fips=[01]' /proc/cmdline

# Check IngressController TLS profile (should not include ChaCha20 on FIPS clusters)
oc get ingresscontroller default -n openshift-ingress-operator -o jsonpath='{.spec.tlsSecurityProfile}'

# Verify etcd encryption status
oc get kubeapiserver -o=jsonpath='{range .items[0].status.conditions[?(@.type=="Encrypted")]}{.reason}{"\n"}'

# Verify Go binary uses OpenSSL (Red Hat Go toolset)
go tool nm <binary> | grep -i dlopen_openssl

# Check kernel FIPS self-test results
oc debug node/<node> -- chroot /host journalctl -b | grep -i fips

Implementation Checklist

  • Cluster installed with fips: true in install-config from a FIPS-enabled RHEL host
  • All nodes report fips_enabled = 1 via /proc/sys/crypto/fips_enabled
  • Crypto policy set to FIPS (verify with update-crypto-policies --show)
  • Go binaries built with CGO_ENABLED=1 and dynamic linking (Red Hat path) or GOFIPS140=latest (upstream Go 1.24+)
  • No static linking, no_openssl tags, or golang.org/x/crypto usage in FIPS-critical paths
  • etcd encryption at rest enabled (aescbc or aesgcm) — not identity
  • TLS cipher suites restricted to FIPS-approved algorithms (no ChaCha20-Poly1305)
  • EMS enforcement verified for TLS 1.2 connections (RHEL 9.2+) or NO-ENFORCE-EMS applied with documented justification
  • cert-manager Certificates use RSA >= 2048 or ECDSA P-256/P-384 — no ed25519
  • Container base images are FIPS-enabled UBI with OpenSSL present
  • SSH keys use RSA — no ed25519
  • OCP 4.10–4.12 clusters have applied CVE-2023-3089 remediation and rotated certificates

References

Câu hỏi thường gặp

Kỹ năng AI Fips Compliance làm được gì?

Enforce FIPS 140-2/140-3 compliance for RHEL, OpenShift, and Go workloads. Use when building, configuring, reviewing, or auditing systems that require FIPS-validated cryptographic modules, RHEL crypto-policy enforcement, FIPS-ready Go binaries, or FIPS-mode kernel and cluster configuration.

Vì sao nên dùng Fips Compliance trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Fips Compliance là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Fips Compliance trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/RedHatProductSecurity/prodsec-skills/tree/main/module/skills/fips-compliance. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Fips Compliance?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Fips Compliance với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Fips Compliance với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Fips Compliance có miễn phí không?

Có. Kỹ năng này được RedHatProductSecurity phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇