-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/fdp 3254 oslp signing library #61
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
base: main
Are you sure you want to change the base?
Conversation
# Conflicts: # gradle/libs.versions.toml
Signed-off-by: JelleHoffman <[email protected]>
Co-authored-by: Copilot <[email protected]> Signed-off-by: Jelle Hoffman <[email protected]>
Signed-off-by: Sander van der Heijden <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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() |
Copilot
AI
Sep 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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}} |
Copilot
AI
Sep 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.