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

Commit

Permalink
Make sure vault policies exist after restore (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdford authored and fieldju committed May 30, 2017
1 parent c82b116 commit 53bfae5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
# limitations under the License.
#

version=0.20.0
version=0.20.2
groupId=com.nike.cerberus
artifactId=cms
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 53bfae5

Please sign in to comment.