Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/main/java/com/uid2/admin/salt/SaltRotation.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public Result rotateSalts(

var postRotationSalts = rotateSalts(preRotationSalts, saltsToRotate, targetDate);

LOGGER.info("Salt rotation complete target_date={}", targetDate);
logSaltAges("refreshable-salts", targetDate, refreshableSalts);
logSaltAges("rotated-salts", targetDate, saltsToRotate);
logSaltAges("total-salts", targetDate, Arrays.asList(postRotationSalts));
Expand Down
1 change: 1 addition & 0 deletions src/test/java/com/uid2/admin/salt/SaltRotationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ void logsSaltAgesOnRotation() throws Exception {
.build();

var expected = Set.of(
"[INFO] Salt rotation complete target_date=2025-01-01",
// Post-rotation ages, we want to look at current state
"[INFO] salt_count_type=total-salts target_date=2025-01-01 age=0 salt_count=2", // The two rotated salts, used to be 65 and 50 days old
"[INFO] salt_count_type=total-salts target_date=2025-01-01 age=5 salt_count=1",
Expand Down