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

Clarify that TLS+gRPC is not supported by Go Client #614

Merged
merged 1 commit into from
Jul 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion kuksa_go_client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ The GO clients reads the configuration file `kuksa-client.json`. In this reposit
KUKSA.val Databroker (`kuksa-client-grpc.json`) and KUKSA.val Server (`kuksa-client-ws.json`) exists.
The file `kuksa-client.json` is by default linked to `kuksa-client-grpc.json`.

For using the GO client with the kuksa.val server set protocol = ws and for a connection to kuksa.val databroker set protocol = grpc. On the command line it's available through -protocol ws/grpc.
For using the GO client with the kuksa.val server set protocol = ws and for a connection to kuksa.val Databroker set protocol = grpc. On the command line it's available through -protocol ws/grpc.

*Note: For communication with KUKSA Databroker only insecure mode is supported, TLS can not be used!*

### Dependency updates

Expand Down
3 changes: 3 additions & 0 deletions kuksa_go_client/kuksa_client/commn.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ const (

func (cg *KuksaClientCommGrpc) startCommunication() error {
var opts []grpc.DialOption
if !cg.Config.Insecure {
return errors.New("TLS not supported for communication with KUKSA Databroker!")
}
opts = append(opts, grpc.WithTransportCredentials(insecure.NewCredentials()))
serverUrl := cg.Config.ServerAddress + ":" + cg.Config.ServerPort
var err error
Expand Down
Loading