infra-3597 | Harinder | Removing kmsKeyId from export as causes issues while provisioning resource

One team tried to create database from snapshot and for some reasons the manifest had a kmskeyid in database section. Removing that unblocked the team from DB provisioning issues

Issue: https://infra-pipelines.cmd.navi-tech.in/go/tab/build/detail/data-ingestion-service-dp-prod-db-deployment/1/deploy/1/rds-deploy

Plan where kms key was getting replaced: https://infra-pipelines.cmd.navi-tech.in/go/tab/build/detail/data-ingestion-service-dp-prod-db-deployment/1/plan/2/rds-deploy
This commit is contained in:
Harinder Singh
2024-07-24 13:58:14 +00:00
committed by GitHub
parent 9797f3f90c
commit 33d2e8a6dc

View File

@@ -877,7 +877,7 @@ public class ManifestService {
public Map<String, Object> exportManifestByIdAndVersion(Long id, Long version) {
final Set<String> keysToExclude = Set.of("version", "id", "infraVertical", "cluster",
"groupName");
"groupName","kmsKeyId");
final Map keysToReplace = Map.of("isDeployed", false, "ids", emptyList());
var manifest = version == null ? fetchById(id) : fetchByIdAndVersion(id, version);
manifest.makeRedactedEnvironmentVariableValueNull();