1
0
mirror of https://github.com/aziascreations/BakaShrot.git synced 2026-11-23 20:58:46 +01:00

Removed the PureBasic version, Fixed refused certificates seen as lost connections

OldSource/ is deleted, with its PB-MessagePack submodule: it stays in git
history (up to 68966a8). What of its notes still holds is in
Source/docs/known-issues.md (the threat model, the known limits, ideas
for later); the old Docker image's publishing notes are in revamp.md's
step 13, the wheel's and releases' in Source/README.md. The Rust tests
are now the one runner. readme.md describes the Rust version.

The server now closes gently after refusing a certificate (shutdown,
then reading until the client closes, 1 s at most): closing at once
reset the connection, which could beat TLS's alert to the client
(ConnectionLost instead of AuthRejected, 14 of 160 runs under load).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 00:42:19 +01:00
parent 68966a8031
commit 17ec69c03c
153 changed files with 183 additions and 33686 deletions
+13 -2
View File
@@ -15,7 +15,7 @@ Source/
check.ps1 what CI runs: fmt, clippy, tests, docs
release.py a release for this platform: build, package, smoke test
docs/ designs across crates: protocol.md, certificates.md, oid.md, config.md,
storage.md, server.md, client.md
storage.md, server.md, client.md, known-issues.md
crates/
bakashrot-proto/ packets, frames, names, limits, error codes, shared by everything
bakashrot-pki/ certificates: issuing, identities, CRLs, the TLS setup
@@ -27,7 +27,7 @@ Source/
bakashrot-tools/ the CLI tools: bakashrot (push, read, query, list), bakashrot-cert
bindings/
c/ bakashrot.h, generated from bakashrot-capi
purebasic/ the prototypes and error codes, as OldSource/Client/'s
purebasic/ the prototypes and error codes, as the PureBasic version's
python/ bakashrot.py over the DLL, check_bakashrot.py, make_wheel.py
.cargo/config.toml the C runtime linked statically on Windows
tests/ (13) end-to-end suites across processes
@@ -66,6 +66,15 @@ Linux one in a manylinux 2.28 container, so it runs with glibc 2.28 and
later. The version is the workspace's (`Cargo.toml`), and
`bindings/python/bakashrot.py`'s `__version__` must be the same.
Publishing, as the old version did:
- **The wheel** to Gitea's registry, with twine 6.1+ (for the license
metadata) and a token with `write:package`:
`twine upload --repository-url https://git.nibblepoker.lu/api/packages/aziascreations/pypi -u aziascreations <wheel>`.
- **On GitHub** (no Python registry), the archives and the wheels on a
release: `gh release create v<version> --repo aziascreations/BakaShrot --title <version> <files>`
(`gh release upload` for one that exists).
## Conventions
- LF line endings (`.gitattributes`), rustfmt's defaults.
@@ -76,3 +85,5 @@ later. The version is the workspace's (`Cargo.toml`), and
- Use existing crates rather than reimplementing (MessagePack is `rmp-serde`).
- Protocol changes update `docs/protocol.md`; error codes are never
renumbered, packet ids never reused.
- `OldSource/` paths in comments and docs: the PureBasic version, removed
2026-11-15, in git history up to commit `68966a8`.