Skip to content

Commit

Permalink
Clarify that TLS+gRPC is not supported by Go Client
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbosch committed Jul 21, 2023
1 parent f7def22 commit 852b72d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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

0 comments on commit 852b72d

Please sign in to comment.