1 个不稳定版本
0.1.0 | 2023 年 2 月 15 日 |
---|
#7 在 #transparency
340KB
4.5K SLoC
apt-swarm
尝试制作一个安全的公共 p2p 协议,通过传播已签名的 InRelease
文件来实现更新透明度日志。
配置要监视的仓库
要 ascii 加密 pgp 密钥,请使用此命令
sq armor < contrib/signal-desktop-keyring.gpg
然后写入如下配置
[[repository]]
urls = ["https://updates.signal.org/desktop/apt/dists/xenial/InRelease"]
keyring = """
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFjlSicBEACgho//0EzxuvuCn01LwFqGAgwPKcSSl4L+AWws5/YbsZZvmTBk
ggIiVOCIMh+d3cmGu5W3ydaeUbWbFGNsxO44EB5YBZcuLa5EzRKbNPVaOXKXmhp+
w0mEbkoKbF+3mz3lifwBnzcBpukyJDgcJSq8cXfq5JsDPR1KAL6ph/kwKeiDNg+8
oFgqfboukK56yPTYc9iM8hkTFdx9L6JCJaZGaDMfihoQm2caKAmqc+TlpgtKbBL0
t5hrzDpCPpJvCddu1NRysTcqfACSSocvoqY0dlbNPMN8j04LH8hcKGFipuLdI8qx
BFqlMIQJCVJhr05E8rEsI4nYEyG44YoPopTFLuQa+wewZsQkLwcfYeCecU1KxlpE
OI3xRtALJjA/C/AzUXVXsWn7Xpcble8i3CKkm5LgX5zvR6OxTbmBUmpNgKQiyxD6
TrP3uADm+0P6e8sJQtA7DlxZLA6HuSi+SQ2WNcuyLL3Q/lJE0qBRWVJ08nI9vvxR
vAs20LKxq+D1NDhZ2jfG2+5agY661fkx66CZNFdz5OgxJih1UXlwiHpn6qhP7Rub
OJ54CFb+EwyzDVVKj3EyIZ1FeN/0I8a0WZV6+Y/p08DsDLcKgqcDtK01ydWYP0tA
o1S2Z7Jsgya50W7ZuP/VkobDqhOmE0HDPggX3zEpXrZKuMnRAcz6Bgi6lwARAQAB
tDFPcGVuIFdoaXNwZXIgU3lzdGVtcyA8c3VwcG9ydEB3aGlzcGVyc3lzdGVtcy5v
cmc+iQI3BBMBCgAhBQJY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5+9ztYJBBZCGMug5Xp3Gxh/9JUWi6F1+9qAyz
N+O606NOXLwcmq5KZL0g
=zyVo
-----END PGP PUBLIC KEY BLOCK-----
"""
状态
该项目是实验性的。PGP 复杂且 p2p 安全性困难,如果有人找到了绕过破坏保护的方法,可能会占用大量磁盘空间。
还存在假阴性风险,apt-get 使用的 PGP 实现可能将我们认为是无效的签名视为有效。如果 apt-swarm 认为签名无效,则不会接受此版本到网络中,并且它不会出现在您的审计日志中。
apt-swarm 无法检测网络分区攻击,也不打算这样做。
许可证
GPL-3.0-或-之后
依赖关系
~24–42MB
~599K SLoC