Skip to main content

qsignt

CI

QsigNT signer 的注册工具。在 QQ 群里跑一遍流程,把 apikey 换到本地。

依赖:Python 3.10+、gnupg 2.3+(需要 gpg 在 PATH 里)。

签名申请入口

签名权限只在 QQ 群 1132696493 发放,进群后直接发 #qsignt init 就能开始,整个 流程在群里闭环,不需要单独找人。

群号固定写死在工具里,查一下就知道:

qsignt community

(不联网、不读配置,纯粹回显常量,防的是手抄错号。)

apikey 是组织层面的凭证,按用户发放。仓库这边不发 key、也不提供自助领取,抱着 clone 下来就跑出权限的期待会落空。

能拿到的东西:

  • 一个 qsig_ 开头的 apikey,由 QsigNT daemon 校验,请求头带 Authorization: Bearer <apikey>
  • apikey 与用户一一对应,一人一把,不做共享
  • 限速按用户计,默认 20 请求/秒,超了返回 429 和 Retry-After

注册流程只在群里走,私聊不办理。群聊之外的旁路申请一律不接,包括找维护者单独要。

为什么是 OpenPGP

QQ 客户端与服务端的身份已由平台担保,需要防的只是群里旁观者顺手读到凭证。 上行用服务端公钥加密就够了,不需要证书链,也不需要指纹交叉验证。

下行不用 OpenPGP,改用一次性 X25519 + AES-256-GCM:客户端在提交时带上本次流程 的临时公钥,服务端加密回包即可。少一次密钥交换,载荷也短一半。

流程

群里发 #qsignt init,机器人回一条带公钥的消息。整段复制,然后:

qsignt enroll --msg "SIGNER-KEY-V1 flow=AB12CD34 exp=10m
-----BEGIN PGP PUBLIC KEY BLOCK-----
...
-----END PGP PUBLIC KEY BLOCK-----"

工具打印一条 #qsignt key submit ...,发到群里。

机器人回 #qsignt key open ...,复制后:

qsignt open --msg "#qsignt key open AbCd..."

工具把 apikey 存到 ~/.config/qsignt/token.json(权限 0600),并打印 #qsignt verify XXXXXXXX。发出去,激活完成。

qsignt show 随时取回 apikey。

服务端

qsignt keygen --out /var/lib/qsignt/gpg          # 生成 bot 密钥对,公钥贴到群里
qsignt decrypt --home /var/lib/qsignt/gpg --msg "..."
qsignt seal --eph <客户端公钥> --flow AB12CD34 --json reply.json

边界

  • 中间中断不会白费:流程状态存在本地,open 之前重跑 enroll 会重开新流程。
  • 群消息会被折叠,复制时可能带上换行和空格,解析时已做容错。
  • apikey 明文只落在本地文件里,工具不做上传、不做同步。

Metadata

Release files for qsignt 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qsignt 0.1.0
File Size Uploaded Provenance Actions
qsignt-0.1.0.tar.gz 11.7 kB Without provenance Details for qsignt-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qsignt 0.1.0
File Interpreter ABI Platform Actions
qsignt-0.1.0-py3-none-any.whl Python 3 none any Details for qsignt-0.1.0-py3-none-any.whl

Total release size: 22.9 kB

Release files / qsignt-0.1.0.tar.gz

Download URL qsignt-0.1.0.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
12b0a41908b8a3c478d64da3674471b9d0e188a4251fb9f68515e4ceb114abac
BLAKE2b-256 checksum
How to use checksums
705a7565ca7adc48620c378410bde25c63fc0ff65a7108e4acc1e10cb191c855
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / qsignt-0.1.0-py3-none-any.whl

Download URL qsignt-0.1.0-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a601c101cc4a0f8ea9bbf7f4763778b40ed4843fa9f945b2f3c6dffd8c563887
BLAKE2b-256 checksum
How to use checksums
a0b742e54c9e0c74fba7b14669ffedf0f0cb7c9d4dc0ff57a61c8e46fe696ff1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for qsignt 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page