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

Merged bakashrot-cert into bakashrot as bakashrot cert, Made the programs smaller, Added a -HybridCrt switch

- `bakashrot cert ca|issue|revoke|show` (same options) replaces
  bakashrot-cert: aws-lc, the C runtime and clap once, 2.53 MB instead
  of 2.85 + 1.73 MB on Windows; guides, docs, release.py, Docker updated
- The tool built with its own profile, release-tools (panic = "abort",
  about 15% smaller); the DLL and the server keep unwind
- clap without colours and suggestions (40 KB, 9 crates fewer)
- SQLite without FTS3/FTS5, R-Tree, dbstat, STAT4, soundex(), extension
  loading and column metadata (LIBSQLITE3_FLAGS): the server 4.68 to
  4.37 MB; a storage test checks they're out
- build.ps1 / release.ps1 -HybridCrt (.cargo/hybrid-crt.toml): the UCRT
  from Windows, about 180 KB less per program, still nothing to install;
  static stays the default, README.txt says which
- revamp.md: what was weighed and left (UPX, fully dynamic CRT, nightly
  options, OMIT_* flags), aws-lc kept over Graviola (490 KB bigger) and
  ring (no ML-KEM)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 21:13:58 +01:00
parent 8597ef0aa8
commit 5b41a06d0c
26 changed files with 253 additions and 219 deletions
+8 -8
View File
@@ -10,7 +10,7 @@ example configs.
| Machine | What runs there | Files it gets |
|---|---|---|
| admin (any) | `bakashrot-cert` | `ca.key` stays here, never copied |
| admin (any) | `bakashrot cert` | `ca.key` stays here, never copied |
| server-1 | `bakashrot-server` | `ca.crt`, `server-1.crt`, `server-1.key`, `server.toml` |
| server-2 | `bakashrot-server` | `ca.crt`, `server-2.crt`, `server-2.key`, `server.toml` |
| kitchen | `bakashrot` (pushes to server-1) | `ca.crt`, `kitchen.crt`, `kitchen.key`, `client.toml` |
@@ -23,12 +23,12 @@ their hostnames or IPs. The clients can be on the servers' machines.
## 1. The certificates (admin)
```
bakashrot-cert ca --name "Lab CA"
bakashrot-cert issue --name server-1 --role peer --server
bakashrot-cert issue --name server-2 --role peer --server
bakashrot-cert issue --name kitchen --role sensor
bakashrot-cert issue --name dashboard --role dashboard
bakashrot-cert issue --name lab-py --role sensor --role dashboard
bakashrot cert ca --name "Lab CA"
bakashrot cert issue --name server-1 --role peer --server
bakashrot cert issue --name server-2 --role peer --server
bakashrot cert issue --name kitchen --role sensor
bakashrot cert issue --name dashboard --role dashboard
bakashrot cert issue --name lab-py --role sensor --role dashboard
```
A certificate is its name (the node) and its roles; the servers' configs
@@ -154,7 +154,7 @@ Failed to connect to server-1.lab:7000 (NotAllowed): none of visitor's roles (gu
takes them; it logs once that server-2 refused), start server-2: within
about 10 s every one is on dashboard, in order.
**Revoking.** On admin, `bakashrot-cert revoke dashboard.crt` writes
**Revoking.** On admin, `bakashrot cert revoke dashboard.crt` writes
`ca.crl`; copy it next to each server's `server.toml` (the `crl` above).
Within 5 s they reload it (`INFO ca.crl: reloaded, 1 revoked`), and the
certificate is refused, at its next connection or request: