Automate certificate renewal on Envoy proxy

Envoy renews certificates through secret discovery (SDS) or by watching files that an external process replaces. Shorter public lifetimes mean renewals arrive several times a year, so the rotation path has to run without a person.

On this page

How can Envoy certificate renewal be automated, and what do shorter lifetimes change?

Envoy does not read certificates the way a web server does from a fixed path on every restart. It takes them in one of two ways: it fetches them from a secret discovery service (SDS) server over gRPC through an sds_config ConfigSource, or it loads secret YAML and certificate files from disk and rotates them when the files change. The SDS server implements the gRPC SecretDiscoveryService with the same xDS protocol as Envoy's other APIs, and the connection to it must be secure, through a Unix Domain Socket on the same host, mTLS with statically configured client certificates, or AWS IAM SigV4. The public certificate lifetime limits in the CA/Browser Forum Baseline Requirements make manual renewal unworkable: the maximum drops to 200 days from 15 March 2026, to 100 days from 15 March 2027, and to 47 days from 15 March 2029. At 47 days, a certificate that someone renews by hand is due for replacement long before anyone schedules the work, so the renewal path has to run without a person in it.

Platform engineers own the SDS server or the file-rotation job, the SdsSecretConfig names in each listener's CommonTlsContext, and the rotation command or ACME client that writes new material. Network and security leads decide which CA issues the certificates and how validation reuse fits the shorter windows. The stakes differ by object. A listener whose certificate comes from SDS is not marked active and its port does not open until the certificate arrives, so a failed initial fetch leaves the service unavailable. If a later fetch fails on a listener that is already active, the listener becomes active and its port opens, but connections are reset. For clusters that use SDS, a failed fetch leaves the cluster active while requests routed to it are rejected. Confirm which of these cases applies to each listener and cluster before a rotation, and alert on the sds.<SECRET_NAME>.key_rotation_failed counter and the ssl_context_update_by_sds and *_context_secrets_not_ready statistics.

What the 200, 100 and 47 day limits mean for Envoy renewals

This table sets out the three steps of the CA/Browser Forum schedule for publicly trusted TLS server certificates, with the maximum validity, the domain and IP validation reuse period and the approximate number of renewals a year for each. Read each row as a deadline for the Envoy rotation job: the shorter the lifetime, the less room there is for a missed rotation before SDS-delivered certificates expire.

Effective dateMaximum certificate validityValidation reuse and renewalsWhat breaks if a rotation is missed
15 March 2026200 days (section 6.3.2)Domain and IP validation reuse of 200 days. Subject identity reuse of 398 days (section 4.2.1). Roughly two renewals a year per certificate.Envoy keeps serving the old certificate until it expires. After expiry, TLS handshakes fail on listeners and clusters that depend on it.
15 March 2027100 daysDomain and IP validation reuse of 100 days. Roughly three to four renewals a year per certificate.The same expiry failure applies, but the window between issuance and expiry is about half the 2026 length, so a stalled SDS source or ACME client is discovered sooner.
15 March 202947 daysDomain and IP validation reuse of 10 days. Roughly eight renewals a year per certificate, with validation refreshed far more often.Rotation must run reliably every few weeks. A missed cycle can expire certificates quickly, and a failed validation refresh blocks issuance until it is fixed.

How does Envoy load and swap certificates?

Envoy takes a listener's certificate from one of two sources, and the choice decides how renewal works. The first source is a static secret, defined under static_resources.secrets in the bootstrap configuration. The second is a remote secret, fetched at runtime from a secret discovery service through sds_config. When sds_config is empty, the secret name refers to a static secret in the bootstrap. For remote secrets, sds_config points to a ConfigSource whose api_config_source must specify a grpc_service, because the Envoy SDS documentation lists gRPC as the only supported transport. Before you build a renewal flow, confirm which of the two sources each listener uses, since a static secret only changes when the bootstrap is reloaded or the file it reads is replaced. Check the SDS server's connection options as well: the documentation lists a Unix Domain Socket on the same host, mTLS with statically configured client certificates, or AWS IAM SigV4 as the secure choices, so confirm which one your platform supports.

