Skip to content

Conversation

@nvkevlu
Copy link
Collaborator

@nvkevlu nvkevlu commented Sep 8, 2025

Add SSL support for Android Edge App

Types of changes

  • 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.

@Copilot Copilot AI review requested due to automatic review settings September 8, 2025 13:42
Copy link
Contributor

Copilot AI left a 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.

@nvkevlu
Copy link
Collaborator Author

nvkevlu commented Sep 8, 2025

/build

Copy link
Collaborator

@YuanTingHsieh YuanTingHsieh left a 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.

@nvkevlu
Copy link
Collaborator Author

nvkevlu commented Sep 10, 2025

/build

@nvkevlu nvkevlu enabled auto-merge (squash) September 10, 2025 01:16
@nvkevlu
Copy link
Collaborator Author

nvkevlu commented Sep 10, 2025

I have tested that this works with both https and http

@nvkevlu
Copy link
Collaborator Author

nvkevlu commented Sep 10, 2025

/build

@nvkevlu nvkevlu merged commit 5c35766 into NVIDIA:main Sep 10, 2025
20 checks passed
chesterxgchen pushed a commit to chesterxgchen/NVFlare that referenced this pull request Sep 30, 2025
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants