QuestionQ14

Configuring access and security

You installed the Google Cloud CLI on your workstation and set the proxy configuration. However, you are worried that your proxy credentials will be recorded in the gcloud CLI logs. You want to prevent your proxy credential from being logged. What should you do?

Explanation

Environment variables (CLOUDSDK_PROXY_USERNAME, CLOUDSDK_PROXY_PASSWORD) prevent proxy credentials from being recorded in gcloud CLI logs or shell history. Using gcloud config set commands stores credentials in configuration files, making them vulnerable. Encoding in SHA256 is not supported, and config file placement still exposes credentials to logging mechanisms.

Community Discussion

No comments yet. Be the first to start the discussion!