-
Notifications
You must be signed in to change notification settings - Fork 396
[datadog_compliance_custom_framework] Terraform Provider for Custom Frameworks #2975
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ccaf302
to
f8a90fe
Compare
nkonjeti
commented
Apr 30, 2025
brett0000FF
approved these changes
May 1, 2025
nkonjeti
commented
May 5, 2025
vbarth2
reviewed
May 5, 2025
nkonjeti
commented
May 5, 2025
vbarth2
reviewed
May 5, 2025
vbarth2
reviewed
May 5, 2025
vbarth2
reviewed
May 5, 2025
vbarth2
reviewed
May 5, 2025
vbarth2
reviewed
May 5, 2025
vbarth2
reviewed
May 5, 2025
vbarth2
reviewed
May 5, 2025
vbarth2
reviewed
May 5, 2025
ac03605
to
e2e496e
Compare
7da9031
to
e768276
Compare
vbarth2
reviewed
May 15, 2025
datadog/fwprovider/resource_datadog_compliance_custom_framework.go
Outdated
Show resolved
Hide resolved
vbarth2
reviewed
May 15, 2025
datadog/fwprovider/resource_datadog_compliance_custom_framework.go
Outdated
Show resolved
Hide resolved
vbarth2
reviewed
May 15, 2025
vbarth2
reviewed
May 15, 2025
examples/resources/datadog_compliance_custom_framework/resource.tf
Outdated
Show resolved
Hide resolved
This reverts commit 367c92c.
d7a9e26
to
e0c1c11
Compare
NaOHman
approved these changes
May 29, 2025
/merge |
View all feedbacks in Devflow UI.
The expected merge time in
|
shaneyuandd
pushed a commit
that referenced
this pull request
Jun 16, 2025
…rameworks (#2975) * provider for custom frameworks * passed set create test * clean up code and add tests * add invalid create framework tests * test files * add import state functionality * update mod file * clean up code * update tests * test update is not triggered if order is changed * change retrieve custom framework to get custom framework * update api spec in go mod * add docs for terraform provider * remove unstable endpoint * add more tests * add validators * change tests to use same handle and version * add test for 409 conflict * add a resource file * add example in doc and remove comments * fix required requirements and control block * changeexample to compliance custom framework * fix docs * make icon url optional and remove description * add comment to describe why requirements is a set * remove description from resource example * remove comments and extra cassettes * fix description of icon url * fix format * delete framework in conflict test * remove import resource and update when create conflicts * use real rule ids in the example resource * remove logs * test same state framework id * add better comments for delete after delete case * add cassetes for same config no update test * move around error handling * Revert "move around error handling" This reverts commit 367c92c. * remove err check * add invalidcreate cassettes * use real rule ids * RecreateAfterAPIDelete cassettes * add immutable fields edge case * change requirements and controls to lists' * fix modify plan * fix the apply issue * remove modify plan because read API response order is changed * remove import file * check for rule ids length and update docs * remove same config no update test * use one validator and add test for duplicate handle * edit validator file name * update doc * updateifframework exists casettes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation:
We wanted a terraform provider to interact with our Custom Framework APIs. The terraform resources will remain as the source of truth so whenever a resource is updated/created/deleted this will be reflected in the database and UI.
Testing
I built the Terrraform provider locally.
Tested the following:
Creating

Updating

Deleting/Destroying

Changing order of rules

no changes in state so no action taken
Terraform Provider Immutable Fields (Handle And Version)

Testing Large Input
Created this Framework: https://dd.datad0g.com/security/compliance/home/custom/my-custom-framework-terraform-3/3.0.0?previousUrl=%2Fsecurity%2Fcompliance%2Fhome×tamp=1747948011353&live=true
one control with over 200 rule ids (seconds to complete)
Commands:
also added unit tests!