Oauth Config
Configs: main | alerting | metrics | oauth | probes | rds | servers | surfacer | targets | tlsconfig | utils | validators
|
Language: |
cloudprober.oauth.BearerToken #
[file <string> | cmd <string> | gce_service_account <string> | k8s_local_token <bool>]: <oneof># If above sources return JSON tokens with an expiry, we use that info to # determine when to refresh tokens and refresh_interval_sec is completely # ignored. If above sources return a string, we refresh from the source # every 30s by default. To disable this behavior set refresh_interval_sec to # zero.refresh_interval_sec: <float>
cloudprober.oauth.Config #
[http_request <cloudprober.oauth.HTTPRequest> | bearer_token <cloudprober.oauth.BearerToken> | google_credentials <cloudprober.oauth.GoogleCredentials>]: <oneof># How long before the expiry do we refresh. Default is 60 (1m). This applies # only to http_request and bearer_token types, and only if token presents # expiry in some way. # TODO(manugarg): Consider setting default based on probe interval.refresh_expiry_buffer_sec: <int32>
cloudprober.oauth.GoogleCredentials #
json_file: <string> scope: <string># Use encoded JWT directly as access token, instead of implementing the whole # OAuth2.0 flow.jwt_as_access_token: <bool># Audience works only if jwt_as_access_token is true.audience: <string>
cloudprober.oauth.HTTPRequest #
token_url: <string> method: <string># Data to be sent as request body. If there are multiple "data" fields, we combine # their values with a '&' in between. Note: 1) If data appears to be a valid json, # we automatically set the content-type header to "application/json", 2) If data # appears to be a query string we set content-type to # "application/x-www-form-urlencoded". Content type header can still be overridden # using the header field below.data: <string># HTTP request headersheader: <cloudprober.oauth.HTTPRequest.HeaderEntry>
cloudprober.oauth.HTTPRequest.HeaderEntry #
key: <string> value: <string>
cloudprober.oauth.BearerToken #
[file <string> | cmd <string> | gce_service_account <string> | k8s_local_token <bool>]: <oneof># If above sources return JSON tokens with an expiry, we use that info to # determine when to refresh tokens and refresh_interval_sec is completely # ignored. If above sources return a string, we refresh from the source # every 30s by default. To disable this behavior set refresh_interval_sec to # zero.refresh_interval_sec: <float>
cloudprober.oauth.Config #
[http_request <cloudprober.oauth.HTTPRequest> | bearer_token <cloudprober.oauth.BearerToken> | google_credentials <cloudprober.oauth.GoogleCredentials>]: <oneof># How long before the expiry do we refresh. Default is 60 (1m). This applies # only to http_request and bearer_token types, and only if token presents # expiry in some way. # TODO(manugarg): Consider setting default based on probe interval.refresh_expiry_buffer_sec: <int32>
cloudprober.oauth.GoogleCredentials #
json_file: <string> scope: <string># Use encoded JWT directly as access token, instead of implementing the whole # OAuth2.0 flow.jwt_as_access_token: <bool># Audience works only if jwt_as_access_token is true.audience: <string>
cloudprober.oauth.HTTPRequest #
token_url: <string> method: <string># Data to be sent as request body. If there are multiple "data" fields, we combine # their values with a '&' in between. Note: 1) If data appears to be a valid json, # we automatically set the content-type header to "application/json", 2) If data # appears to be a query string we set content-type to # "application/x-www-form-urlencoded". Content type header can still be overridden # using the header field below.data: <string># HTTP request headersheader: <cloudprober.oauth.HTTPRequest.HeaderEntry>
cloudprober.oauth.HTTPRequest.HeaderEntry #
key: <string> value: <string>