Enhancement requested: add --pki argument
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with the command-line handling of --sendtext and --dest and the send path that looks up the destination's public key in the node database; the payload names no specific files. The request is for an optional base64 public-key argument (--pki or --dpk) that overrides or fills in a missing key. The name and the security implications are unsettled and nobody has commented, so confirm the design with maintainers before writing code.
由索引模型根据 Issue 内容生成。
描述
I believe that when one launches meshtastic --sendtext "message" --dest [UID], the device looks at its nodelist, finds the public key of the destination node and uses it to construct the packet.
If the recipient node is not in the sending device's nodelist, the following error is generated: "PKI_SEND_FAIL_PUBLIC_KEY" The only way to get this far is that a command argument --dest included an integer or hexadecimal UID value. The user constructing the message then, ostensibly, knows the recipient's UID. He or she should also know the recipient's public key.
When would this condition occur? Never with the Android or web application, because the recipient node must be in the sender's nodelist in order to launch a message dialog box. It can only occur wihen a CLI user constructs his or her own message to a node not in the nodelist. This might happen when the when the sending device has recently been flashed, its nodedb has been reset, or the node removed.
If the recipient node is not regularly broadcasting its existence, there is no way the sender's nodelist will update with the recipient's public key. In an emergency, the sender would have to wait, on average, half of the time in position.broadcast_secs (default is 15 minutes), or could wait forever.
My request is to add --pki base64:[DESTINATION_PUBLIC_KEY] to use when the sender's nodelist is incomplete. The command line DESTINATION_PUBLIC_KEY would take the place of any key or blank found in the nodelist.
This option is no more likely to be added to the bag of stupid user tricks than any other message to an invalid UID. In the case that a message or admin command is sent to a valid UID but with an invalid PKI, there is already a response: ADMIN_PUBLIC_KEY_UNAUTHORIZED.
As to the name of the argument, --pki seems as good as any to me, but --dpk for Destination Public Key is okay, or whatever the developer likes best.
- 主要语言
- Python
- 星标
- 855
- 派生
- 355
- 平均合并
- 3 天 3 小时
- 30 天内合并 PR
- 12
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
meshtastic/python 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
meshtastic/python#972 ·
维护者通常 1 天内回复
-
Bug: Can't run on Termux可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
meshtastic/python#969 ·
维护者通常 1 天内回复
-
good first issue help wanted
难度 2/5 1-3 小时 新手友好度 62/100
meshtastic/python#506 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 55/100
meshtastic/python#985 · 3 条评论 ·
维护者通常 1 天内回复
-
Undocumented `--set` choices可能已有人在做 @Cryptoteep 于 54 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 35/100
meshtastic/python#978 · 1 个 reaction ·
维护者通常 1 天内回复
查看 meshtastic/python 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 79/100
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
pimutils/vdirsyncer#1242 ·
-
backlog
难度 2/5 1-3 小时 新手友好度 78/100
sagemathinc/sagebrush#2768 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
vllm-project/vllm-ascend#23791 ·
维护者通常 1 天内回复
-
priority:P2
难度 2/5 1-3 小时 新手友好度 75/100
QuantConnect/lean-cli#792 ·
维护者通常 1 天内回复