-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
TLS 1.3 support in http output plugin #4332
Comments
Hmm, current fluentd/lib/fluent/plugin/out_http.rb Line 207 in dd1a6e5
fluentd/lib/fluent/plugin/out_http.rb Lines 248 to 256 in dd1a6e5
and it still uses deprecated method def ssl_version=(meth)
meth = meth.to_s if meth.is_a?(Symbol)
if /(?<type>_client|_server)\z/ =~ meth
meth = $`
if $VERBOSE
warn "#{caller(1, 1)[0]}: method type #{type.inspect} is ignored"
end
end
version = METHODS_MAP[meth.intern] or
raise ArgumentError, "unknown SSL method `%s'" % meth
set_minmax_proto_version(version, version)
@min_proto_version = @max_proto_version = version
end
METHODS_MAP = {
SSLv23: 0,
SSLv2: OpenSSL::SSL::SSL2_VERSION,
SSLv3: OpenSSL::SSL::SSL3_VERSION,
TLSv1: OpenSSL::SSL::TLS1_VERSION,
TLSv1_1: OpenSSL::SSL::TLS1_1_VERSION,
TLSv1_2: OpenSSL::SSL::TLS1_2_VERSION,
}.freeze
private_constant :METHODS_MAP We should fix this. |
Is there an approximated release date? thanks |
Is the intended fix for this problem is to add support for TLS1.3 in fluentd itself? @daipom |
Seems that openssl-ruby doesnt have support for TLS1.3 so how this needs to be solved? |
@Athishpranav2003 I haven't seen it in detail, but #4332 (comment) would be important. Fluentd has |
@daipom i guess i had a misunderstanding, |
@ashie can u please provide a dockerfile or something for ur tls1.3 server so that i can test locally |
@Athishpranav2003 Thanks!
Do you need a tlsv1.3 server for test? openssl req -new -nodes -x509 -sha256 -days 1000 -newkey rsa:2048 -keyout server.key -out server.crt
openssl s_server -cert server.crt -key server.key -accept 8000 -www -tls1_3 |
Discussed in #4329
Originally posted by mikakatua October 22, 2023
I'm trying to use fluentd to send logs to a http endpoint. This endpoint only supports TLS 1.3
My configuration is as follows:
This does not work. I get the error:
Looking at the http output documentation it looks like the max version is TLS 1.2. I have verified that it works removing the
tls_version
parameter and downgrading the ssl configuration of the endpoint to support TLS 1.2.If I remove the
tls_version
parameter without downgrading the endpoint, the error is:Is there any way to get it working with TLS 1.3?
I'm using Fluentd v1.16.2-1.0 docker image
The text was updated successfully, but these errors were encountered: