Skip to content

Conversation

@sarvodayaKumar
Copy link
Collaborator

fix(runtime-policies): resolve default drift issues and add missing file_forensic_collection handling

  • Defaults cleanup:

    • Removed Default: true from enable_port_scan_protection in container runtime policies.
    • Removed Default: true from enable_ip_reputation in host runtime policies.
    • These defaults caused unwanted Terraform plan drift when users didn’t explicitly set the fields, forcing workarounds.
    • Now the fields properly default to false/unset when not specified, aligning with Terraform provider patterns and preventing drift.
    • Fixes customer issue where policies showed unexpected changes in Terraform plans.
  • File forensic collection fix:

    • Added missing file_forensic_collection field to host runtime policy expansion (expandHostRuntimePolicy).
    • Extended test coverage for malware_scan_options.file_forensic_collection in both container and host runtime policy tests.
    • Ensures consistent handling of file_forensic_collection during policy creation and updates.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

…orensic collection (missing)

fix(runtime-policies): resolve default drift issues and add missing file_forensic_collection handling
* Defaults cleanup:

    * Removed Default: true from enable_port_scan_protection in container runtime policies.
    * Removed Default: true from enable_ip_reputation in host runtime policies.
    * These defaults caused unwanted Terraform plan drift when users didn’t explicitly set the fields, forcing workarounds.
    * Now the fields properly default to false/unset when not specified, aligning with Terraform provider patterns and preventing drift.
    * Fixes customer issue where policies showed unexpected changes in Terraform plans.
* File forensic collection fix:

    * Added missing file_forensic_collection field to host runtime policy expansion (expandHostRuntimePolicy).
    * Extended test coverage for malware_scan_options.file_forensic_collection in both container and host runtime policy tests.
    * Ensures consistent handling of file_forensic_collection during policy creation and updates.
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.

3 participants