Each certificate is tied to a name. SdsSecretConfig.name is required, and CommonTlsContext refers to it through tls_certificate_sds_secret_configs for the server certificate and through validation_context_sds_secret_config for CA validation. Renewal therefore means keeping the same secret name and replacing the material behind it, so listeners do not need edits. If you need a new name, plan a coordinated change in the listener configuration. When the secret is read from disk, path_config_source loads the secret YAML from a file path. Envoy watches the directory that contains each secret file for move events, and that is the mechanism behind atomic swaps. The documented pattern uses watched_directory to watch a parent path such as /certs while the files live under a symlink such as /certs/current/. The documented rotation command is ln -s <new secrets path> /certs/new && mv -Tf /certs/new /certs/current, which replaces the link in a single rename. Confirm that your renewal job uses this pattern and not an in-place write, and set poll_interval if your filesystem's events are unreliable.

Plan for failure during a swap, because the documentation describes what happens when a fetch or rotation does not succeed. A listener whose certificate comes from SDS is not marked active and its port does not open until the certificate arrives. If the fetch fails after startup, the listener becomes active and its port opens, but connections are reset. Clusters that use SDS behave differently: a failed fetch leaves the cluster active, but requests routed to it are rejected. Before you cut over, watch the statistics the docs list, including ssl_context_update_by_sds, downstream_context_secrets_not_ready, upstream_context_secrets_not_ready, and sds.<SECRET_NAME>.key_rotation_failed, which counts filesystem rotation failures outside an SDS update. Ask your platform team to alert on the last of these, and check each figure against the Envoy version you run, since the documentation reviewed here describes the 1.41.0-dev release.

Which automation options does Envoy support?

An external SDS server implements the gRPC SecretDiscoveryService and uses the same xDS protocol as other Envoy xDS APIs. Envoy reaches it through sds_config, which points to a ConfigSource, and the api_config_source must specify a grpc_service because gRPC is the only supported transport. Envoy references the secret by name from tls_certificate_sds_secret_configs for certificates and from validation_context_sds_secret_config for CA validation, and SdsSecretConfig.name is required.

  • Secure connection options: the Envoy SDS docs list a Unix Domain Socket on the same host, mTLS with statically configured client certificates, or AWS IAM SigV4 as the options for securing the connection.
  • Static secrets fallback: when sds_config is empty, the secret name refers to a static secret defined under the bootstrap static_resources.secrets.
  • Listener behavior: a listener whose certificate comes from SDS is not marked active and its port does not open until the certificate arrives.
  • Failed fetch on a listener: the listener becomes active and its port opens, but connections are reset.
  • Clusters: a failed fetch leaves the cluster active, but requests routed to it are rejected. A static cluster that defines its own SDS cluster must list the SDS cluster first.

Confirm the exact ConfigSource and gRPC service settings for your Envoy version in the Envoy SDS documentation before you deploy.

How do you set up Envoy certificate renewal in order?

