gRPC services

core.GrpcService

[core.GrpcService proto]

gRPC service configuration. This is used by ApiConfigSource and filter configurations.

Warning

This message type has draft status.

  1. {
  2. "envoy_grpc": "{...}",
  3. "google_grpc": "{...}",
  4. "timeout": "{...}",
  5. "credentials": [],
  6. "initial_metadata": []
  7. }

envoy_grpc

(core.GrpcService.EnvoyGrpc) Envoy’s in-built gRPC client. See the gRPC services overview documentation for discussion on gRPC client selection.

Precisely one of envoy_grpc, google_grpc must be set.

google_grpc

(core.GrpcService.GoogleGrpc) Google C++ gRPC client See the gRPC services overview documentation for discussion on gRPC client selection.

Precisely one of envoy_grpc, google_grpc must be set.

timeout

(Duration) The timeout for the gRPC request. This is the timeout for a specific request.

credentials

(core.GrpcService.Credentials) A set of credentials that will be composed to form the channel credentials.

initial_metadata

(core.HeaderValue) Additional metadata to include in streams initiated to the GrpcService. This can be used for scenarios in which additional ad hoc authorization headers (e.g. x-foo-bar: baz-key) are to be injected.

core.GrpcService.EnvoyGrpc

[core.GrpcService.EnvoyGrpc proto]

Warning

This message type has draft status.

  1. {
  2. "cluster_name": "..."
  3. }

cluster_name

(string, REQUIRED) The name of the upstream gRPC cluster. SSL credentials will be supplied in the Cluster tls_context.

core.GrpcService.GoogleGrpc

[core.GrpcService.GoogleGrpc proto]

Warning

This message type has draft status.

  1. {
  2. "target_uri": "...",
  3. "ssl_credentials": "{...}",
  4. "stat_prefix": "...",
  5. "config": "{...}"
  6. }

target_uri

(string, REQUIRED) The target URI when using the Google C++ gRPC client. SSL credentials will be supplied in credentials.

ssl_credentials

(core.GrpcService.GoogleGrpc.SslCredentials)

stat_prefix

(string, REQUIRED) The human readable prefix to use when emitting statistics for the gRPC service.

NameTypeDescription
streamstotalCounterTotal number of streams opened
streams_closed<gRPC status code>CounterTotal streams closed with <gRPC status code>

config

(Struct) Additional configuration for site-specific customizations of the Google gRPC library.

core.GrpcService.GoogleGrpc.SslCredentials

[core.GrpcService.GoogleGrpc.SslCredentials proto]

See https://grpc.io/grpc/cpp/structgrpc_1_1_ssl_credentials_options.html.

Warning

This message type has draft status.

  1. {
  2. "root_certs": "{...}",
  3. "private_key": "{...}",
  4. "cert_chain": "{...}"
  5. }

root_certs

(core.DataSource) PEM encoded server root certificates.

private_key

(core.DataSource) PEM encoded client private key.

cert_chain

(core.DataSource) PEM encoded client certificate chain.

core.GrpcService.Credentials

[core.GrpcService.Credentials proto]

gRPC credentials as described at https://grpc.io/docs/guides/auth.html#credential-types.

Note

Credentials are only currently implemented for the Google gRPC client.

Warning

This message type has draft status.

  1. {
  2. "access_token": "..."
  3. }

access_token

(string) OAuth2 access token, see https://grpc.io/grpc/cpp/namespacegrpc.html#ad3a80da696ffdaea943f0f858d7a360d.

Precisely one of access_token must be set.