Skip to content

Commit 1d834a2

Browse files
Merge branch 'main' into abu-UID2-5453-add-audit-log
2 parents 9b8ab69 + e749722 commit 1d834a2

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
<groupId>com.uid2</groupId>
88
<artifactId>uid2-admin</artifactId>
9-
<version>5.23.13-alpha-168-SNAPSHOT</version>
10-
9+
<version>5.23.17</version>
1110
<properties>
1211
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1312
<vertx.version>4.5.13</vertx.version>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ private void logSaltAges(String saltCountType, TargetDate targetDate, Collection
184184
}
185185

186186
for (var entry : ages.entrySet()) {
187-
LOGGER.info("salt-count-type={} target-date={} age={} salt-count={}",
187+
LOGGER.info("salt_count_type={} target_date={} age={} salt_count={}",
188188
saltCountType,
189189
targetDate,
190190
entry.getKey(),

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -366,17 +366,17 @@ void logsSaltAgesOnRotation() throws Exception {
366366

367367
var expected = Set.of(
368368
// Post-rotation ages, we want to look at current state
369-
"[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
370-
"[INFO] salt-count-type=total-salts target-date=2025-01-01 age=5 salt-count=1",
371-
"[INFO] salt-count-type=total-salts target-date=2025-01-01 age=10 salt-count=1",
372-
"[INFO] salt-count-type=total-salts target-date=2025-01-01 age=50 salt-count=1",
369+
"[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
370+
"[INFO] salt_count_type=total-salts target_date=2025-01-01 age=5 salt_count=1",
371+
"[INFO] salt_count_type=total-salts target_date=2025-01-01 age=10 salt_count=1",
372+
"[INFO] salt_count_type=total-salts target_date=2025-01-01 age=50 salt_count=1",
373373

374374
// Pre-rotation ages, we want to see at which ages salts become refreshable, post rotation some will be 0
375-
"[INFO] salt-count-type=refreshable-salts target-date=2025-01-01 age=5 salt-count=1",
376-
"[INFO] salt-count-type=refreshable-salts target-date=2025-01-01 age=65 salt-count=2",
375+
"[INFO] salt_count_type=refreshable-salts target_date=2025-01-01 age=5 salt_count=1",
376+
"[INFO] salt_count_type=refreshable-salts target_date=2025-01-01 age=65 salt_count=2",
377377

378378
// Pre-rotation ages, post rotation they will all have age 0
379-
"[INFO] salt-count-type=rotated-salts target-date=2025-01-01 age=65 salt-count=2"
379+
"[INFO] salt_count_type=rotated-salts target_date=2025-01-01 age=65 salt_count=2"
380380
);
381381

382382
var minAges = new Duration[]{Duration.ofDays(30), Duration.ofDays(60)};

0 commit comments

Comments
 (0)