-
Notifications
You must be signed in to change notification settings - Fork 112
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
use tls for nats connections #3334
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
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.
Corresponding ocis PR has a green CI
There is only a changelog missing and a CI run. |
@@ -209,6 +214,32 @@ func publisherFromConfig(m map[string]interface{}) (events.Publisher, error) { | |||
case "nats": | |||
address := m["address"].(string) | |||
cid := m["clusterID"].(string) | |||
return server.NewNatsStream(natsjs.Address(address), natsjs.ClusterID(cid)) | |||
|
|||
skipVerify := m["tls-insecure"].(bool) |
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.
this leads to a panic if unset:
panic: interface conversion: interface {} is nil, not bool
goroutine 280 [running]:
github.com/cs3org/reva/v2/internal/grpc/interceptors/eventsmiddleware.publisherFromConfig(0xc0016ee180)
/home/vscode/repositories/reva/internal/grpc/interceptors/eventsmiddleware/events.go:218 +0x8a5
github.com/cs3org/reva/v2/internal/grpc/interceptors/eventsmiddleware.NewUnary(0xc0016ee180)
/home/vscode/repositories/reva/internal/grpc/interceptors/eventsmiddleware/events.go:60 +0x5f
github.com/cs3org/reva/v2/pkg/rgrpc.(*Server).getInterceptors(0xc0009f6c80, {0x5ddfb08, 0x0, 0x0})
/home/vscode/repositories/reva/pkg/rgrpc/rgrpc.go:257 +0x1ae
github.com/cs3org/reva/v2/pkg/rgrpc.(*Server).registerServices(0xc0009f6c80)
/home/vscode/repositories/reva/pkg/rgrpc/rgrpc.go:198 +0x7cd
github.com/cs3org/reva/v2/pkg/rgrpc.(*Server).Start(0xc0009f6c80, {0x49bbe78, 0xc00077c378})
/home/vscode/repositories/reva/pkg/rgrpc/rgrpc.go:143 +0x51
github.com/cs3org/reva/v2/cmd/revad/runtime.start.func2()
/home/vscode/repositories/reva/cmd/revad/runtime/runtime.go:200 +0xae
created by github.com/cs3org/reva/v2/cmd/revad/runtime.start
/home/vscode/repositories/reva/cmd/revad/runtime/runtime.go:199 +0x211
Add config option to skip server certificate verification. This is needed when running a nats server with self signed certificates.