This sequence gives Envoy a secret it can refresh without a restart. You define the secret, point Envoy at where it comes from, watch the files that hold it, reference it from the TLS context and then rotate the certificate files in place. The result is a listener that picks up a renewed certificate on its own.

  1. Define the secret and its name

    Decide the secret name that your TLS configuration will reference, and decide whether the secret is static or remote. Static secrets are declared under static_resources.secrets in the bootstrap configuration, and when sds_config is empty the name refers to one of these static secrets. Remote secrets are fetched through sds_config, so this step fixes the name that every later step depends on. You know the step is done when the name is written down and matches the name you will reference in CommonTlsContext. Confirm the exact field layout for your Envoy version in the Envoy SDS documentation, because the required fields are named there and SdsSecretConfig.name is the one that cannot be left out.

  2. Configure sds_config or path_config_source

    Set the source that Envoy reads the secret from. For a remote secret, sds_config points to a ConfigSource whose api_config_source specifies a grpc_service, since the Envoy SDS documentation says only gRPC is supported. The SDS server implements the SecretDiscoveryService over the same xDS protocol as other xDS APIs, and the connection must be secured with a Unix Domain Socket on the same host, mTLS with statically configured client certificates, or AWS IAM SigV4. For a file-based secret, use path_config_source to load the secret YAML from a file path. Check that Envoy starts and logs a successful fetch or file load before moving on.

  3. Set watched_directory to the current symlink

    Set watched_directory so Envoy watches a parent path, such as /certs, while the secret files live under a symlink such as /certs/current/. By default Envoy watches the directory that contains each secret file for move events, and watched_directory lets you control that watch so that the symlink swap is what Envoy reacts to. Keep the layout consistent: the actual certificate and key files sit in a versioned location, and /certs/current points at the one in use. You know the step is done when the watched path and the symlink path match what the rotation step will change.

  4. Set poll_interval where events are unreliable

    Set poll_interval only if filesystem events are unreliable on your hosts. With poll_interval set, Envoy polls the SDS config file and the secret files at that interval instead of relying solely on filesystem events. This is an optional step, so skip it when move events are delivered reliably in your environment and test that before you decide. If you set it, record the value and confirm in the Envoy SDS documentation how the interval is expressed for your version. The step is done when you can show the setting in the configuration and the poll has picked up a test change.

  5. Reference the secret from CommonTlsContext

    Reference the secret name from the CommonTlsContext of the listener or cluster that terminates TLS. Certificates are referenced through tls_certificate_sds_secret_configs, and CA validation is referenced through validation_context_sds_secret_config. Use the same name you defined in the first step, so the two halves of the configuration connect. Note that a listener whose certificate comes from SDS is not marked active and its port does not open until the certificate arrives. The step is done when Envoy starts, the listener becomes active and the port opens, which confirms the secret was delivered.

  6. Run the rotation command

    When a renewed certificate is ready, run the documented rotation command: ln -s <new secrets path> /certs/new && mv -Tf /certs/new /certs/current. The command creates a new symlink pointing at the renewed files and then moves it over /certs/current in one rename, so Envoy sees a single move event rather than a half-written directory. Run it from the account that owns the certificate directory, and make sure the new secrets path already contains the complete certificate and key before you rotate. The step is done when the symlink at /certs/current points at the new files.

  7. Check rotation statistics and listener state

    Confirm that Envoy picked up the rotated certificate by checking its statistics. The documented counters include ssl_context_update_by_sds, which records context updates from SDS, and sds.<SECRET_NAME>.key_rotation_failed, which counts filesystem rotation failures outside an SDS update. Also check that the listener remains active and its port stays open. If the fetch fails, the listener becomes active and its port opens but connections are reset, so a healthy listener with rising reset counts is a sign to investigate. The step is done when the update counter increases and the failure counter stays at zero.

What must be in place before Envoy renewals can run?

Envoy's secret discovery path depends on a secure SDS connection, writable secret locations on the proxy host, and an issuing process that can complete validation. The cards below cover each prerequisite in the order you would check it. The Envoy details are taken from the SDS docs for version 1.41.0-dev as of 4 December 2026.

Confirm the Envoy version

The SDS behavior described here was read against the Envoy 1.41.0-dev docs as of 4 December 2026. Before you build a renewal job, confirm that the Envoy binary you run matches that documentation, because options such as on-demand selection and delta gRPC behavior can differ between releases. Check the release notes and the secret page for the exact version in your fleet, and test the renewal path on a non-production proxy first.

Envoy SDS docs

Secure the SDS server connection

The SDS server implements the gRPC SecretDiscoveryService, and the connection to it must be secure. The documented options are a Unix Domain Socket on the same host, mTLS with statically configured client certificates, or AWS IAM SigV4. Choose one option and confirm that the SDS server and Envoy both support it. Remote secrets are fetched through sds_config, and its api_config_source must specify a grpc_service, because only gRPC is supported.

Envoy SDS docs

Writable secret paths on the host

For filesystem rotation, the process that writes new secret files must be able to create them and move symlinks on the same host as Envoy. The documented pattern creates a symlink at a staging path and moves it over the live link, for example /certs/current. Envoy watches the directory containing each secret file by default, and watched_directory lets it watch a parent path such as /certs. Confirm these permissions and paths before the first rotation, because a failed move leaves the old certificate in use.

Envoy SDS docs

Reference secrets by name in the listener

SdsSecretConfig.name is required, and each name is referenced in CommonTlsContext, either through tls_certificate_sds_secret_configs for the certificate or through validation_context_sds_secret_config for CA validation. Keep names consistent across the bootstrap, the listener and the renewal job so that a rotated file lands under the name Envoy expects. A listener whose certificate comes from SDS does not open its port until the certificate arrives.

Envoy SDS docs

