Conversation
944f76b to
6bf151f
Compare
c587438 to
c2d2165
Compare
(cherry picked from commit 5043d49b29d03f8085aea393b37e9891964a41d8)
7d91709 to
924ac46
Compare
…oviders # Issue The scheduler component needs to run in FIPS 140-3 compliant mode to meet security requirements. This requires replacing default Java security providers with FIPS-validated cryptographic implementations and ensuring PEM certificate handling works under FIPS constraints for Cloud Foundry Instance Identity certificates. # Fix - Add Bouncy Castle FIPS dependencies (bc-fips 2.1.2, bctls-fips 2.1.22, bcpkix-fips 2.1.10) to scheduler pom.xml - Create FipsSecurityProviderConfig that registers BCFIPS/BCJSSE providers, removes SunJSSE/SunEC, sets global FIPS approved-only mode, and configures PKIX as default KeyManager/TrustManager algorithm; made conditional via fips_mode config property from VCAP_SERVICES - Create FipsPemUtils for FIPS-compliant PEM certificate and private key parsing using BC ASN.1 APIs (supports RSA, EC, PKCS#8 formats) with cached crypto provider lookup - Create FipsSslContextBuilder that merges JVM cacerts, BOSH/CF trusted certs, and custom CAs into a single FIPS-compliant SSLContext; cache merged accepted issuers to avoid per-handshake allocation - Create VcapServicesHelper to deduplicate VCAP_SERVICES JSON parsing shared between FipsSecurityProviderConfig and CloudFoundryConfigurationProcessor - Build RestClientConfig SSLContext using FipsSslContextBuilder with explicit system + custom trust anchors, CF instance identity mTLS, and extracted KeyManagerFactory/TrustManager helpers - Route all certificate parsing (HttpAuthFilter, FipsSslContextBuilder) through FipsPemUtils to ensure consistent FIPS provider usage - Gate DebuggingX509KeyManager behind DEBUG log level - Add configurable fips_mode across Go services (config structs, conditional AssertFIPSMode, autoscaler_fips_enabled Prometheus gauge) - Add FIPS acceptance tests, CI workflow, and MTA extension support - Update PostgreSQL password to meet FIPS 112-bit minimum requirement - Add comprehensive unit tests for provider config, PEM utils, SSL bundle integration, and CF configuration processor # AI Disclosure This commit was developed with the assistance of Claude (Anthropic), model claude-opus-4-6, using Claude Code CLI tooling.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Issue
The scheduler component (Java/Spring Boot) lacked FIPS 140-3 cryptographic
compliance, unlike the six Go microservices which already use GOFIPS140.
Fix
bcpkix-fips 2.1.10) to scheduler/pom.xml
the JVM's primary security providers, removes default Sun providers
(SunJSSE, SunJCE, SunEC), and activates FIPS approved-only mode with
fail-fast startup validation
keys (RSA and EC, both traditional and PKCS#8 formats) using BCFIPS APIs
Boot starts, ensuring all SSL bundle creation uses FIPS-validated crypto
integration under FIPS — all 187 tests pass (15 new + 172 existing)
AI Disclosure
This commit was authored with the assistance of Anthropic Claude (model:
claude-opus-4-6) via Claude Code CLI (claude.ai/code), which was used for
codebase exploration, change specification, implementation, and test execution.