xds: fix text in the readme and the comment about the --secure flag (#7676)

This commit is contained in:
sanjaypujare 2020-11-30 14:58:52 -08:00 committed by GitHub
parent ac2327deb7
commit a6c3df2f24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -54,16 +54,16 @@ code. We will now demonstrate how the code can authorize use of xDS provided cre
`XdsChannelCredentials` on the client side and using `XdsServerCredentials` on the server side. `XdsChannelCredentials` on the client side and using `XdsServerCredentials` on the server side.
This code is enabled by providing an additional command line argument. This code is enabled by providing an additional command line argument.
1. On the server side, add `--secure` on the command line to authorize use of xDS security: 1. On the server side, add `--xds-creds` on the command line to authorize use of xDS security:
``` ```
$ export GRPC_XDS_BOOTSTRAP=/path/to/bootstrap.json $ export GRPC_XDS_BOOTSTRAP=/path/to/bootstrap.json
$ ./build/install/example-xds/bin/xds-hello-world-server --secure $ ./build/install/example-xds/bin/xds-hello-world-server --xds-creds
``` ```
2. Similarly, add `--secure` on the command line when you run the xDS client: 2. Similarly, add `--xds-creds` on the command line when you run the xDS client:
``` ```
$ export GRPC_XDS_BOOTSTRAP=/path/to/bootstrap.json $ export GRPC_XDS_BOOTSTRAP=/path/to/bootstrap.json
$ ./build/install/example-xds/bin/xds-hello-world-client --secure "xds world" xds:///yourServersName $ ./build/install/example-xds/bin/xds-hello-world-client --xds-creds "xds world" xds:///yourServersName
``` ```
In this case, if the xDS management server is configured to provide mTLS credentials (for example) to the client and In this case, if the xDS management server is configured to provide mTLS credentials (for example) to the client and

View File

@ -61,7 +61,7 @@ public class XdsHelloWorldClient {
/** /**
* Greet server. If provided, the first element of {@code args} is the name to use in the * Greet server. If provided, the first element of {@code args} is the name to use in the
* greeting. The second argument is the target server. A {@code --secure} flag is also accepted. * greeting. The second argument is the target server. A {@code --xds-creds} flag is also accepted.
*/ */
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
String user = "xds world"; String user = "xds world";