Skip to content

Commit

Permalink
Merge pull request #1342 from maqiuyujoyce/202403-stop-merging-sensit…
Browse files Browse the repository at this point in the history
…ive-fields

Stop merging sensitive fields in SQLInstance and ComputeBackendService
  • Loading branch information
google-oss-prow[bot] authored Mar 15, 2024
2 parents bb8dcb0 + 1a989c1 commit e84494c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/krmtotf/tftokrm.go
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,12 @@ func convertTFMapToKCCMap(state map[string]interface{}, prevSpec map[string]inte
continue
}
if tfresource.IsSensitiveConfigurableField(schema) {
switch rc.Name {
case "google_sql_database_instance",
"google_compute_backend_service",
"google_compute_region_backend_service":
continue
}
val := stateVal.(string)
ret[key] = corekccv1alpha1.SensitiveField{
Value: &val,
Expand Down

0 comments on commit e84494c

Please sign in to comment.