DNS and validation access for issuance

The issuing process that obtains each new certificate needs DNS and validation access for the names on the certificate. The sources for this page do not publish a full validation setup for every certificate authority, so confirm the challenge type your authority uses and the DNS or HTTP reachability it needs. Those requirements sit outside Envoy's own configuration, and they must work on the schedule your renewal job runs.

Monitor failed fetches and rotations

Envoy documents statistics such as ssl_context_update_by_sds, downstream_context_secrets_not_ready and sds.<SECRET_NAME>.key_rotation_failed, which counts filesystem rotation failures outside an SDS update. A failed fetch leaves a listener active but resets connections, and a cluster that uses SDS rejects requests routed to it. Add alerts on these statistics before you rely on automated renewal, so a broken rotation is found before the existing certificate expires.

How does a renewed certificate reach an Envoy listener?

The diagram starts with the issuing process or CA, which writes the renewed secret into a new directory. The new directory is then linked into place by replacing the /certs/current symlink with mv -Tf, which Envoy detects through its watched directory event. Where secrets come from an SDS server instead, the server pushes the updated secret over gRPC. Either way, the listener and cluster pick up the new certificate. Check the ssl_context_update_by_sds and key_rotation_failed statistics to confirm the rotation took effect.

Renewed secrets reach Envoy by file rotation or by SDS push.

How do you confirm Envoy renewals keep happening?

A successful rotation is not proof that the next one will succeed. For Envoy, the signals to watch are the SDS and key rotation statistics the Envoy SDS documentation describes: ssl_context_update_by_sds, which counts updates delivered through SDS, and downstream_context_secrets_not_ready and upstream_context_secrets_not_ready, which indicate that a listener or cluster is waiting on a secret it has not received. Alongside these, sds.<SECRET_NAME>.key_rotation_failed counts filesystem rotation failures that happen outside an SDS update, so it matters most when certificates are delivered as files. Export these counters from the admin interface or your metrics pipeline and alert when key_rotation_failed increases or a not_ready counter stays above zero after a rotation window. The sources do not set alert thresholds, so choose them from your own renewal interval and tolerance for error, and test them against a deliberately broken rotation before relying on them.

Envoy's own counters cannot tell you when a certificate will expire, because they only report what Envoy has received and attempted. Track expiry separately, by reading the notAfter date of the certificate each listener serves from outside the proxy, on a schedule that does not depend on Envoy being healthy. An external check also catches the case where the renewal job itself stopped running, which no proxy statistic will show. Whichever tool you use, make the expiry alert fire well before the certificate's lifetime ends, and check that it fires for every secret name rather than only the ones you remember to list. Where the sources describe the rotation command for filesystem-based secrets, confirm that your renewal job runs it and that the watched directory matches the symlink layout you deployed.

Keep a dated record of each rotation: which secret name changed, when the new certificate became active, the counter values before and after, and the job or person that performed the change. An auditor or customer assessing your certificate management may ask for this history, and it is far easier to assemble while the events are recent. Store the records somewhere that survives proxy restarts and is retained for as long as your assessment requires. Before you rely on any of this, confirm with your own environment how long your metrics and logs are retained, since the sources do not set retention periods for your deployment.

Common questions about automating Envoy certificates

Does Envoy support ACME for automatic certificate issuance?

The sources listed on this page do not say that Envoy has built-in ACME support. Envoy's documented approach is to receive certificates through Secret Discovery Service (SDS), where an external SDS server delivers secrets over gRPC, or to load them from files on disk. Automated issuance therefore depends on a separate ACME client or certificate manager that obtains the certificate and places it where Envoy receives it. Confirm the current feature set in the Envoy documentation for your version before you design the workflow around any built-in capability.

Which ACME client should we use with Envoy?

The sources on this page do not recommend a specific ACME client for Envoy. The choice depends on how your certificates reach Envoy. If you deliver certificates through an SDS server, the client or manager must write the issued certificate into a location that server reads. If you use filesystem rotation, the client must update the secret files Envoy watches. Evaluate candidates on whether they can write to that target, how they handle renewal scheduling, and what they log when a renewal fails. The ACME clients and protocols pillar covers the common options in more detail.

How often do Envoy certificates need to renew now?

