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

New data source - cloudflare_origin_ca_root_certificate #1158

Merged
merged 6 commits into from Aug 19, 2021

Conversation

onematchfox
Copy link
Contributor

Introduces new data source cloudflare_origin_ca_root_certificate which can be used to read the Origin CA root certificate for a given algorithm.

Closes #1096

@jacobbednarz
Copy link
Member

some minor nitpicks but nothing major 👍 once we get those sorted, this looks fine to merge in.

@jacobbednarz
Copy link
Member

integration tests look good

TF_ACC=1 go test $(go list ./...) -v -run "^TestAccCloudflareOriginCARootCertificate" -count 1 -timeout 120m -parallel 1
?   	github.com/cloudflare/terraform-provider-cloudflare	[no test files]
=== RUN   TestAccCloudflareOriginCARootCertificate
--- PASS: TestAccCloudflareOriginCARootCertificate (0.76s)
PASS
ok  	github.com/cloudflare/terraform-provider-cloudflare/cloudflare	1.138s
?   	github.com/cloudflare/terraform-provider-cloudflare/version	[no test files]

onematchfox and others added 4 commits August 16, 2021 06:19
Co-authored-by: Jacob Bednarz <jacob.bednarz@hey.com>
Co-authored-by: Jacob Bednarz <jacob.bednarz@hey.com>
Co-authored-by: Jacob Bednarz <jacob.bednarz@hey.com>
Co-authored-by: Jacob Bednarz <jacob.bednarz@hey.com>
@onematchfox
Copy link
Contributor Author

some minor nitpicks but nothing major once we get those sorted, this looks fine to merge in.

Thanks for the review. Accepted all suggestions. Hope you don't mind me tagging an extra commit on to the PR - I took the liberty of fixing the ip_range sidebar annotations so that these are no longer the odd ones out with their use of _ instead of -

@onematchfox onematchfox force-pushed the feat/origin-ca-root-cert branch 2 times, most recently from 0b01bbe to eb26e80 Compare August 16, 2021 04:33
@onematchfox
Copy link
Contributor Author

Hi @jacobbednarz, Just checking in on this PR to make sure it hasn't dropped off your radar. Let me know if there's anything else you need me to do. Cheers.

@jacobbednarz
Copy link
Member

jacobbednarz commented Aug 18, 2021 via email

@jacobbednarz jacobbednarz merged commit 0f4a757 into cloudflare:master Aug 19, 2021
@jacobbednarz
Copy link
Member

🥳 thanks for this!

@onematchfox onematchfox deleted the feat/origin-ca-root-cert branch August 19, 2021 05:39
@nboaldin
Copy link

cloudflare_origin_ca_root_certificate is returning html code for me, not an actual cert. Wanted to poke in here before I open up an issue.

@onematchfox
Copy link
Contributor Author

cloudflare_origin_ca_root_certificate is returning html code for me, not an actual cert. Wanted to poke in here before I open up an issue.

Yeah, unfortunately Cloudflare adjusted the URLs that were being used to retrieve the certs. This has been fixed in cloudflare/cloudflare-go#819 but we'll need to wait for a new release of that library to be able to fix this one.

cc @jacobbednarz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New data resource - Origin CA certificate chain
3 participants