Skip to content

OpenSSL Shim Efficiency: SSL_get_cipher_by_value Improvement #48858

Closed

Description

@Sukhdev841

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.

Call Stack:

If the Envoy binary is crashing, a call stack is required.
Please refer to the Bazel Stack trace documentation.

Activity

  1. added
    triage
    on Oct 30, 2026
  2. added and removed
    triage
    on Nov 2, 2026
  3. RyanTheOptimist commented on Nov 2, 2026

    @RyanTheOptimist
    Contributor
  4. NMJlam commented on Nov 3, 2026

    @NMJlam
    Contributor

    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.

  5. added 2 commits that reference this issue on Nov 3, 2026
    9eb241f
    8ad3a92
  6. added a commit that references this issue on Nov 10, 2026
    3d18e34
  7. added 3 commits that reference this issue on Nov 11, 2026
    2566901
    a1dd7b3
    cf55f46
  8. added a commit that references this issue on Nov 11, 2026
    b3b5263
  9. added 6 commits that reference this issue on Nov 17, 2026
    4b6b1d4
    f8d1c07
    74360b4
    1923f6d
    641fe6c
    2ca12b9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions