Refactor sensitive manifest handling in Terraform module #374
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.
This pull request introduces a new feature that filters sensitive manifests based on their
group_kind. The changes include:sensitive_manifestsby iterating over the data source manifests and including only those whosegroup_kindis in thesensitive_group_kindslist.kustomization_resourceresources to use thesensitive_manifestsmap, falling back to the original manifests if not found in the sensitive map.Additionally, this change ensures compatibility with Terraform version 1.10.0 and above, where all marks are passed through conditional expressions as per the HCL commit.
This enhancement improves the security and management of manifests by appropriately marking and handling sensitive manifests.