Skip to content

Commit f47906c

Browse files
Merge pull request #489 from IABTechLab/sch-UID2-5450-salt-rotation-alarms
sch-UID2-5450 added log line for when salt rotation is complete
2 parents b333e8a + cab8506 commit f47906c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/main/java/com/uid2/admin/salt/SaltRotation.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public Result rotateSalts(
5656

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

59+
LOGGER.info("Salt rotation complete target_date={}", targetDate);
5960
logSaltAges("refreshable-salts", targetDate, refreshableSalts);
6061
logSaltAges("rotated-salts", targetDate, saltsToRotate);
6162
logSaltAges("total-salts", targetDate, Arrays.asList(postRotationSalts));

src/test/java/com/uid2/admin/salt/SaltRotationTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ void logsSaltAgesOnRotation() throws Exception {
365365
.build();
366366

367367
var expected = Set.of(
368+
"[INFO] Salt rotation complete target_date=2025-01-01",
368369
// Post-rotation ages, we want to look at current state
369370
"[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
370371
"[INFO] salt_count_type=total-salts target_date=2025-01-01 age=5 salt_count=1",

0 commit comments

Comments
 (0)