Merge pull request #3158 from Infisical/fix-secret-approval-generation-when-new-key-name-with-tags

Fix: Use New Secret Key for Approval Policy Generation for Tag Resolution
This commit is contained in:
Scott Wilson
2025-03-01 02:57:56 +09:00
committed by GitHub

View File

@@ -1294,7 +1294,7 @@ export const secretApprovalRequestServiceFactory = ({
secretMetadata
}) => {
const secretId = updatingSecretsGroupByKey[secretKey][0].id;
if (tagIds?.length) commitTagIds[secretKey] = tagIds;
if (tagIds?.length) commitTagIds[newSecretName ?? secretKey] = tagIds;
return {
...latestSecretVersions[secretId],
secretMetadata,