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
+10 -14
View File
@@ -5,15 +5,16 @@ from authenticated clients, store them in SQLite, and replicate them
between peers by name. Clients: a C DLL, CLI tools, a Python module. An
**internal tool on trusted machines**.
**Being rewritten in Rust** (since 2026-11-13):
**Rewritten in Rust** (since 2026-11-13):
- `revamp.md`: why, what's decided, what's proposed and open, the plan and
its status. Read it first.
- `Source/`: the new implementation (`Source/README.md`: layout, commands,
conventions; `Source/docs/`: designs, `protocol.md` first).
- `OldSource/`: the old PureBasic implementation, the reference for the
behaviour to carry over. It has its own `CLAUDE.md` (build, test, traps),
`Notes.md` and `Design/`; its paths are relative to `OldSource/`.
- `Source/`: the implementation (`Source/README.md`: layout, commands,
conventions; `Source/docs/`: designs, `protocol.md` first,
`known-issues.md` for what's left).
- The old PureBasic implementation was removed on 2026-11-15: it's in git
history, `OldSource/` up to commit `68966a8`. Paths starting with
`OldSource/` in the code and docs point there.
## Toolchain
@@ -23,24 +24,19 @@ between peers by name. Clients: a C DLL, CLI tools, a Python module. An
(`Source/rust-toolchain.toml`, 1.100.0, MSVC; Visual Studio 18 has the
linker).
- `Source\check.ps1` runs what CI runs; it must pass before a step is done.
- PureBasic 5.73 and 6.40 for `OldSource/`, see `OldSource/CLAUDE.md`.
## Working rules
- **Commit only when the owner asks**, on a branch (`revamp`), not `master`.
- **Follow the plan's order** (`revamp.md`, "Plan"); a step is done when its
tests pass and its docs are updated, then its status goes in the table.
- **`OldSource/` is the reference:** don't change it beyond keeping it
building and passing, unless asked.
- **Decisions go in `revamp.md`**: moved to "Decided" only when the owner
decides, with the date.
- **Use existing crates** rather than reimplementing (MessagePack is `rmp-serde`).
- **Files mix CRLF and LF:** edits must keep each file's line endings
(`Source/` is LF, the docs at the root and in `OldSource/` mostly CRLF).
(`Source/` is LF, the docs at the root mostly CRLF).
- **Bash tool heredocs collapse `\\`:** write edit scripts to files, or use
the Edit tool.
- **Run exes from a build folder** (`OldSource\Build\`, `Source\target\`):
- **Run exes from a build folder** (`Source\target\`):
the antivirus blocks them in temp folders.
- **Generated keys and certificates never go in git** (`Build/`,
`target/`). The one exception: `OldSource/Examples/*/` commit theirs on
purpose (public, example-only, marked so).
- **Generated keys and certificates never go in git** (`target/`).