From 5383c0b5043ba0806b56ae2a1f6640ba9a54bc42 Mon Sep 17 00:00:00 2001 From: Cody Constine Date: Wed, 11 Dec 2024 17:01:40 -0700 Subject: [PATCH] Adding new readers for salts and client side keypairs --- pom.xml | 2 +- src/main/java/com/uid2/operator/Main.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 13a9c3676..99c48a083 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,7 @@ 2.1.0 2.1.0 2.1.0 - 8.0.6 + 8.0.13-alpha-175-SNAPSHOT ${project.version} 21 21 diff --git a/src/main/java/com/uid2/operator/Main.java b/src/main/java/com/uid2/operator/Main.java index 8a5c8d5cb..19cf7bd1f 100644 --- a/src/main/java/com/uid2/operator/Main.java +++ b/src/main/java/com/uid2/operator/Main.java @@ -23,6 +23,7 @@ import com.uid2.shared.jmx.AdminApi; import com.uid2.shared.optout.OptOutCloudSync; import com.uid2.shared.store.CloudPath; +import com.uid2.shared.store.EncryptedRotatingSaltProvider; import com.uid2.shared.store.RotatingSaltProvider; import com.uid2.shared.store.reader.*; import com.uid2.shared.store.scope.GlobalScope; @@ -138,7 +139,7 @@ public Main(Vertx vertx, JsonObject config) throws Exception { this.cloudEncryptionKeyProvider = new RotatingCloudEncryptionKeyApiProvider(fsStores, new GlobalScope(new CloudPath(cloudEncryptionKeyMdPath))); String sitesMdPath = this.config.getString(Const.Config.SitesMetadataPathProp); String keypairMdPath = this.config.getString(Const.Config.ClientSideKeypairsMetadataPathProp); - this.clientSideKeypairProvider = new RotatingClientSideKeypairStore(fsStores, new GlobalScope(new CloudPath(keypairMdPath))); + this.clientSideKeypairProvider = new RotatingClientSideKeypairStore(fsStores, new GlobalScope(new CloudPath(keypairMdPath)), cloudEncryptionKeyProvider); String clientsMdPath = this.config.getString(Const.Config.ClientsMetadataPathProp); this.clientKeyProvider = new RotatingClientKeyProvider(fsStores, new GlobalScope(new CloudPath(clientsMdPath)), cloudEncryptionKeyProvider); String keysetKeysMdPath = this.config.getString(Const.Config.KeysetKeysMetadataPathProp); @@ -146,7 +147,7 @@ public Main(Vertx vertx, JsonObject config) throws Exception { String keysetMdPath = this.config.getString(Const.Config.KeysetsMetadataPathProp); this.keysetProvider = new RotatingKeysetProvider(fsStores, new GlobalScope(new CloudPath(keysetMdPath)), cloudEncryptionKeyProvider); String saltsMdPath = this.config.getString(Const.Config.SaltsMetadataPathProp); - this.saltProvider = new RotatingSaltProvider(fsStores, saltsMdPath); + this.saltProvider = new EncryptedRotatingSaltProvider(fsStores, saltsMdPath, cloudEncryptionKeyProvider); this.optOutStore = new CloudSyncOptOutStore(vertx, fsLocal, this.config, operatorKey, Clock.systemUTC()); if (this.validateServiceLinks) {