-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
66842: envutil,server: report more env vars upon server startup and in telemetry r=cameronnunez a=knz Supersedes #66805. Informs #66838 (option 2). We want more visibility into the env vars that influence the server's state, for example HTTP_PROXY or more generally those env vars that our dependency and the go runtime observe. However, we need to be careful: - we can't report *all* env vars because there are many cases where even the name of an env var or its presence is confidential information. - even for the env vars where we're confident that we can report that it is set, we cannot always report its value because the value itself could be confidential (e.g. HTTP_PROXY). This patch thus adds env var reporting with a nuance between the following: - safe name, safe value (e.g. GOMAXPROCS) - safe name, redactable value (e.g. TERM) - safe name, no value (e.g HTTP_PROXY) Example: ![image](https://user-images.githubusercontent.com/642886/127644871-816b4e0d-4de8-4e37-a451-dcdafc8b4bc4.png) Release note (cli change): CockroachDB server nodes now report more environment variables in logs upon startup. Only certain environment variables that may have an influence on the server's behavior are reported. Co-authored-by: Raphael 'kena' Poss <[email protected]>
- Loading branch information
Showing
7 changed files
with
166 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters