-
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
aws_vpn_connection resource's customer_gateway_configuration should be sensitive #15806
aws_vpn_connection resource's customer_gateway_configuration should be sensitive #15806
Conversation
568f58e
to
0c2c88e
Compare
7d6a280
to
376a54d
Compare
376a54d
to
0b171d9
Compare
0b171d9
to
43c5fe0
Compare
844a272
to
63e2e26
Compare
e1c5839
to
784414e
Compare
784414e
to
85f7291
Compare
85f7291
to
6857af9
Compare
62af0e3
to
da70d2e
Compare
cc4f828
to
bfb287f
Compare
bfb287f
to
70a1a5d
Compare
70a1a5d
to
18de301
Compare
18de301
to
80a6335
Compare
80a6335
to
28f6a1e
Compare
28f6a1e
to
b7f9d51
Compare
b7f9d51
to
d49605b
Compare
d49605b
to
c03cc03
Compare
c03cc03
to
4a436b0
Compare
4a436b0
to
c7801c6
Compare
Pull request #21306 has significantly refactored the AWS Provider codebase. As a result, most PRs opened prior to the refactor now have merge conflicts that must be resolved before proceeding. Specifically, PR #21306 relocated the code for all AWS resources and data sources from a single We recognize that many pull requests have been open for some time without yet being addressed by our maintainers. Therefore, we want to make it clear that resolving these conflicts in no way affects the prioritization of a particular pull request. Once a pull request has been prioritized for review, the necessary changes will be made by a maintainer -- either directly or in collaboration with the pull request author. For a more complete description of this refactor, including examples of how old filepaths and function names correspond to their new counterparts: please refer to issue #20000. For a quick guide on how to amend your pull request to resolve the merge conflicts resulting from this refactor and bring it in line with our new code patterns: please refer to our Service Package Refactor Pull Request Guide. |
c7801c6
to
69e317d
Compare
@zhelding, rebased and fixed for the latest changes on |
69e317d
to
5cdcafe
Compare
5cdcafe
to
ba3c761
Compare
349dd0a
to
a0944ef
Compare
…e sensitive because the xml contains tunnel psk Signed-off-by: Ben Dean <ben.dean@ontariosystems.com>
a0944ef
to
ac6fec9
Compare
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=TestAccEC2VPNConnection_basic\|TestAccEC2VPNConnection_tunnelOptions' PKG=ec2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 20 -run=TestAccEC2VPNConnection_basic\|TestAccEC2VPNConnection_tunnelOptions -timeout 180m
=== RUN TestAccEC2VPNConnection_basic
=== PAUSE TestAccEC2VPNConnection_basic
=== RUN TestAccEC2VPNConnection_tunnelOptions
=== PAUSE TestAccEC2VPNConnection_tunnelOptions
=== RUN TestAccEC2VPNConnection_tunnelOptionsLesser
=== PAUSE TestAccEC2VPNConnection_tunnelOptionsLesser
=== CONT TestAccEC2VPNConnection_basic
=== CONT TestAccEC2VPNConnection_tunnelOptionsLesser
=== CONT TestAccEC2VPNConnection_tunnelOptions
--- PASS: TestAccEC2VPNConnection_tunnelOptions (281.52s)
--- PASS: TestAccEC2VPNConnection_basic (470.06s)
--- PASS: TestAccEC2VPNConnection_tunnelOptionsLesser (1537.85s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 1543.790s
ffeacc8
to
dfd36ba
Compare
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=TestAccEC2VPNConnection_basic\|TestAccEC2VPNConnection_tunnelOptions' PKG=ec2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 20 -run=TestAccEC2VPNConnection_basic\|TestAccEC2VPNConnection_tunnelOptions -timeout 180m
=== RUN TestAccEC2VPNConnection_basic
=== PAUSE TestAccEC2VPNConnection_basic
=== RUN TestAccEC2VPNConnection_tunnelOptions
=== PAUSE TestAccEC2VPNConnection_tunnelOptions
=== RUN TestAccEC2VPNConnection_tunnelOptionsLesser
=== PAUSE TestAccEC2VPNConnection_tunnelOptionsLesser
=== CONT TestAccEC2VPNConnection_basic
=== CONT TestAccEC2VPNConnection_tunnelOptionsLesser
=== CONT TestAccEC2VPNConnection_tunnelOptions
--- PASS: TestAccEC2VPNConnection_tunnelOptions (281.52s)
--- PASS: TestAccEC2VPNConnection_basic (470.06s)
--- PASS: TestAccEC2VPNConnection_tunnelOptionsLesser (1537.85s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 1543.790s
This functionality has been released in v4.0.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. |
Community Note
The Problem
The computed
customer_gateway_configuration
onaws_vpn_connection
contains the raw XML of the VPN connection. This includes all the pre-shared keys which are already sensitive on the resource. Seems like the xml should be too so you don't see it in the stdout when the resource is destroyed:(note that the IPs and resources have been changed in that destroy plan example, but you get the idea).
Notice how
tunnel1_preshared_key
andtunnel2_preshared_key
are(sensitive)
but the raw XML which also contains those keys is not.Release note, etc
Release note for CHANGELOG:
Output from acceptance testing:
This doesn't really affect any acceptance tests as far as I can tell. I could not find any tests in this provider that were checking that sensitive attributes were not displayed. hashicorp/terraform has tests for that.
Relates #20433.
Relates #22776.
Supersedes #18495.