To support your FedRAMP Moderate and FIPS 140-3 compliance mandates, MuleSoft Government Cloud - CloudHub now provides Shared Load Balancer (SLB) v2 alongside the existing Shared Load Balancer (SLB) v1.
Designed for MuleSoft CloudHub administrators and developers, this guide offers step-by-step instructions for transitioning applications from SLBv1 to SLBv2 within their Government Cloud infrastructure.
MuleSoft Government Cloud - CloudHub customer applications using Shared Load Balancers (SLB)
Dedicated Load Balancers (DLB) – DLBs route traffic directly to nginx and are not impacted
CloudHub deployments in commercial (non-Government Cloud) regions
Applications not using load balancers
SLB v1 cannot meet FIPS 140-3 cryptographic requirements because:
It lacks support for FIPS 140-3 compliant TLS security policies
It cannot enforce the required TLS 1.3/1.2 cipher sets
SLB v2 provides:
FIPS 140-3 compliant security policies
Modern TLS 1.3, 1.2 support with compliant cipher suites
Enhanced security features required for FedRAMP Moderate
The migration introduces changes in how response headers are formatted:
|
Header |
SLB v1 (Current) |
SLB v2 (New) |
|---|---|---|
|
Content-Length |
Present |
Removed |
|
Transfer-Encoding |
Not present |
chunked |
Chunked Transfer Encoding (RFC 7230):
Response body is sent in chunks rather than as a single payload
Each chunk includes its size, followed by the data
Standard HTTP/1.1 behavior supported by all modern HTTP clients
May require client-side code changes if hardcoded dependencies on Content-Length exist
SLB v1 Response:
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1234
Connection: keep-alive
{"status":"success","data":[...]}
SLB v2 Response:
HTTP/1.1 200 OK
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
4D2
{"status":"success","data":[...]}
0
For organizations requiring FIPS 140-3 compliance, migrating to SLBv2 is required. The suggested migration workflow involves the following steps:
Validate SLBv2 with target applications in a pre-production/lower environment.
Revert to SLBv1 should any operational or compatibility issues occur.
Proceed with full, permanent migration after successful verification in non-production environments.
Note: Switching between SLB versions is not expected to cause connection downtime for in-flight requests, but a brief maintenance window is recommended out of caution.
Endpoint: PATCH /cloudhub/api/v2/applications/{domain}/slb/failover?target={SLB_VERSION}
Parameters:
{domain}: Your CloudHub application domain name
{SLB_VERSION}: Target version (SLBv1 or SLBv2)
Authentication: Bearer token (Anypoint Platform access token)
Headers:
{X-ANYPNT-ORG-ID}: Your CloudHub application organization id
{X-ANYPNT-ENV-ID}: Your CloudHub application environment id
The recommended detailed migration procedure is outlined below:
Identify affected applications:
# Get CloudHub applications using SLB
curl -X GET "https://<govcloud-anypoint url>/cloudhub/api/v2/applications/{domain}/slb/failover" \
-H "X-ANYPNT-ORG-ID: {organizationId}" \
-H "X-ANYPNT-ENV-ID: {environmentId}" \
-H "Authorization: Bearer {token}"
Expected Response:
{
"slbVersion": "SLBv2"
}
Review client code for hardcoded dependencies on Content-Length header
Prepare test cases for:
Response parsing
Integration endpoints
Error handling
Performance benchmarks
curl -X PATCH "https://<govcloud-anypoint-url>/cloudhub/api/v2/applications/{domain}/slb/failover?target=SLBv2" \
-H "X-ANYPNT-ORG-ID: {organizationId}" \
-H "X-ANYPNT-ENV-ID: {environmentId}" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json"
The PATCH operation is a synchronous call, use the following GET endpoint to get the current SLB version. Do note that SLB traffic switch might take up to 30 seconds for DNS caches to refresh:
curl -X GET "https://<govcloud-anypoint-url>/cloudhub/api/v2/applications/{domain}/slb/failover" \
-H "X-ANYPNT-ORG-ID: {organizationId}" \
-H "X-ANYPNT-ENV-ID: {environmentId}" \
-H "Authorization: Bearer {token}"
This will return the current load balancer version for the domain.
Test application endpoints:
Verify responses are received correctly
Check for Transfer-Encoding: chunked in response headers
Confirm no Content-Length header is present
Monitor application health:
Check CloudHub application logs
Monitor downstream system behavior
Validate integration points
Performance testing:
Load test critical endpoints
Compare response times and throughput
Verify connection pooling and keep-alive behavior
If you encounter issues during testing, you can rollback to SLB v1:
curl -X PATCH "https://<govcloud-anypoint-url>/cloudhub/api/v2/applications/{domain}/slb/failover?target=SLBv1" \
-H "X-ANYPNT-ORG-ID: {organizationId}" \
-H "X-ANYPNT-ENV-ID: {environmentId}" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json"
Note: Rollback is only available during the transition period (until August 2027).
|
Phase |
Timeline |
Description |
|---|---|---|
|
Transition |
Sept 2026 – Aug 2027 |
Self-paced customer migration using API |
|
Final Migration |
From September 2027 |
Automatic migration of remaining SLB v1 customers by MuleSoft |
Test scenarios where client applications might be affected:
HTTP Clients with strict parsing:
Legacy HTTP libraries expecting Content-Length
Clients that don't support chunked encoding (rare, but possible)
Custom parsing logic based on content length
Integration Platforms:
ESB/integration tools consuming CloudHub APIs
Legacy systems with HTTP/1.0 clients
Middleware that proxies requests
Monitoring & Logging Tools:
APM tools that parse response headers
Log aggregators that capture HTTP metadata
Custom observability solutions
|
Issue |
Solution |
|---|---|
|
Client expects Content-Length |
Update client to handle Transfer-Encoding: chunked |
|
Response parsing fails |
Ensure HTTP client supports HTTP/1.1 chunked encoding |
|
Timeout errors |
Check client timeout settings; chunked responses may have different timing |
|
Integration breaks |
Update integration middleware to support chunked responses |
|
Unauthorized / 401 Error |
Ensure the Bearer token is valid and has sufficient permissions for the application domain. |
|
404 / Application not found |
Verify the domain name exactly matches the CloudHub application domain. |
For assistance with migration, contact:
MuleSoft Support: Submit a case via the Support Portal
Customer Success Manager: Contact your CSM for migration planning
005393496

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.