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

Terraform Data Source to get DNSKEY records of DNSSEC-signed managed zones #3117

Merged
merged 18 commits into from
Feb 18, 2020
Merged

Terraform Data Source to get DNSKEY records of DNSSEC-signed managed zones #3117

merged 18 commits into from
Feb 18, 2020

Conversation

chrissng
Copy link
Contributor

@chrissng chrissng commented Feb 12, 2020

Terraform Data Source to get DNSKEY records of DNSSEC-signed managed zones.

Fixes: hashicorp/terraform-provider-google#4802

Release Note Template for Downstream PRs (will be copied)

google_dns_keys

@modular-magician
Copy link
Collaborator

Hello! I am a robot who works on Magic Modules PRs.

I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review. They will authorize it to run through our CI pipeline, which will generate downstream PRs.

Thanks for your contribution! A human will be with you soon.

@slevenick, please review this PR or find an appropriate assignee.

@modular-magician
Copy link
Collaborator

Hello! I am a robot who works on Magic Modules PRs.

I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review. They will authorize it to run through our CI pipeline, which will generate downstream PRs.

Thanks for your contribution! A human will be with you soon.

@SirGitsalot, please review this PR or find an appropriate assignee.

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 5 files changed, 347 insertions(+))
Terraform Beta: Diff ( 5 files changed, 347 insertions(+))
Ansible: Diff ( 2 files changed, 2 insertions(+), 3 deletions(-))

Inspec: Diff ( 1 file changed, 1 insertion(+), 1 deletion(-))

1 similar comment
@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 5 files changed, 347 insertions(+))
Terraform Beta: Diff ( 5 files changed, 347 insertions(+))
Ansible: Diff ( 2 files changed, 2 insertions(+), 3 deletions(-))

Inspec: Diff ( 1 file changed, 1 insertion(+), 1 deletion(-))

@chrissng chrissng marked this pull request as ready for review February 12, 2020 15:37
@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 5 files changed, 347 insertions(+))
Terraform Beta: Diff ( 5 files changed, 347 insertions(+))
Ansible: Diff ( 2 files changed, 2 insertions(+), 3 deletions(-))

Inspec: Diff ( 1 file changed, 1 insertion(+), 1 deletion(-))

1 similar comment
@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 5 files changed, 347 insertions(+))
Terraform Beta: Diff ( 5 files changed, 347 insertions(+))
Ansible: Diff ( 2 files changed, 2 insertions(+), 3 deletions(-))

Inspec: Diff ( 1 file changed, 1 insertion(+), 1 deletion(-))

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 5 files changed, 364 insertions(+))
Terraform Beta: Diff ( 5 files changed, 364 insertions(+))
Ansible: Diff ( 2 files changed, 2 insertions(+), 3 deletions(-))

Inspec: Diff ( 1 file changed, 1 insertion(+), 1 deletion(-))

Copy link
Contributor

@slevenick slevenick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just a couple minor issues and I'll be able to merge this in

@@ -181,6 +181,7 @@ func Provider() terraform.ResourceProvider {
"google_container_engine_versions": dataSourceGoogleContainerEngineVersions(),
"google_container_registry_image": dataSourceGoogleContainerImage(),
"google_container_registry_repository": dataSourceGoogleContainerRepo(),
"google_dns_key": dataSourceDNSKey(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it makes sense for this resource to be named google_dns_keys instead. It returns a collection of keys rather than an individual key

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it!

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 5 files changed, 364 insertions(+))
Terraform Beta: Diff ( 5 files changed, 364 insertions(+))
Ansible: Diff ( 2 files changed, 2 insertions(+), 3 deletions(-))

Inspec: Diff ( 1 file changed, 1 insertion(+), 1 deletion(-))

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 5 files changed, 381 insertions(+))
Terraform Beta: Diff ( 5 files changed, 381 insertions(+))
Ansible: Diff ( 2 files changed, 2 insertions(+), 3 deletions(-))

Inspec: Diff ( 1 file changed, 1 insertion(+), 1 deletion(-))

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 5 files changed, 385 insertions(+))
Terraform Beta: Diff ( 5 files changed, 385 insertions(+))
Ansible: Diff ( 2 files changed, 2 insertions(+), 3 deletions(-))

Inspec: Diff ( 1 file changed, 1 insertion(+), 1 deletion(-))

1 similar comment
@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 5 files changed, 385 insertions(+))
Terraform Beta: Diff ( 5 files changed, 385 insertions(+))
Ansible: Diff ( 2 files changed, 2 insertions(+), 3 deletions(-))

Inspec: Diff ( 1 file changed, 1 insertion(+), 1 deletion(-))

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 5 files changed, 385 insertions(+))
Terraform Beta: Diff ( 5 files changed, 385 insertions(+))
Ansible: Diff ( 2 files changed, 2 insertions(+), 3 deletions(-))

Inspec: Diff ( 1 file changed, 1 insertion(+), 1 deletion(-))

@chrissng chrissng requested a review from slevenick February 18, 2020 01:14
Copy link
Contributor

@slevenick slevenick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for the contribution!

@slevenick slevenick merged commit 48bf912 into GoogleCloudPlatform:master Feb 18, 2020
nathkn pushed a commit to nathkn/magic-modules that referenced this pull request May 18, 2020
…zones (GoogleCloudPlatform#3117)

* DNSSEC Keys

* update schema

* Define as a data source

* add into data sources map

* remove unused import

* add tests

* No fill dns keys of zone is not dnssec enabled

* add docs

* add ds record to ksk

* fix string templating

* improve doc description

* improve ds record generation

* Update third_party/terraform/website/docs/d/datasource_dns_key.html.markdown

Co-Authored-By: Sam Levenick <[email protected]>

* rename data source in plural

* rename file, add comment on maps

* rename doc file

Co-authored-by: Sam Levenick <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose generated DNSKEY/DS records on DNSSEC-signed managed zones
4 participants