Skip to content

feat: add data protection policy resource#306

Open
GrantBirki wants to merge 4 commits into
CrowdStrike:mainfrom
GrantBirki:issue284
Open

feat: add data protection policy resource#306
GrantBirki wants to merge 4 commits into
CrowdStrike:mainfrom
GrantBirki:issue284

Conversation

@GrantBirki
Copy link
Copy Markdown
Contributor

This pull request adds the crowdstrike_data_protection_policy resource for Falcon Data Protection policy management in Terraform, including provider registration, sweeper support, examples, generated docs, and acceptance, unit, schema, and sweep test coverage. It also addresses review feedback by treating payload-level 404 responses as not found during Read() and by making legacy policy sweeps try both win and mac fallback platforms.

Resolves: #284

@ffalor ffalor self-requested a review February 28, 2026 07:12
Comment thread docs/resources/data_protection_policy.md Outdated
@GrantBirki
Copy link
Copy Markdown
Contributor Author

@ffalor another one!

@ffalor
Copy link
Copy Markdown
Contributor

ffalor commented Apr 9, 2026

This is being worked on, its just very large and I'm finding some api behavior that is just taking a little bit to validate. I've approved 2 of your others and will be merged once someone on my team is able to review my changes. the ml cert exclusion I'm also almost done going through.

ffalor added a commit to CrowdStrike/gofalcon that referenced this pull request Apr 9, 2026
Make 13 boolean fields in policymanager.PolicyProperties nullable (*bool)
so false can be explicitly sent via PATCH API. Previously, omitempty on
value-type bool caused false to be silently omitted, making it impossible
to toggle fields from true to false.

Also make precedence optional and nullable in ExternalPolicyPatch and
ExternalPolicyPost since it is not required by the API and 0 is a valid
value.

Remove enable_content_inspection from the required list as it is also
optional.

Ref: CrowdStrike/terraform-provider-crowdstrike#306
redhatrises pushed a commit to CrowdStrike/gofalcon that referenced this pull request May 4, 2026
Make 13 boolean fields in policymanager.PolicyProperties nullable (*bool)
so false can be explicitly sent via PATCH API. Previously, omitempty on
value-type bool caused false to be silently omitted, making it impossible
to toggle fields from true to false.

Also make precedence optional and nullable in ExternalPolicyPatch and
ExternalPolicyPost since it is not required by the API and 0 is a valid
value.

Remove enable_content_inspection from the required list as it is also
optional.

Ref: CrowdStrike/terraform-provider-crowdstrike#306
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.

add data_protection_policy resource

2 participants