-
Notifications
You must be signed in to change notification settings - Fork 8
Added executeBlocking() on refresh calls and adjusted instance count/pool size #235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 57 commits
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
9ae60df
Increased Core vertx instances from 1 to 8
gmsdelmundo d7db2b0
[CI Pipeline] Released Snapshot version: 2.24.11-alpha-83-SNAPSHOT
cee7486
Reduced instance count to 4
gmsdelmundo aa7f6bb
Merge branch 'gdm-UID2-4660-core-load-testing' of github.com:IABTechL…
gmsdelmundo 40acf2a
[CI Pipeline] Released Snapshot version: 2.24.12-alpha-84-SNAPSHOT
0f14706
Reduced instance count to 2
gmsdelmundo 643c30c
[CI Pipeline] Released Snapshot version: 2.24.13-alpha-85-SNAPSHOT
476a835
Increased instance count to 6
gmsdelmundo 57c0040
Merge branch 'gdm-UID2-4660-core-load-testing' of github.com:IABTechL…
gmsdelmundo 25c1113
[CI Pipeline] Released Snapshot version: 2.24.14-alpha-87-SNAPSHOT
6060848
Merged main
gmsdelmundo 855e7c6
[CI Pipeline] Released Snapshot version: 2.25.15-alpha-88-SNAPSHOT
f8a22c5
Updated .trivyignore for testing
gmsdelmundo d45f978
Merge branch 'gdm-UID2-4660-core-load-testing' of github.com:IABTechL…
gmsdelmundo fec44f1
[CI Pipeline] Released Snapshot version: 2.25.16-alpha-89-SNAPSHOT
779bff7
Updated Vertx to 4.5.13 to fix CVE-2025-24970
gmsdelmundo 61be2d6
[CI Pipeline] Released Snapshot version: 2.25.17-alpha-90-SNAPSHOT
e545f1c
Refactored metadata providers
gmsdelmundo ce46e30
Added executeBlocking to handle refresh functions
gmsdelmundo 18dff90
Merge branch 'gdm-UID2-4660-core-load-testing' of github.com:IABTechL…
gmsdelmundo 58af135
Reduced core verticle instance count to 3
gmsdelmundo cfb86fa
Fixed missing parameter
gmsdelmundo 39f5795
Fixed incorrect function call
gmsdelmundo be4a087
Fixed routing context handling with 403 error
gmsdelmundo 78a66bc
[CI Pipeline] Released Snapshot version: 2.25.18-alpha-91-SNAPSHOT
28cc177
Added ignored vulnerabilities
gmsdelmundo 5b95747
[CI Pipeline] Released Snapshot version: 2.25.19-alpha-92-SNAPSHOT
3f38d24
Increased Vertx instance count to 5
gmsdelmundo 6513934
Merge branch 'gdm-UID2-4660-core-load-testing' of github.com:IABTechL…
gmsdelmundo a2a908e
[CI Pipeline] Released Snapshot version: 2.25.20-alpha-93-SNAPSHOT
d6a9d61
Set Vertx instance count to 3 and worker pool size to 1000
gmsdelmundo d1950ca
Merge branch 'gdm-UID2-4660-core-load-testing' of github.com:IABTechL…
gmsdelmundo 353c55e
[CI Pipeline] Released Snapshot version: 2.25.21-alpha-94-SNAPSHOT
ac3c515
Set Vertx instance count to 4 and worker pool size to 20
gmsdelmundo 32440f0
Merge branch 'gdm-UID2-4660-core-load-testing' of github.com:IABTechL…
gmsdelmundo cd92bee
[CI Pipeline] Released Snapshot version: 2.25.22-alpha-95-SNAPSHOT
758560f
Set Vertx instance count to 6
gmsdelmundo 5d2c682
Merge branch 'gdm-UID2-4660-core-load-testing' of github.com:IABTechL…
gmsdelmundo 666b2e9
[CI Pipeline] Released Snapshot version: 2.25.23-alpha-96-SNAPSHOT
fb8444e
Removed single usage public static path names
gmsdelmundo d9e3e51
Cleaned up code
gmsdelmundo 53601f6
Merge branch 'gdm-UID2-4660-core-load-testing' of github.com:IABTechL…
gmsdelmundo 9da36be
Reverted foreach iterator change
gmsdelmundo 94f7db5
Fixed incorrect access to private attribute
gmsdelmundo 64f998f
Fixed merge conflicts
gmsdelmundo 95f60c3
Added logger in Main instead of System print
gmsdelmundo febe067
Added getArrayMetadata for salts
gmsdelmundo 59056fd
Set executeBlocking() to parallel
gmsdelmundo 98664a7
Set vertx service instances to 3 and worker pool size to 1000
gmsdelmundo 573c7be
[CI Pipeline] Released Snapshot version: 2.25.9-alpha-98-SNAPSHOT
2e0e80a
Updated .trivyignore for CVE-2024-12797
gmsdelmundo 7213192
Merge branch 'gdm-UID2-4660-core-load-testing' of github.com:IABTechL…
gmsdelmundo 19571d0
[CI Pipeline] Released Snapshot version: 2.25.10-alpha-99-SNAPSHOT
37967a7
Fixed test paths and names
gmsdelmundo fbc86f4
Added MetadataProviderTest
gmsdelmundo 25d4448
Made service instance and worker count configurable
gmsdelmundo 150d1b8
Added worker pool size gauge
gmsdelmundo fd0c62a
Merge branch 'main' into gdm-UID2-4660-core-load-testing
gmsdelmundo 0f60a5e
Removed CVE-2024-12797 from .trivyignore
gmsdelmundo f2a7886
Reverted version in pom.xml
gmsdelmundo 85865e0
Removed commented code
gmsdelmundo fa186f3
Moved vertx worker pool config to static var
gmsdelmundo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 6 additions & 32 deletions
38
src/main/java/com/uid2/core/service/ClientMetadataProvider.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,44 +1,18 @@ | ||
| package com.uid2.core.service; | ||
|
|
||
| import com.uid2.core.model.SecretStore; | ||
| import com.uid2.core.util.OperatorInfo; | ||
| import com.uid2.shared.auth.OperatorType; | ||
| import com.uid2.shared.cloud.ICloudStorage; | ||
| import io.vertx.core.json.Json; | ||
| import io.vertx.core.json.JsonObject; | ||
|
|
||
| import java.io.IOException; | ||
| import java.io.InputStream; | ||
| import java.io.InputStreamReader; | ||
|
|
||
| import static com.uid2.core.util.MetadataHelper.getMetadataPathName; | ||
| import static com.uid2.core.util.MetadataHelper.readToEndAsString; | ||
|
|
||
| public class ClientMetadataProvider implements IClientMetadataProvider { | ||
|
|
||
| public static final String ClientsMetadataPathName = "clients_metadata_path"; | ||
|
|
||
| private final ICloudStorage metadataStreamProvider; | ||
| private final ICloudStorage downloadUrlGenerator; | ||
|
|
||
| @Override | ||
| public String getMetadata(OperatorInfo info) throws Exception { | ||
| String pathname = getMetadataPathName(info, SecretStore.Global.get(ClientsMetadataPathName)); | ||
| String original = readToEndAsString(metadataStreamProvider.download(pathname)); | ||
| JsonObject main = (JsonObject) Json.decodeValue(original); | ||
| JsonObject obj = main.getJsonObject("client_keys"); | ||
| String location = obj.getString("location"); | ||
| obj.put("location", downloadUrlGenerator.preSignUrl(location).toString()); | ||
| return main.encode(); | ||
| } | ||
|
|
||
| public class ClientMetadataProvider extends MetadataProvider { | ||
| public ClientMetadataProvider(ICloudStorage cloudStorage) { | ||
| this.metadataStreamProvider = this.downloadUrlGenerator = cloudStorage; | ||
| super(cloudStorage); | ||
| } | ||
|
|
||
| public ClientMetadataProvider(ICloudStorage fileStreamProvider, ICloudStorage downloadUrlGenerator) { | ||
| this.metadataStreamProvider = fileStreamProvider; | ||
| this.downloadUrlGenerator = downloadUrlGenerator; | ||
| super(fileStreamProvider, downloadUrlGenerator); | ||
| } | ||
|
|
||
| public String getMetadata(OperatorInfo info) throws Exception { | ||
| return getMetadata(info, "clients_metadata_path", "client_keys"); | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.