Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support X-Goog-Request-Reason system parameter #9724

Assignees
Milestone

Comments

@salrashid123
Copy link
Contributor

X-Goog-Request-Reason header is a google api system property which alows a user to define an arbitrary "reason" for the api request. This reason is a user-defined text field that shows up in audit logs

for more information, see

the usecase for this is to embed a jira ticket number or commit hash or any other type of arbitrary 'reason'

at the moment, the google provider supports this header value as an environment variable

$ export CLOUDSDK_CORE_REQUEST_REASON="fooo"
$ terraform apply

This FR seeks to add the request reason in as a provider configuration:

provider "google-local" {
  project = "your_projectid"
  request_reason = "somereason"
}

data "google_secret_manager_secret_version" "basic" {
  secret = "thepassword"
}

output "data" {
  value = data.google_secret_manager_secret_version.basic.name
}
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.