Skip to content
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

Permit cleartext for .onion addresses #2941

Merged
merged 1 commit into from
Mar 2, 2021
Merged

Permit cleartext for .onion addresses #2941

merged 1 commit into from
Mar 2, 2021

Conversation

Flygsand
Copy link
Contributor

@Flygsand Flygsand commented Mar 2, 2021

The current network policy doesn't allow non-HTTPS connections to .onion addresses. Since Domain Validation certificates aren't currently being issued for .onion addresses, this requirement makes Element practically incompatible with homeservers operated by individuals on Tor. The Tor and Onion service protocols provide encryption and authentication respectively anyway, so HTTPS is typically redundant.

This PR adds an exception to the network policy for .onion addresses, so that the app can be used with e.g. Orbot.

Fixes #2931

Pull Request Checklist

  • Changes has been tested on an Android device or Android emulator with API 21
  • UI change has been tested on both light and dark themes
  • Pull request is based on the develop branch
  • Pull request updates CHANGES.md
  • Pull request includes screenshots or videos if containing UI changes
  • Pull request includes a sign off

Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @kvadevack ,

Thanks for the PR. Just a remark on the changelog.

CHANGES.md Outdated
@@ -5,6 +5,7 @@ Features ✨:
-

Improvements 🙌:
- Full compatibility with homeservers on Tor (#2941)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change that to something more related to the actual change like Allow Element Android to connect to homeservers on Tor for instance?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed it to "Allow non-HTTPS connections to homeservers on Tor". Does that work?

The Tor and Onion service protocols provide encryption and authentication
respectively. Since Domain Validation certificates aren't currently being
issued for .onion addresses, the HTTPS requirement makes Element practically
incompatible with homeservers operated by individuals on Tor.

Signed-off-by: Martin Häger <martin.haeger@gmail.com>
Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is fine. Thanks for the update!

@bmarty bmarty merged commit 093c450 into element-hq:develop Mar 2, 2021
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.

onion home server
2 participants