Opt-in trust for user-installed CA certificates (replace always-on src="user")
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Active
- Tech stack
- android
- Domain
- mobile-dev, security
Research direction
Start with res/xml/network_security_config.xml and the linked Android security documentation to determine whether runtime opt-in trust for user-installed CAs is possible. Compare the approach used by the Nextcloud Files app for SSO traffic and investigate whether a custom or extended TrustManager is required. Done means documenting a viable approach and its scope, or establishing that the requested behavior is not feasible.
Written by the indexing model from the issue text.
Description
Problem
res/xml/network_security_config.xml trusts user-installed CAs for every host:
<base-config cleartextTrafficPermitted="false">
<trust-anchors>
<certificates src="system"/>
<certificates src="user" tools:ignore="AcceptsUserCertificates" />
</trust-anchors>
</base-config>
That is a MITM risk, especially for a password manager: any CA in the device user store can intercept HTTPS to Nextcloud. It exists so self-hosted servers with a private/internal CA still work.
Idea
Network Security Config cannot be toggled at runtime (it is compiled XML).
So the preferred way to trust user CAs only if the user enables it, needs a runtime solution, not a baked-in XML file solution.
Needs some research whether this is possible to solve at all.
- https://developer.android.com/privacy-and-security/security-ssl
- https://developer.android.com/privacy-and-security/security-config
Since SSO traffic goes through the Nextcloud Files app, may check how the files app handles that.
May we need to build an own TrustManager (or can extend the original one), but that needs definitely a lot of research or another app that already did that work :D
- Dominant language
- C++
- Stars
- 103
- Forks
- 31
- Avg merge
- 10h 48m
- Merged PRs (30d)
- 13
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nextcloud/passman-android
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
nextcloud/passman-android#214 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
nextcloud/passman-android#184 · 2 comments ·
Maintainers usually reply within 1 day
-
Feature request
Difficulty 4/5 3-5 days Newbie friendliness 35/100
nextcloud/passman-android#172 ·
Maintainers usually reply within 1 day
-
Feature request
Difficulty 4/5 3-5 days Newbie friendliness 35/100
nextcloud/passman-android#167 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
nextcloud/passman-android#150 · 2 comments ·
Maintainers usually reply within 1 day
All issues in nextcloud/passman-android
Similar issues
-
Difficulty 1/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
feature wsl2
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
microsoft/WSL#42306 · 3 comments ·
Maintainers usually reply within 1 day
-
2026.11.0 fails to install on Intel macOS: requirements.txt pins cryptography==50.0.2 for Darwin x86_64May be free again A pull request for this issue was closed without being merged. Open
Difficulty 1/5 Under an hour Newbie friendliness 87/100
esphome/esphome#22892 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
distante/esphome-components#50 · 1 comment ·
Maintainers usually reply within 1 day
-
agent:Windows enhancement pri:medium release windows
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day