Envoy does not set the lifetime. The CA/Browser Forum Baseline Requirements do. From 15 March 2026, the maximum validity for a publicly trusted subscriber TLS certificate is 200 days. From 15 March 2027, it falls to 100 days. From 15 March 2029, it falls to 47 days. Domain and IP address validation reuse shortens on the same schedule, to 200, 100 and then 10 days. Your renewal interval must therefore fit within the lifetime of the certificates you issue, and the shorter schedule means manual renewal will not keep pace. Confirm which certificates in your estate are publicly trusted and which are private before you plan the cadence.

What happens to Envoy traffic if a certificate renewal fails?

The behavior depends on whether the certificate comes from SDS. The Envoy documentation says that a listener whose certificate is delivered by SDS stays inactive, and its port does not open, until the certificate arrives. If the fetch fails after the listener is active, connections to that port are reset. For clusters that use SDS, a failed fetch leaves the cluster active, but requests routed to it are rejected. Envoy exposes statistics such as downstream_context_secrets_not_ready, upstream_context_secrets_not_ready and sds.<SECRET_NAME>.key_rotation_failed for filesystem rotation failures. Set alerts on these counters, and test your renewal failure path before production rollout.

Do wildcard certificate names work with Envoy?

The sources on this page do not address wildcard certificate names specifically. Envoy references certificates by secret name through tls_certificate_sds_secret_configs and validation_context_sds_secret_config, and the documentation describes how names are used for SDS lookup, but it does not state how wildcard subject names are matched or validated. Test a wildcard certificate in your own environment before relying on it. Also confirm with your certificate authority whether the issuance and validation path you use supports wildcards.

Can our own team automate Envoy certificate renewal, or do we need outside help?

Your team can automate renewal if it already runs Envoy in production and has staff who can operate an SDS server or configure filesystem rotation. The work involves three parts: choosing the issuance path, wiring the delivery mechanism to Envoy's secret configuration, and building failure detection and alerting. Teams that lack gRPC or PKI operations experience, or that must meet a compliance deadline across many Envoy instances, often bring in outside help. DeployOpen can plan, implement and document this as a fixed-scope engagement, and can test the resulting setup for failure handling. Ask for the scope, deliverables and timeline in writing before work begins.

What does it cost to automate Envoy certificate renewal?

The sources on this page do not give a price for this work, and this page does not estimate one. The main cost drivers are the number of Envoy instances and listeners that need certificates, whether you run an SDS server or rely on filesystem rotation, the number of certificate authorities involved, and the testing needed to prove failure handling. One-time costs include design, implementation and testing. Recurring costs include operating the issuance path, monitoring the statistics above and handling renewals as lifetimes shorten. When you request a quote, ask for each of these components to be itemized so you can compare scope and not just total figures.

How DeployOpen helps platform teams automate Envoy certificates

DeployOpen plans and builds the certificate delivery path for Envoy, from the secret source and SDS server through to the listeners and clusters that consume the certificates. Engagements are scoped in writing before work starts, and ongoing support is available as a retainer.

How we scope

  • We inventory which listeners, clusters and mesh workloads depend on certificates, and whether they use static secrets, file-based secrets or SDS.
  • We confirm the certificate source, the SDS server or file path, and how each secret name maps to the TLS context it serves.
  • The written scope states which Envoy versions, deployment targets and rotation paths are covered, and what remains with your team.

How we build

  • We configure the SDS ConfigSource with a grpc_service and a secure connection, using the transport your environment supports.
  • We set up filesystem rotation with watched_directory and a symlink swap, and confirm Envoy watches the correct parent path.
  • We test renewal end to end, checking that listeners stay active and that a failed fetch is detected before traffic is affected.

How we hand over

  • We document the secret names, SDS configuration, rotation procedure and the Envoy statistics your monitoring should alert on.
  • We deliver runbooks for the failure modes the Envoy docs describe, including listeners that fail to open and clusters that reject requests.
  • We confirm with your team that renewal runs without manual steps, and record the configuration in a form your engineers can maintain.

How we support

  • Ongoing support covers Envoy upgrades, changes to secret names and retesting of the rotation path after each change.
  • A retainer can include continuous checks on the key_rotation_failed and secrets-not-ready statistics your alerts depend on.
  • Before each certificate lifetime change, we confirm the renewal interval still fits the maximum validity your certificate authority issues.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.