Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Encrypting data to untrusted keys

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

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
python
领域
cli, security

调研方向

首先跟踪在 Certificate RSA 密钥加密期间于子 shell 中调用 gpg 二进制文件的 Python 代码。重现不受信任密钥的情况,然后评估提出的两种结果——发出警告并退出,还是始终信任并加密——同时考虑 TOFU 方面的担忧以及涉及 -o 和 PFX 密码的风险。

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

描述

Currently when an untrusted PGP key is used to encrypt the Certificate RSA key, the underlying system fully ignores the key and writes an empty file because the interaction with the gpg binary happens in a subshell.

We should either:

  1. Warn the user and exit
  2. Add the always trust flag to the encryption of files.

Concerns around 2:

There's a TOFU problem on initial RSA signing key encryption. Where in between the user setting their fingerprint and running mtls for the first time, a bad actor could potentially swap out the fingerprint uses for later encrypting the key one first generation.

There's also issues around using -o which would then encrypt the password for the PFX to a bad actor based off what's in the config.

主要语言
Python
星标
29
派生
7
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

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

drGrove/mtls-cli 的其他 Issue

查看 drGrove/mtls-cli 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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