-
Notifications
You must be signed in to change notification settings - Fork 21
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
enable grpc broker work with openshift route and customize certificate. #241
Conversation
/assign @clyang82 |
check(fmt.Errorf("failed to append broker client CA to cert pool"), "Can't start gRPC broker") | ||
} | ||
tlsConfig.ClientCAs = certPool | ||
tlsConfig.ClientAuth = tls.RequireAndVerifyClientCert |
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.
Can we use verify-full
?
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.
look like no verify-full
, I get this from https://github.com/grpc/grpc-go/blob/master/examples/features/encryption/mTLS/server/main.go#L67C1-L71C3
/ok-to-test |
Signed-off-by: morvencao <lcao@redhat.com>
c58762f
to
9464d47
Compare
rebased the code. |
@@ -139,6 +139,8 @@ func NewHelper(t *testing.T) *Helper { | |||
// Set the healthcheck interval to 1 second for testing | |||
helper.Env().Config.HealthCheck.HeartbeartInterval = 1 | |||
helper.HealthCheckServer = server.NewHealthCheckServer() | |||
// Disable TLS for testing | |||
helper.Env().Config.GRPCServer.DisableTLS = true |
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.
why do you disable TLS here? I saw you are using OCP serving certs to generate certs.
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.
tls is disabled for integration testing, this is how helper.Env().Config.GRPCServer.DisableTLS = true
works.
but for e2e testing, it is enabled, we generate the openshift serving certificate for grpc broker TLS.
/ok-to-test |
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
ref: https://issues.redhat.com/browse/ACM-16839