diff --git a/gradle.properties b/gradle.properties index 60974ba07..ace379964 100644 --- a/gradle.properties +++ b/gradle.properties @@ -14,6 +14,6 @@ # limitations under the License. # -version=0.20.0 +version=0.20.2 groupId=com.nike.cerberus artifactId=cms diff --git a/src/main/java/com/nike/cerberus/service/SafeDepositBoxService.java b/src/main/java/com/nike/cerberus/service/SafeDepositBoxService.java index e1e579f38..acdc10e9d 100644 --- a/src/main/java/com/nike/cerberus/service/SafeDepositBoxService.java +++ b/src/main/java/com/nike/cerberus/service/SafeDepositBoxService.java @@ -749,6 +749,9 @@ public void restoreSafeDepositBox(SafeDepositBoxV2 safeDepositBox, updateOwner(safeDepositBox.getId(), safeDepositBox.getOwner(), adminUser, now); modifyUserGroupPermissions(existingBox, safeDepositBox.getUserGroupPermissions(), adminUser, now); modifyIamPrincipalPermissions(existingBox, safeDepositBox.getIamPrincipalPermissions(), adminUser, now); + + // add/update the vault policies, in case they were tampered with or deleted + vaultPolicyService.createStandardPolicies(safeDepositBox.getName(), safeDepositBox.getPath()); } else { safeDepositBoxDao.createSafeDepositBox(boxToStore); addOwnerPermission(safeDepositBox.getUserGroupPermissions(), safeDepositBox.getOwner());