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:
@@ -1,52 +1,41 @@
|
||||
# BakaShrot
|
||||
A message store with replication.
|
||||
|
||||
> [!IMPORTANT]
|
||||
> Being rewritten in Rust, see [revamp.md](revamp.md): the new sources go in [Source/](Source/README.md).
|
||||
> The PureBasic implementation described below is in [OldSource/](OldSource/), where its commands are run from.
|
||||
|
||||
Servers take messages (usually JSON) per topic and node from authenticated clients,
|
||||
store them in SQLite, and replicate them to their peers by name.
|
||||
store them in SQLite, and replicate them to other servers by topic and node name.
|
||||
|
||||
> [!NOTE]
|
||||
> Meant as an internal tool on trusted machines and networks.
|
||||
|
||||
|
||||
## Features
|
||||
* Encrypted connections, both ends prove who they are (Ed25519, libsodium)
|
||||
* Replication between peers, by topic and node names
|
||||
* Attachments of any size, one per message
|
||||
* TLS 1.3 connections, both ends proving who they are with certificates from your own CA (`bakashrot-cert`)
|
||||
* Replication between servers, by topic and node names
|
||||
* Attachments, one per message, 1 GB by default
|
||||
* Per-topic retention
|
||||
* Read-only SQL queries on the stored messages
|
||||
* Clients:
|
||||
* A DLL, with PureBasic prototypes
|
||||
* CLI tools to push, read, query and list
|
||||
* A Python module over the DLL, without dependencies, as a wheel with the DLLs in it
|
||||
* A C library (`bakashrot.dll`, `libbakashrot.so`), with a C header and PureBasic prototypes
|
||||
* A CLI tool to push, read, query and list
|
||||
* A Python module over the library, without dependencies, as a wheel with the library in it
|
||||
|
||||
|
||||
## Building (the PureBasic implementation)
|
||||
Requires PureBasic 5.73 or 6.40+ and the submodules. From `OldSource/`:
|
||||
## Building
|
||||
Written in Rust, see [Source/README.md](Source/README.md): `cargo build --release` from `Source/`,
|
||||
`python release.py` for a release (Windows x64, Linux x86-64) with its smoke test.
|
||||
|
||||
* **Development:** `powershell -ExecutionPolicy Bypass -File Build.ps1` (into `Build\`)
|
||||
* **Release:** `powershell -ExecutionPolicy Bypass -File Release.ps1` (into `Release\`)
|
||||
* **Docker:** See [OldSource/Docker/README.md](OldSource/Docker/README.md)
|
||||
* **Python:** See [OldSource/Interactors/Python/README.md](OldSource/Interactors/Python/README.md)
|
||||
|
||||
See [OldSource/Examples/](OldSource/Examples/README.md) for ready-to-run setups,
|
||||
and [OldSource/Server/Config/schema.ini](OldSource/Server/Config/schema.ini) for every option of the server.
|
||||
See [revamp.md](revamp.md) for why it was rewritten, what was decided, and the plan.
|
||||
The PureBasic version it replaced (protocol 6) is in the git history: `OldSource/`, up to commit `68966a8`.
|
||||
|
||||
|
||||
## Cloning
|
||||
Use one of these commands to clone the repository and its submodules:
|
||||
```
|
||||
git clone --recurse-submodules https://github.com/aziascreations/BakaShrot.git
|
||||
git clone --recurse-submodules https://git.nibblepoker.lu/aziascreations/BakaShrot.git
|
||||
git clone https://github.com/aziascreations/BakaShrot.git
|
||||
git clone https://git.nibblepoker.lu/aziascreations/BakaShrot.git
|
||||
```
|
||||
|
||||
|
||||
## License
|
||||
All the code in this repo is released in the [Public Domain](LICENSE).
|
||||
|
||||
Please note that this doesn't apply to the required PureBasic archives.
|
||||
|
||||
The releases and the Python wheel include [libsodium](https://libsodium.org), under the [ISC license](OldSource/Libs/libsodium/LICENSE).
|
||||
The releases include third-party crates under their own licenses, listed with their texts in `THIRD-PARTY.txt`.
|
||||
|
||||
Reference in New Issue
Block a user