Authenticator - Bearer extension 🔗
The bearertokenauth
extension implements both configauth.ServerAuthenticator
and configauth.ClientAuthenticator
. It can be used in both http and gRPC exporters inside the auth
settings to embed a static token for every RPC call made.
The following is required:
You need to set the authenticator type to
bearertokenauth
.You need to enable transport layer security on the exporter.
はじめに 🔗
以下の手順に従って、コンポーネントの設定とアクティベーションを行ってください:
Splunk Distribution of the OpenTelemetry Collector をホストまたはコンテナプラットフォームにデプロイします:
Configure the
bearertokenauth
extension as described in the next section.Collector を再起動します。
設定オプション 🔗
The following configuration options are available:
filename
. Name of file that contains the authorization token sent in every client call.token
. Static authorization token sent on every gRPC client call as metadata. The value of the token is prepended by${scheme}
before being sent as a value of the authorization key in the request header (for HTTP) and metadata (for gRPC).
注釈
Either filename
or token
are required. If both are specified, then the token
field value is ignored.
Optionally, you can also configure:
scheme
.Bearer
by default. Specifies the auth scheme name.
サンプル構成 🔗
To activate the component add bearertokenauth
to the extensions
section of your configuration file and include the extension in any pipeline of the service
section. For example:
extensions:
bearertokenauth:
token: "somerandomtoken"
filename: "file-containing.token"
bearertokenauth/withscheme:
scheme: "Bearer"
token: "randomtoken"
receivers:
hostmetrics:
scrapers:
memory:
otlp:
protocols:
grpc:
exporters:
otlp/withauth:
endpoint: 0.0.0.0:5000
ca_file: /tmp/certs/ca.pem
auth:
authenticator: bearertokenauth
otlphttp/withauth:
endpoint: http://localhost:9000
auth:
authenticator: bearertokenauth/withscheme
service:
extensions: [bearertokenauth, bearertokenauth/withscheme]
pipelines:
metrics:
receivers: [hostmetrics]
processors: []
exporters: [otlp/withauth, otlphttp/withauth]
設定 🔗
The following table shows the configuration options for the extension:
トラブルシューティング 🔗
Splunk Observability Cloudをご利用のお客様で、Splunk Observability Cloudでデータを確認できない場合は、以下の方法でサポートを受けることができます。
Splunk Observability Cloudをご利用のお客様
Submit a case in the Splunk Support Portal .
Contact Splunk Support .
見込み客および無料トライアルユーザー様
Splunk Answers のコミュニティサポートで質問し、回答を得る
Join the Splunk #observability user group Slack channel to communicate with customers, partners, and Splunk employees worldwide. To join, see Chat groups in the Get Started with Splunk Community manual.