Skip to content

Commit

Permalink
Clarify the difference between auth header and per-RPC auth (open-tel…
Browse files Browse the repository at this point in the history
…emetry#2590)

Closes open-telemetry#2508 by clarifying how the PerRPCAuth option differs from an `authorization` header sent when a connection is first established.

Signed-off-by: Juraci Paixão Kröhling <[email protected]>
  • Loading branch information
jpkrohling authored Mar 5, 2021
1 parent 1f9a07f commit 03802c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/configgrpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ README](../configtls/README.md).
- `timeout`
- [`read_buffer_size`](https://godoc.org/google.golang.org/grpc#ReadBufferSize)
- [`write_buffer_size`](https://godoc.org/google.golang.org/grpc#WriteBufferSize)
- [`per_rpc_auth`](https://pkg.go.dev/google.golang.org/grpc#PerRPCCredentials): the credentials to send for every RPC. Note that this isn't about sending the headers only during the initial connection as an `authorization` header under the `headers` would do: this is sent for every RPC performed during an established connection.
- `auth_type`: the authentication type, currently only `bearer` is supported
- `bearer_token`: the bearer token to use for each RPC call.

Example:

Expand Down

0 comments on commit 03802c2

Please sign in to comment.