pybotx-registration
Implementation foundation for the BotX automatic secret-delivery protocol:
GET /public_keyreturns a Base64-encoded Libsodium public key;POST /registeraccepts a sealedsecret_keyand persists it only after re-encrypting it for storage;- duplicate registration never changes an existing credential;
- the request path is authenticated, bounded and validates
server_hostbefore it becomes an outbound endpoint.
The package deliberately has no business handlers and no access to a plaintext secret outside its account-provider boundary.
Local verification
python -m venv .venv
.venv/bin/pip install -e '.[dev]'
.venv/bin/pytest
The tests exercise real Libsodium sealed-box encryption/decryption, HTTP contract responses, durable-at-service-boundary storage semantics, duplicate and concurrent delivery, lifecycle transitions, and the pybotx API gate.
GitLab CI
Merge requests and pushes to the default branch run pytest on Python 3.11–3.14, Ruff, mypy, and a build of the source distribution and wheel. The pipeline checks wheel contents and reports test results and coverage in GitLab.
Production adapters
InMemoryRegistrationRepository and LocalSecretBoxCipher are test/dev
adapters only. Before deployment replace them with a PostgreSQL repository
with UNIQUE(server_id, bot_id) and a KMS/Vault envelope-encryption adapter.
Use mTLS or AllowlistedPeerAuthenticator on a directly connected,
correctly terminated private-network ingress for the router.
Metadata
Release files for pybotx-registration 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pybotx_registration-0.1.1.tar.gz | 106.6 kB | With provenance | Details for pybotx_registration-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pybotx_registration-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for pybotx_registration-0.1.1-py3-none-any.whl |
Total release size: 124.1 kB
Release files / pybotx_registration-0.1.1.tar.gz
| Download URL | pybotx_registration-0.1.1.tar.gz |
|---|---|
| Size | 106.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
541fd53d4b7c4350957e6b87249326700beb89f583f48b1299c430f73511c0d0
|
|
BLAKE2b-256 checksum How to use checksums |
7c48e8b70ca1b6b19cf18035be52be860d4ae1e6867f905914cb2ae807bc40d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / pybotx_registration-0.1.1-py3-none-any.whl
| Download URL | pybotx_registration-0.1.1-py3-none-any.whl |
|---|---|
| Size | 17.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
082a908235a35dd4fef64b09d4fc1ad5211b88a9a2c477bc3bc8b307e42cced0
|
|
BLAKE2b-256 checksum How to use checksums |
ba951a7734943bb0d506f3db5b0ea337d35ad9b72019924081edbee4d21e9c8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logSecurity for pybotx-registration 0.1.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pybotx_registration-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logA 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.