You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are reporting any crash or any potential security issue, do not
open an issue in this repo. Please report the issue via emailing [email protected] where the issue will be triaged appropriately.
Title: One line description
OpenSSL Shim Efficiency: SSL_get_cipher_by_value Improvement Description:
What issue is being seen? Describe what should be happening instead of
the bug, for example: Envoy should not crash, the expected value isn't
returned, etc.
SSL_get_cipher_by_value() method in file compat/openssl/source/SSL_get_cipher_by_value.c is creating openssl Context on every call, which is very heavy operation.
This is causing huge performance degradation with Envoy is used with Openssl.
Repro steps:
Include sample requests, environment, etc. All data and inputs
required to reproduce the bug.
Multiple calls to SSL_get_cipher_by_value() from envoy, per handshake calls for improved logging etc. makes performance worse.
Note: The Envoy_collect tool
gathers a tarball with debug logs, config and the following admin
endpoints: /stats, /clusters and /server_info. Please note if there are
privacy concerns, sanitize the data prior to sharing the tarball/pasting.
Admin and Stats Output:
Include the admin output for the following endpoints: /stats,
/clusters, /routes, /server_info. For more information, refer to the admin endpoint documentation.
Note: If there are privacy concerns, sanitize the data prior to
sharing.
Config:
Include the config used to configure Envoy.
Logs:
Include the access logs and the Envoy logs.
Note: If there are privacy concerns, sanitize the data prior to
sharing.
Activity
RyanTheOptimist commentedon Nov 2, 2026
cc: @ggreenway
NMJlam commentedon Nov 3, 2026
Hi, I’d like to work on this unless @Sukhdev841 is already planning a fix. My plan is to create the SSL_CTX once and reuse it, instead of per call.
openssl: create SSL object once in SSL_get_cipher_by_value
openssl: create SSL object once per thread in SSL_get_cipher_by_value
openssl: create SSL object once per thread in SSL_get_cipher_by_value (…
openssl: create SSL object once per thread in SSL_get_cipher_by_value (…
openssl: create SSL object once per thread in SSL_get_cipher_by_value (…
openssl: create SSL object once per thread in SSL_get_cipher_by_value (…
openssl: create SSL object once per thread in SSL_get_cipher_by_value (…
openssl: create SSL object once per thread in SSL_get_cipher_by_value (…
openssl: create SSL object once per thread in SSL_get_cipher_by_value (…
openssl: create SSL object once per thread in SSL_get_cipher_by_value (…
openssl: create SSL object once per thread in SSL_get_cipher_by_value (…
openssl: create SSL object once per thread in SSL_get_cipher_by_value (…
openssl: create SSL object once per thread in SSL_get_cipher_by_value (…