Skip to content
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

Merged
merged 4 commits into from
May 17, 2018

Conversation

ph
Copy link
Contributor

@ph ph commented May 9, 2018

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.

@ph
Copy link
Contributor Author

ph commented May 9, 2018

I've rekick some Travis job which hit an http timeout when installing apt package.

@ph ph force-pushed the refactor/tls-out-of-output branch from 5002054 to 9aea7f4 Compare May 11, 2018 15:02
@ph
Copy link
Contributor Author

ph commented May 11, 2018

@kvch I've updated the original PR with the new options: client_authentication.`, lets review this one first.

@ph ph requested a review from kvch May 11, 2018 15:12
@ph
Copy link
Contributor Author

ph commented May 11, 2018

jenkins test this please


s, ok := in.(string)
if !ok {
return fmt.Errorf("client authentification must be an identifier")
Copy link
Contributor

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)
Copy link
Contributor

Choose a reason for hiding this comment

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

authentication

ph added 4 commits May 17, 2018 09:35
…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.
@ph ph force-pushed the refactor/tls-out-of-output branch from 9aea7f4 to 0b1d1ad Compare May 17, 2018 13:35
@ph
Copy link
Contributor Author

ph commented May 17, 2018

@kvch Updated with the requested changes, I also added authenfication to my abolish.vim exception.

@kvch kvch merged commit dba6756 into elastic:master May 17, 2018
stevea78 pushed a commit to stevea78/beats that referenced this pull request May 20, 2018
…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
stevea78 pushed a commit to stevea78/beats that referenced this pull request May 20, 2018
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants