feat(logshipper): support dynamic OmniLogger credentials

- Add per-service OmniLogger credentials to core config and update subscriptions.
- Follow config pushes and enforce entry and request size limits.
- Requeue batches after transient send failures.
This commit is contained in:
Gabriel20xx committed 2026-11-20 21:45:45 +01:00
1 parent 76bf5916fe
commit 8701874efb
20 files changed
+4908 -61

No files matched your search

+1
View File
@@ -6,6 +6,7 @@ Shared account-management, TOTP, admin reset-code, and AuthGuard client primitiv
- `Totp` - RFC 6238 TOTP secret generation, provisioning URIs, and verification;
- `ResetManager` - a short-lived, one-time admin reset-code primitive printed to the server console;
- `AuthClient` - a client for a centralized AuthGuard instance's `GET /api/session/validate`, for services that want one shared identity instead of their own local user table. Mirrors `shared/backend/authclient` (Go) and `shared/packages/node-backend/src/authclient.js` (Node) - keep the three in sync if any of them changes shape. Additive: no project is wired up to use it just because this class exists. `setBaseUrl(url)` retargets an existing client's AuthGuard URL in place - the natural target for a ProjectConfigurator core-services push handler - so a client can be constructed with `new AuthClient("")` (usable right away, failing closed with `IllegalStateException` until a real URL arrives) rather than needing one known up front. Unlike the Go/Python/Node siblings, this package has no `coreconfig` module of its own: MegaBasterd, its only consumer, wires the `PUT /api/core-services/internal` route directly against a plain field holding the current `AuthGuardUrl`.
- `LogShipper` (`com.gabriel20xx.shared.logs`) - the client shipper for OmniLogger, the central log sink. It batches entries and POSTs them to `{OMNILOGGER_URL}/api/logs` from a daemon thread. `LogShipper.fromEnv(service)` returns null unless both `OMNILOGGER_URL` and `OMNILOGGER_INGEST_TOKEN` are set, so shipping stays off by default. Mirrors `shared/backend/logshipper` (Go) - keep the two in sync. Additive: it never prints, so the consumer's own logger remains the console output. JDK only (Java 8, `HttpURLConnection`).
## How this package is actually consumed