-
Notifications
You must be signed in to change notification settings - Fork 619
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
Adds support for Pages Projects and Pages Domains #1835
Conversation
CC @WalshyDev |
|
GitGuardian id | Secret | Commit | Filename | |
---|---|---|---|---|
- | Generic High Entropy Secret | 02baa8b | examples/resources/cloudflare_pages_project/resource.tf | View secret |
- | Generic High Entropy Secret | 02baa8b | examples/resources/cloudflare_pages_project/resource.tf | View secret |
- | Generic High Entropy Secret | 02baa8b | internal/provider/resource_cloudflare_pages_project_test.go | View secret |
- | Generic High Entropy Secret | 02baa8b | internal/provider/resource_cloudflare_pages_project_test.go | View secret |
- | Generic High Entropy Secret | 45f2547 | examples/resources/cloudflare_pages_project/resource.tf | View secret |
- | Generic High Entropy Secret | 59762b4 | internal/provider/resource_cloudflare_pages_project_test.go | View secret |
- | Generic High Entropy Secret | ea176e6 | examples/resources/cloudflare_pages_project/resource.tf | View secret |
- | Generic High Entropy Secret | ea176e6 | examples/resources/cloudflare_pages_project/resource.tf | View secret |
- | Generic High Entropy Secret | ea176e6 | internal/provider/resource_cloudflare_pages_project_test.go | View secret |
- | Generic High Entropy Secret | f12794e | internal/provider/resource_cloudflare_pages_project_test.go | View secret |
- | Generic High Entropy Secret | f12794e | internal/provider/resource_cloudflare_pages_project_test.go | View secret |
- | Generic High Entropy Secret | 5eeee91 | examples/resources/cloudflare_pages_project/resource.tf | View secret |
- | Generic High Entropy Secret | 5eeee91 | internal/provider/resource_cloudflare_pages_project_test.go | View secret |
- | Generic High Entropy Secret | 5eeee91 | internal/provider/resource_cloudflare_pages_project_test.go | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secrets safely. Learn here the best practices.
- Revoke and rotate these secrets.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Our GitHub checks need improvements? Share your feedbacks!
changelog detected ✅ |
Jake you're the best ❤️ If I can help in any way, let me know :) |
Will require a version that contains cloudflare/cloudflare-go#1051 |
The failing check is just GitGuardian complaining. Is there anything else needed for this Jake & Jacob? 👀 |
just time to review and test it out from me. |
I updated some docs and that new failing test seems to be a golanglint issue and (hopefully) not from something that I introduced. |
There are two new environment variables needed to test pages, Acceptance Tests pass using the PR branch. TESTARGS='-run "TestAccTestPages" -count 1 -parallel 1' make testacc
TF_ACC=1 go test $(go list ./...) -v -run "TestAccTestPages" -count 1 -parallel 1 -timeout 120m -parallel 1
? github.com/cloudflare/terraform-provider-cloudflare [no test files]
=== RUN TestAccTestPagesDomain
--- PASS: TestAccTestPagesDomain (7.25s)
=== RUN TestAccTestPagesProject
--- PASS: TestAccTestPagesProject (9.16s)
=== RUN TestAccTestPagesProjectBuildConfig
--- PASS: TestAccTestPagesProjectBuildConfig (5.42s)
=== RUN TestAccTestPagesProjectDeploymentConfig
--- PASS: TestAccTestPagesProjectDeploymentConfig (5.65s)
=== RUN TestAccTestPagesProjectDirectUpload
--- PASS: TestAccTestPagesProjectDirectUpload (5.49s)
PASS
ok github.com/cloudflare/terraform-provider-cloudflare/internal/provider 32.976s
? github.com/cloudflare/terraform-provider-cloudflare/tools/cmd/changelog-check [no test files]
? github.com/cloudflare/terraform-provider-cloudflare/tools/cmd/maintainer-only-file-check [no test files]
? github.com/cloudflare/terraform-provider-cloudflare/tools/cmd/tf-log-check [no test files]
? github.com/cloudflare/terraform-provider-cloudflare/version [no test files] |
confirmed acceptance tests all green with cloudflare-go shimmed in
👍 to merging once the upstream changes land. |
Any news on this PR? We really need it to migrate all our frontend to Pages. |
GitGuardian is all false positives; so ignoring. |
Whoooo! Thank you very much @Cyb3r-Jak3 and @jacobbednarz !! You have made a lot of people happy (and lots of internal teams too!) :) |
This functionality has been released in v3.23.0 of the Terraform Cloudflare 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! |
Resolves #1037
This PR adds Terraform support for Pages Projects and Pages Domains