-
Notifications
You must be signed in to change notification settings - Fork 5.2k
tls: enable enforce_rsa_key_usage by default #43433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -414,8 +414,27 @@ ClientContextConfigImpl::ClientContextConfigImpl( | |
| FIPS_mode() ? DEFAULT_CURVES_FIPS : DEFAULT_CURVES, factory_context, creation_status), | ||
| server_name_indication_(config.sni()), auto_host_sni_(config.auto_host_sni()), | ||
| allow_renegotiation_(config.allow_renegotiation()), | ||
| enforce_rsa_key_usage_(PROTOBUF_GET_WRAPPED_OR_DEFAULT(config, enforce_rsa_key_usage, false)), | ||
| enforce_rsa_key_usage_(PROTOBUF_GET_WRAPPED_OR_DEFAULT(config, enforce_rsa_key_usage, true)), | ||
| max_session_keys_(PROTOBUF_GET_WRAPPED_OR_DEFAULT(config, max_session_keys, 1)) { | ||
|
|
||
| if (!config.has_enforce_rsa_key_usage()) { | ||
| ENVOY_LOG( | ||
|
||
| warn, | ||
| "The 'enforce_rsa_key_usage' option is not configured, its default value is changed to " | ||
| "true, and the config option will be deprecated in the next version. The handshake will " | ||
| "fail " | ||
| "if the keyUsage extension is present and incompatible with the " | ||
| "TLS usage. Please update the certificates to be compliant."); | ||
| } else if (!enforce_rsa_key_usage_) { | ||
| ENVOY_LOG( | ||
| warn, | ||
| "The 'enforce_rsa_key_usage' option is set to false, which disables the enforcement of RSA " | ||
| "key usage. This option will be deprecated in the next version. The handshake will fail " | ||
tyxia marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "if the keyUsage extension is present and incompatible with the " | ||
| "TLS usage. Please update the certificates to be compliant."); | ||
| factory_context.serverFactoryContext().runtime().countDeprecatedFeatureUse(); | ||
tyxia marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
tyxia marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
|
|
||
| // BoringSSL treats this as a C string, so embedded NULL characters will not | ||
| // be handled correctly. | ||
| if (server_name_indication_.find('\0') != std::string::npos) { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.