Skip to content

show crypto provider in ztunnel version#1545

Merged
istio-testing merged 3 commits intoistio:masterfrom
Stevenjin8:version/show-crypto-provider
May 8, 2025
Merged

show crypto provider in ztunnel version#1545
istio-testing merged 3 commits intoistio:masterfrom
Stevenjin8:version/show-crypto-provider

Conversation

@Stevenjin8
Copy link
Contributor

It would be nice if ztunnel showed the crypto provider in version.

Envoy does a similar thing, where the output looks like

envoy  version: 739644f84930a8c0d416319aea97f58c2222f7ef/1.32.2-dev/Modified/RELEASE/BoringSSL

or

envoy  version: 739644f84930a8c0d416319aea97f58c2222f7ef/1.32.2-dev/Modified/RELEASE/BoringSSL-FIPS

@Stevenjin8 Stevenjin8 requested a review from a team as a code owner April 29, 2025 21:00
@istio-testing istio-testing added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Apr 29, 2025
@Stevenjin8 Stevenjin8 changed the title shows crypto provider show crypto provider in ztunnel version May 1, 2025
src/version.rs Outdated
pub fn new() -> Self {
#[cfg(feature = "tls-aws-lc")]
let crypto_provider = "tls-aws-lc".to_string();
#[cfg(feature = "tls-ring")]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For organization, would it make sense to have the provider be static in tls/lib.rs rather than defined here? Like TLS_VERSIONS

pub(super) static TLS_VERSIONS: &[&rustls::SupportedProtocolVersion] = &[&rustls::version::TLS13];

@Stevenjin8 Stevenjin8 requested a review from ilrudie May 7, 2025 15:29
Copy link
Contributor

@ilrudie ilrudie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks

@istio-testing istio-testing merged commit 9c01d12 into istio:master May 8, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants