API Requests fail with SDS Errors
search cancel

API Requests fail with SDS Errors

book

Article ID: 439264

calendar_today

Updated On:

Products

VMware Cloud Foundation VMware vSphere ESXi

Issue/Introduction

After upgrading or during normal operations of VCF, a management UI (e.g. VCFA, VCF Operations, or another component) may become unresponsive or fail to load. When this occurs, API requests routed through the affected gateway return HTTP 503 errors with the following message:

upstream connect error or disconnect/reset before headers. reset reason: remote connection failure, transport failure reason: TLS error: Secret is not supplied by SDS

This error indicates that an internal gateway proxy component within the VCF Services Runtime has entered a state where it can no longer establish secure connections to backend services, causing all requests routed through the affected gateway to fail.

This article describes how to remediate an envoy gateway proxy that has entered a state where its SDS (Secret Discovery Service) configuration is invalid, causing all requests routed through the affected gateway to fail with TLS errors. The remediation restarts the envoy gateway controlplane via the node agent API (port 5480) on a vcf services runtime control plane node. No kubectl access is required.

When to use this procedure

Use the procedure in this article when you observe one or more of the following symptoms:

  • Management UI is unresponsive or fails to load — A VCF management component UI (e.g. VCF Automation, VCF Operations) shows a blank page, a loading spinner that never completes, or displays a generic error. The browser developer console (F12 > Network tab) may show multiple failed requests returning HTTP 503.
  • API calls return HTTP 503 — API calls (typically the backend work taken a use action in the UI) to the platform return a 503 status code with the SDS error message shown above.
  • Gateway proxy logs contain SDS errors — In Log Management, run the following query to check for SDS errors in the gateway proxy logs:
    TLS_error:_Secret_is_not_supplied_by_SDS AND k8s_container:envoy AND k8s_namespace:vmsp-platform
    
    If events are returned by the search query, the gateway proxy is experiencing SDS certificate failures and this article applies.

Warning: Before running the remediation, confirm that this article applies to your situation by following the Confirming the Issue steps below. Restarting the gateway when the root cause is different will not resolve the problem.

Environment

VMware Cloud Foundation 9.1.0.0

Cause

An internal gateway proxy component failed to load updated TLS certificate data. While the proxy’s configuration indicates it has the latest certificates, the actual certificate data was not applied. This prevents the proxy from establishing secure connections to backend services. This condition does not self-resolve and requires a restart of the affected component.

Resolution

Prerequisites

Tools Required

ToolRequiredPurpose
curlAlwaysCommunicates with the node agent API on the control plane node
jqAlwaysParses JSON API responses

 

Installing the tools

curl — pre-installed on most Linux distributions. Verify with curl --version.

jq

# Debian / Ubuntu
sudo apt-get install -y jq
RHEL / Photon OS / yum-based
sudo yum install -y jq
Direct binary download (any Linux x86-64)
curl -fsSL https://github.com/jqlang/jq/releases/latest/download/jq-linux-amd64 
-o /usr/local/bin/jq && chmod +x /usr/local/bin/jq

Verify all tools are available before running the script:

curl --version && jq --version

Access Requirements

  • Network access to port 5480 on at least one cluster control plane node. To find the node IP, open the LCM UI and navigate to Build → Lifecycle → VCF Services Runtime. The page should provide a list of Control Plane Nodes with their IP addresses
    Refer to the Troubleshooting section below.
  • The breakglass password for the vmware-system-user account on the VCF Services Runtime cluster. This is the password set for VCF services runtime during initial deployment.

Confirming the Issue

Before proceeding with remediation, confirm that this article applies to your situation.

1. Check if the UI is accessible

Attempt to load the affected management UI in a browser. If the page fails to load, shows a blank screen, or returns errors, proceed to step 2.

2. Test an API endpoint directly

From a machine that can reach the platform, run:

curl -k https://<VCF services runtime FQDN>/<component-path>

For example: curl -k https://<platform-hostname>/km/

If the response contains TLS error: Secret is not supplied by SDS, this article applies.

3. Verify backend services are healthy

Use the attached script (see Running the Script) or manually query the envoy-gateway service inventory to confirm backend pods are healthy. If backend pods are healthy but API requests still fail with the SDS error, this confirms the issue is at the gateway proxy layer.

Resolution

The envoy_gateway_sds_fix.sh script automates the full remediation sequence via the API (port 5480) on the control plane node. No kubectl access is required. You can also run these steps manually using the provided curl commands.

Running the Script

The script can be run from any machine that has network access to port 5480 on at least one VCF Services Runtime cluster control plane node — for example, a laptop, a jump host, or any VM on the same network segment as the cluster. It does not need to run on the cluster itself and does not require kubectl access.

Download the script envoy_gateway_sds_fix.sh, save it to a local file, and make it executable:

chmod +x envoy_gateway_sds_fix.sh

Identify Control plane Node IP

Follow steps 1, 2 and 3 in the following documentation to identify a control plane node, Establish an SSH Connection to a VCF Services Runtime Instance note down its IP address.

Make a note of the Control plane Node IP address.

Dry Run (Recommended First Step)

Logs all planned actions without executing any restart operations:

./envoy_gateway_sds_fix.sh --node-ip <NODE_IP> --dry-run

Basic Usage

./envoy_gateway_sds_fix.sh --node-ip <NODE_IP>

You will be prompted for the breakglass password interactively.

Non-interactive (Password via Flag or Environment)

# Via command-line flag
./envoy_gateway_sds_fix.sh --node-ip <NODE_IP> --password <PASSWORD>
# Via environment variable export VMSP_PASSWORD=<PASSWORD> ./envoy_gateway_sds_fix.sh --node-ip <NODE_IP>

Script Options Reference

Required

OptionDescription
--node-ip <IP>IP address of any reachable VCF Services Runtime cluster control plane node (port 5480)
--password <PASSWORD>Breakglass password for vmware-system-user. Omit to be prompted interactively


Optional

OptionDescription
--dry-runValidate and log planned actions without executing the restart


Environment Variable Overrides

OptionDefaultDescription
NODE_IP—IP address of any reachable cluster control plane node
VMSP_PASSWORD—Breakglass password (avoids interactive prompt)
TASK_POLL_INTERVAL15Seconds between task status polls
TASK_TIMEOUT_SECONDS600Seconds to wait for the restart task before timing out

Monitoring Progress

The script writes timestamped log output to stdout. Each phase is marked with a clear separator:

==========================================================
[YYYY-MM-DDTHH:MM:SS.MS+HH:MM] [STEP] Authenticating with node agent
==========================================================
[YYYY-MM-DDTHH:MM:SS.MS+HH:MM] [INFO] Authentication successful.
==========================================================
[YYYY-MM-DDTHH:MM:SS.MS+HH:MM] [STEP] Discovering vsp component
[YYYY-MM-DDTHH:MM:SS.MS+HH:MM] [INFO] Found vsp component: vsp (id: 4####-..., status: Running)
==========================================================
[YYYY-MM-DDTHH:MM:SS.MS+HH:MM] [STEP] Verifying envoy-gateway service health
[YYYY-MM-DDTHH:MM:SS.MS+HH:MM] [INFO] Service 'envoy-gateway' found with 1 instance(s).
[YYYY-MM-DDTHH:MM:SS.MS+HH:MM] [INFO] Instances:
[YYYY-MM-DDTHH:MM:SS.MS+HH:MM] [INFO] - envoy-gateway-c5######-#####
==========================================================
[YYYY-MM-DDTHH:MM:SS.MS+HH:MM] [STEP] Restarting envoy-gateway service
[YYYY-MM-DDTHH:MM:SS.MS+HH:MM] [INFO] Restart task created: xnuqdronuzgfldv442o4#####
[YYYY-MM-DDTHH:MM:SS.MS+HH:MM] [INFO] Task xnuqdronuzgfldv442o####### status: Succeeded
==========================================================
[YYYY-MM-DDTHH:MM:SS.MS+HH:MM] [STEP] Verifying SDS issue is resolved
[YYYY-MM-DDTHH:MM:SS.MS+HH:MM] [INFO] Service 'envoy-gateway' found with 1 instance(s) after restart.
[YYYY-MM-DDTHH:MM:SS.MS+HH:MM] [INFO] Instances after restart:
[YYYY-MM-DDTHH:MM:SS.MS+HH:MM] [INFO] - envoy-gateway-c5#######-7####

To monitor in real time and save a log file:

./envoy_gateway_sds_fix.sh --node-ip <NODE_IP> 2>&1 | tee /tmp/sds_fix_$(date +%Y%m%d_%H%M%S).log

Verifying the Fix

After the script completes successfully:

  1. Load the affected management UI in a browser. The page should load without errors.
  2. Test an API endpoint directly:
    curl -k https://<platform-hostname>/<component-path>
    
    The request should return a successful response (not a 503 SDS error).

Troubleshooting

Authentication fails (HTTP 401 or 403)

  • Confirm the breakglass password for vmware-system-user is correct.
  • Ensure port 5480 is reachable from the machine running the script:
    curl -sk https://<NODE_IP>:5480/api/v1/components
    

Cannot reach cluster control plane node (connection refused or timeout)

  • Verify the node IP is correct and the node is reachable.
  • Confirm the API server is running on the node:
    # From the node itself
    systemctl status node-agent
    
  • Run the script with a different controlplane node IP, by updating the --node-ip flag when using the script.

Restart task fails (status: Failed)

  • The workflow for the restart encountered an error.
  • Check the task details logged by the script for the failure message.
  • Re-run the script — it is safe to run multiple times.

Restart task times out

The default timeout is 600 seconds. If the restart is taking longer:

  • Increase the timeout: export TASK_TIMEOUT_SECONDS=1200
  • Check the workflow status in the cluster UI or logs.
  • Re-run the script after resolving the underlying issue.

Issue persists after restart

  • Verify that the envoy-gateway service has running instances after the restart (re-run the script to check).
  • If the SDS error recurs shortly after a restart, there may be an underlying certificate synchronization issue. Collect the gateway proxy pod logs and open a support case.

Script exits partway through — safe to re-run

The script is safe to re-run after a failure. It will re-authenticate and re-discover the component before attempting the restart.

Additional Information

Example Log Entry (SDS Error)

json { "response_code": 503, "response_code_details": "upstream_reset_before_response_started{remote_connection_failure|TLS_error:_Secret_is_not_supplied_by_SDS}", "upstream_transport_failure_reason": "TLS_error:_Secret_is_not_supplied_by_SDS", "route_name": "httproute/prelude/vksm/rule/3/match/0/<hostname>" }

Attachments

envoy_gateway_sds_fix.sh get_app