-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Mark Grafana API key as sensitive. #34105
Mark Grafana API key as sensitive. #34105
Conversation
Community NoteVoting for Prioritization
For Submitters
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome @jrouly 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
% make testacc TESTARGS='-run=TestAccGrafana_serial/Workspace/configuration' PKG=grafana ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/grafana/... -v -count 1 -parallel 20 -run=TestAccGrafana_serial/Workspace/configuration -timeout 360m === RUN TestAccGrafana_serial === PAUSE TestAccGrafana_serial === CONT TestAccGrafana_serial === RUN TestAccGrafana_serial/Workspace === RUN TestAccGrafana_serial/Workspace/configuration --- PASS: TestAccGrafana_serial (621.17s) --- PASS: TestAccGrafana_serial/Workspace (621.17s) --- PASS: TestAccGrafana_serial/Workspace/configuration (621.17s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/grafana 631.729s
% make testacc TESTARGS='-run=TestAccGrafana_serial/Workspace/' PKG=grafana ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/grafana/... -v -count 1 -parallel 20 -run=TestAccGrafana_serial/Workspace/ -timeout 360m === RUN TestAccGrafana_serial === PAUSE TestAccGrafana_serial === CONT TestAccGrafana_serial === RUN TestAccGrafana_serial/Workspace === RUN TestAccGrafana_serial/Workspace/tags === RUN TestAccGrafana_serial/Workspace/saml === RUN TestAccGrafana_serial/Workspace/organization acctest.go:1009: this AWS account must be the management account of an AWS Organization === RUN TestAccGrafana_serial/Workspace/dataSources === RUN TestAccGrafana_serial/Workspace/permissionType === RUN TestAccGrafana_serial/Workspace/notificationDestinations === RUN TestAccGrafana_serial/Workspace/version === RUN TestAccGrafana_serial/Workspace/sso acctest.go:1051: skipping tests; no SSO Instances found. === RUN TestAccGrafana_serial/Workspace/disappears === RUN TestAccGrafana_serial/Workspace/vpc workspace_test.go:114: Step 1/4 error: Error running apply: exit status 1 Error: creating EC2 VPC: operation error EC2: CreateVpc, https response error StatusCode: 400, RequestID: ebca4a7c-ac66-436c-b2aa-1975e1b66e08, api error VpcLimitExceeded: The maximum number of VPCs has been reached. with aws_vpc.test, on terraform_plugin_test.tf line 30, in resource "aws_vpc" "test": 30: resource "aws_vpc" "test" { === RUN TestAccGrafana_serial/Workspace/configuration === RUN TestAccGrafana_serial/Workspace/networkAccess --- FAIL: TestAccGrafana_serial (4103.41s) --- FAIL: TestAccGrafana_serial/Workspace (4103.41s) --- PASS: TestAccGrafana_serial/Workspace/tags (358.91s) --- PASS: TestAccGrafana_serial/Workspace/saml (320.42s) --- SKIP: TestAccGrafana_serial/Workspace/organization (0.70s) --- PASS: TestAccGrafana_serial/Workspace/dataSources (321.41s) --- PASS: TestAccGrafana_serial/Workspace/permissionType (348.85s) --- PASS: TestAccGrafana_serial/Workspace/notificationDestinations (349.90s) --- PASS: TestAccGrafana_serial/Workspace/version (601.81s) --- SKIP: TestAccGrafana_serial/Workspace/sso (0.45s) --- PASS: TestAccGrafana_serial/Workspace/disappears (318.63s) --- FAIL: TestAccGrafana_serial/Workspace/vpc (11.98s) --- PASS: TestAccGrafana_serial/Workspace/configuration (666.38s) --- PASS: TestAccGrafana_serial/Workspace/networkAccess (803.97s) FAIL FAIL github.com/hashicorp/terraform-provider-aws/internal/service/grafana 4109.237s FAIL make: *** [testacc] Error 1
This reverts commit d5dbad1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccGrafana_serial/Workspace/configuration\|TestAccGrafana_serial/Workspace/version' PKG=grafana
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/grafana/... -v -count 1 -parallel 20 -run=TestAccGrafana_serial/Workspace/configuration\|TestAccGrafana_serial/Workspace/version -timeout 360m
=== RUN TestAccGrafana_serial
=== PAUSE TestAccGrafana_serial
=== CONT TestAccGrafana_serial
=== RUN TestAccGrafana_serial/Workspace
=== RUN TestAccGrafana_serial/Workspace/configuration
=== RUN TestAccGrafana_serial/Workspace/version
--- PASS: TestAccGrafana_serial (1378.00s)
--- PASS: TestAccGrafana_serial/Workspace (1378.00s)
--- PASS: TestAccGrafana_serial/Workspace/configuration (746.14s)
--- PASS: TestAccGrafana_serial/Workspace/version (631.86s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/grafana 1383.634s
@jrouly Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.26.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
The
aws_grafana_workspace_api_key
resource creates a Grafana API Key. Thekey
attribute contains the value of the key.The
key
attribute is not currently marked as sensitive, despite containing an authentication credential. This PR marks it as sensitive.Resolves #34106.
Closes #34417.
Output from Acceptance Testing
I am not sure what the expectations for acceptance testing are, given it may cost money to run. I ran them and there were some successes, some failures, likely due to external constraints on my environment. I also do not think any of these tests are relevant to the change included in this PR.