Loading

MuleSoft Government Cloud: CloudHub - SLB v1 to SLB v2 Migration Guide

Date de publication: Aug 28, 2026
Description

1. Overview

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.

2. Scope

Affected

  • MuleSoft Government Cloud - CloudHub customer applications using Shared Load Balancers (SLB)

Not Affected

  • 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

3. Why This Migration is Necessary

Compliance Requirements

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

4. Technical Changes

HTTP Response Header Behavior

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

 

What This Means

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

Example Response Comparison

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

5. Migration Strategy & Implementation Guide

For organizations requiring FIPS 140-3 compliance, migrating to SLBv2 is required. The suggested migration workflow involves the following steps:

  1. Validate SLBv2 with target applications in a pre-production/lower environment.

  2. Revert to SLBv1 should any operational or compatibility issues occur.

  3. 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.

 

Migration API

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: 

Step 1: Prepare for Upgrade

  1. 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"

}

  1. Review client code for hardcoded dependencies on Content-Length header

  2. Prepare test cases for:

  • Response parsing

  • Integration endpoints

  • Error handling

  • Performance benchmarks

 

Step 2: Migrate to SLB v2

 

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"

Checking Migration Status

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.

 

Step 3: Validate

  1. Test application endpoints:

  • Verify responses are received correctly

  • Check for Transfer-Encoding: chunked in response headers

  • Confirm no Content-Length header is present

  1. Monitor application health:

  • Check CloudHub application logs

  • Monitor downstream system behavior

  • Validate integration points

 

  1. Performance testing:

  • Load test critical endpoints

  • Compare response times and throughput

  • Verify connection pooling and keep-alive behavior

 

Step 4: Rollback (if needed)

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).

6. Timeline

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

7. Testing Recommendations

Client-Side Validation

Test scenarios where client applications might be affected:

  1. 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

  1. Integration Platforms:

  • ESB/integration tools consuming CloudHub APIs

  • Legacy systems with HTTP/1.0 clients

  • Middleware that proxies requests

  1. Monitoring & Logging Tools:

  • APM tools that parse response headers

  • Log aggregators that capture HTTP metadata

  • Custom observability solutions

Common Issues and Fixes

 

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.

 

8. Support

For assistance with migration, contact:

  • MuleSoft Support: Submit a case via the Support Portal

  • Customer Success Manager: Contact your CSM for migration planning

9. Additional Resources

Numéro d’article de la base de connaissances

005393496

 
Chargement
Salesforce Help | Article