-
Notifications
You must be signed in to change notification settings - Fork 217
Add SSL support for Android Edge App #3668
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
Conversation
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 adds SSL/HTTPS support to the Android Edge App, enabling secure communication with the NVFlare server. The changes allow users to configure HTTPS connections and handle self-signed certificates for development environments.
- Adds configurable SSL support with HTTPS scheme selection
- Implements self-signed certificate handling for development environments
- Updates UI to include SSL configuration switches
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| Connection.kt | Core SSL implementation with configurable scheme and self-signed cert support |
| AndroidFlareRunner.kt | Minor type annotation update and whitespace cleanup |
| network_security_config.xml | Android network security configuration for cleartext and certificate handling |
| MainActivity.kt | UI switches for HTTPS and self-signed certificate options |
| FlareRunnerController.kt | SSL configuration properties and connection setup logic |
| AndroidManifest.xml | Network security configuration reference |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
...device/android/app/src/main/java/com/nvidia/nvflare/app/controllers/FlareRunnerController.kt
Show resolved
Hide resolved
...device/android/app/src/main/java/com/nvidia/nvflare/app/controllers/FlareRunnerController.kt
Outdated
Show resolved
Hide resolved
|
/build |
nvflare/edge/device/android/app/src/main/res/xml/network_security_config.xml
Outdated
Show resolved
Hide resolved
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.
Add one question, otherwise if you have tested with both http://xxx:yyy and https://xxx:yyy then we should be good.
|
/build |
|
I have tested that this works with both https and http |
|
/build |
Add SSL support for Android Edge App ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Quick tests passed locally by running `./runtest.sh`. - [ ] In-line docstrings updated. - [ ] Documentation updated.
Add SSL support for Android Edge App
Types of changes
./runtest.sh.