Conversation
# Conflicts: # gradle/libs.versions.toml
Signed-off-by: JelleHoffman <jelle.hoffman@alliander.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Jelle Hoffman <jelle.hoffman@hotmail.com>
Signed-off-by: Sander van der Heijden <smvdheijden@users.noreply.github.com>
There was a problem hiding this comment.
Pull Request Overview
This PR integrates an external OSLP message signing library to replace the existing custom signing implementation, adding dependency on com.gxf.utilities:oslp-message-signing library.
- Replaces custom
SigningUtilobject with external signing library integration - Refactors key management to implement
KeyProviderinterface from the external library - Updates build configuration to include the new signing library dependency
Reviewed Changes
Copilot reviewed 11 out of 12 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| settings.gradle.kts | Removes custom plugin and dependency management configurations |
| gradle/libs.versions.toml | Adds version declarations for the new signing library |
| composeApp/src/desktopMain/kotlin/org/lfenergy/gxf/oslp/util/OslpSigningUtil.kt | New wrapper class extending the external SigningUtil |
| composeApp/src/desktopMain/kotlin/org/lfenergy/gxf/oslp/util/OslpKeyProvider.kt | Refactors existing SigningUtil to implement KeyProvider interface |
| composeApp/src/desktopMain/kotlin/org/lfenergy/gxf/oslp/sockets/receive/ReceiveStrategy.kt | Updates to use new OslpSigningUtil wrapper |
| composeApp/src/desktopMain/kotlin/org/lfenergy/gxf/oslp/service/RequestService.kt | Updates to use new OslpSigningUtil wrapper |
| composeApp/src/desktopMain/kotlin/org/lfenergy/gxf/oslp/Main.kt | Updates initialization to use the new signing utility |
| composeApp/proguard-rules.pro | Adds ProGuard rules for the new library and suppresses warnings |
| composeApp/build.gradle.kts | Adds dependency on the new signing library |
| .github/workflows/build.yaml | Adds GitHub token environment variable for private registry access |
| .github/dependabot.yaml | Configures Dependabot to access private Maven registry |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
|
||
| if (isConfigured) { | ||
| if (OslpSigningUtil.getInstance().oslpKeyProvider.initializeKeys()) { | ||
| config.storeConfiguration() |
There was a problem hiding this comment.
This change removes the assignment to isConfigured variable. The variable isConfigured is likely used elsewhere in the code, and this change may break the configuration flow logic.
| config.storeConfiguration() | |
| config.storeConfiguration() | |
| isConfigured = true |
| type: maven-repository | ||
| url: https://maven.pkg.github.com/osgp/ | ||
| username: IoTFDP | ||
| password: ${{secrets.IOTFDP_GITHUB_TOKEN}} |
There was a problem hiding this comment.
The secret reference uses incorrect syntax. GitHub Actions secrets should be referenced as ${{ secrets.SECRET_NAME }} (with spaces around the braces), not ${{secrets.SECRET_NAME}}.
| password: ${{secrets.IOTFDP_GITHUB_TOKEN}} | |
| password: ${{ secrets.IOTFDP_GITHUB_TOKEN }} |
No description provided.