-
Notifications
You must be signed in to change notification settings - Fork 67
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
feat: support ssl + client ssl authentication #69
feat: support ssl + client ssl authentication #69
Conversation
a0adf06
to
6b58b4f
Compare
Signed-off-by: Shivansh Saini <shivanshs9@gmail.com>
6b58b4f
to
f444fc1
Compare
@shivanshs9 Thanks, could you please add an integration test for it, to make sure the SSL authentication can work |
@WangXiangUSTC yep, I'll add one soon. Btw, I already tested it manually. If you'd like to give it a go too, you can generate certificates with this script. And then I did bunch of requests:
|
- ignore output of integration tests Signed-off-by: Shivansh Saini <shivanshs9@gmail.com>
Signed-off-by: Shivansh Saini <shivanshs9@gmail.com>
6aa3131
to
e88298f
Compare
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.
LGTM
@@ -32,6 +32,9 @@ func NewServerCommand() *cobra.Command { | |||
|
|||
cmd.Flags().IntVarP(&conf.ListenPort, "port", "p", 31767, "listen port of the Chaosd Server") | |||
cmd.Flags().StringVarP(&conf.ListenHost, "host", "a", "0.0.0.0", "listen host of the Chaosd Server") | |||
cmd.Flags().StringVar(&conf.SSLCertFile, "cert", "", "path to a PEM encoded certificate file") | |||
cmd.Flags().StringVar(&conf.SSLKeyFile, "key", "", "path to a PEM encoded private key file") | |||
cmd.Flags().StringVar(&conf.SSLClientCAFile, "CA", "", "path to a PEM encoded CA's certificate file") |
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.
It's better to use lowercase ca
instead.
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.
maybe we can update in another pr
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.
LGTM
Implements Authentication and SSL support in Chaosd (as per chaos-mesh/rfcs#14)
For implementation, I referred this guide