From 64c2aa7cd5bce5e1f5e5ff214260356b3052c1be Mon Sep 17 00:00:00 2001 From: Hans Hasselberg Date: Mon, 15 May 2023 13:52:07 +0200 Subject: [PATCH] Manual backport 1.14.x of #17311 (#17355) * [CC-4856] Add cloud stanza documentation * Add environment variables to cloud descriptions --------- Co-authored-by: Jeremy Jacobson --- website/content/docs/agent/config/config-files.mdx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/website/content/docs/agent/config/config-files.mdx b/website/content/docs/agent/config/config-files.mdx index d598db9713a9..4e365176aa32 100644 --- a/website/content/docs/agent/config/config-files.mdx +++ b/website/content/docs/agent/config/config-files.mdx @@ -1525,6 +1525,16 @@ Refer to the [formatting specification](https://golang.org/pkg/time/#ParseDurati part of the cluster before declaring it dead, giving that suspect node more time to refute if it is indeed still alive. The default is 6. +## Self-managed HCP Parameters + +- `cloud` This object specifies settings for connecting self-managed clusters to HCP. This was added in Consul 1.14 + + - `client_id` The OAuth2 client ID for authentication with HCP. This can be overridden using the `HCP_CLIENT_ID` environment variable. + + - `client_secret` The OAuth2 client secret for authentication with HCP. This can be overridden using the `HCP_CLIENT_SECRET` environment variable. + + - `resource_id` The HCP resource identifier. This can be overridden using the `HCP_RESOURCE_ID` environment variable. + ## Join Parameters - `rejoin_after_leave` Equivalent to the [`-rejoin` command-line flag](/docs/agent/config/cli-flags#_rejoin).