Opt-in trust for user-installed CA certificates (replace always-on src="user")

未关闭
#194 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
活跃
技术栈
android

调研方向

从 res/xml/network_security_config.xml 和链接的 Android 安全文档开始,确定是否可以在运行时选择信任用户安装的 CAs。比较 Nextcloud Files 应用对 SSO 流量所采用的方法,并调查是否需要自定义或扩展的 TrustManager。完成的标准是记录一种可行的方法及其范围,或确定所请求的行为不可行。

由索引模型根据 Issue 内容生成。

描述

advanced

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.

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

主要语言
C++
星标
103
派生
31
平均合并
10 小时 48 分钟
30 天内合并 PR
13

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextcloud/passman-android 的其他 Issue

查看 nextcloud/passman-android 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。