Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Commit

Permalink
fix: Retain secret description when updating a secret
Browse files Browse the repository at this point in the history
Signed-off-by: Eamonn Mansour <47121388+eamansour@users.noreply.github.com>
  • Loading branch information
eamansour committed Oct 30, 2024
1 parent 3447130 commit f1cf490
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ public HttpServletResponse handlePutRequest(
// A secret already exists and no type was given, so just update the secret by
// overriding its existing values with the values provided in the request
decodedSecret = getOverriddenSecret(existingSecretType, existingSecret, secretPayload);
setSecretMetadataProperties(decodedSecret, secretPayload.getdescription(), lastUpdatedByUser);
String description = getOverriddenValue(existingSecret.getDescription(), secretPayload.getdescription());
setSecretMetadataProperties(decodedSecret, description, lastUpdatedByUser);
}
credentialsService.setCredentials(secretName, decodedSecret);

Expand Down

0 comments on commit f1cf490

Please sign in to comment.