-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Reorganization and Addition: Move TLS types and config out of the outputs and support server options. #7054
Conversation
1ed6bb2
to
64fdbd1
Compare
c0b62d2
to
5002054
Compare
I've rekick some Travis job which hit an http timeout when installing apt package. |
5002054
to
9aea7f4
Compare
@kvch I've updated the original PR with the new options: client_authentication.`, lets review this one first. |
jenkins test this please |
|
||
s, ok := in.(string) | ||
if !ok { | ||
return fmt.Errorf("client authentification must be an identifier") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
authentication
|
||
mode, found := tlsClientAuthTypes[s] | ||
if !found { | ||
return fmt.Errorf("unknown client authentification mode'%v'", s) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
authentication
…puts and support server options. When working on the TLS TCP it was a bit strange to import a package coming from the outputs; this commit addresses a few things: - Move the `outputs/tls.go` and `transport/tls.go` into the common under the transport folder. - Add shims to make sure we keep backward compatibility on anything that could be using theses classes. - Extract common logic code to be reusable. - Add inverse mapper for TLSVersion and tlsCiphersuite, to give a uint and get the human string. - Add a new `ServerConfig` config struct. *This is a light refactoring, mostly moving code and adding a few tests. Fixes: elastic#6079
I think my french influence slipped on that one.
9aea7f4
to
0b1d1ad
Compare
@kvch Updated with the requested changes, I also added |
…puts and support server options. (elastic#7054) * Reorganization and Addition: Move TLS types and config out of the outputs and support server options. When working on the TLS TCP it was a bit strange to import a package coming from the outputs; this commit addresses a few things: - Move the `outputs/tls.go` and `transport/tls.go` into the common under the transport folder. - Add shims to make sure we keep backward compatibility on anything that could be using theses classes. - Extract common logic code to be reusable. - Add inverse mapper for TLSVersion and tlsCiphersuite, to give a uint and get the human string. - Add a new `ServerConfig` config struct. *This is a light refactoring, mostly moving code and adding a few tests. Fixes: elastic#6079 * Adding: Developer changelog * rename client_authentification to client_authentication I think my french influence slipped on that one. * authenfitication -> authentication
…puts and support server options. (elastic#7054) * Reorganization and Addition: Move TLS types and config out of the outputs and support server options. When working on the TLS TCP it was a bit strange to import a package coming from the outputs; this commit addresses a few things: - Move the `outputs/tls.go` and `transport/tls.go` into the common under the transport folder. - Add shims to make sure we keep backward compatibility on anything that could be using theses classes. - Extract common logic code to be reusable. - Add inverse mapper for TLSVersion and tlsCiphersuite, to give a uint and get the human string. - Add a new `ServerConfig` config struct. *This is a light refactoring, mostly moving code and adding a few tests. Fixes: elastic#6079 * Adding: Developer changelog * rename client_authentification to client_authentication I think my french influence slipped on that one. * authenfitication -> authentication
When working on the TLS TCP it was a bit strange to import a
package coming from the outputs; this commit addresses a few things:
outputs/tls.go
andtransport/tls.go
into the commonunder the transport folder.
could be using theses classes.
and get the human string.
ServerConfig
config struct.*This is a light refactoring, mostly moving code and adding a few
tests.