Commit graph

13 commits

Author SHA1 Message Date
SW
8c69c1731d feat: JSON REST API /api/v1 with DB-managed Bearer tokens
- New endpoints: GET /api/v1/pools, GET /api/v1/pools/{slug}/next,
  GET/POST /api/v1/allocations, GET /api/v1/allocations/{id},
  POST /api/v1/allocations/{id}/release
- Bearer token auth; only SHA-256 hashes stored, plaintext shown once
- Token management GUI at /tokens (create, revoke, delete) linked in footer
- API actions audited with actor api:<token name>
- Fix latent transaction leak: replace manual BEGIN IMMEDIATE/COMMIT with
  begin_with(), which rolls back on drop; previously a failed allocation
  (e.g. disallowed prefix or full pool) returned a connection with an open
  transaction to the pool, causing 'database is locked' on later writes
- README: API documentation with curl examples
2026-10-09 14:25:17 +02:00
SW
6e24ce541a feat: rename to SUB-ALIGATOR, dark theme, pool deletion, header nav
- Rename app title to SUB-ALIGATOR (header, page titles, exports, README)
- Add dark amber-terminal theme with a header toggle, persisted in localStorage
- Add pool deletion (soft delete): allocations are kept in history and
  block the address space again when the same or an overlapping pool is
  re-added (re-enable on exact CIDR match, re-attach contained allocations)
- Reject new pools that overlap an enabled pool
- Move Home link into the page header, keep other links in the footer
- Load app.js globally via base template, add theme.js (CSP-safe, no inline JS)
2026-10-01 18:00:32 +02:00
SW
9ed12fa1d8 fix: close all modals on page load and before form submit 2026-10-01 15:21:57 +02:00
SW
4917bba468 debug: add logging and robust init to app.js 2026-10-01 15:06:58 +02:00
SW
a0ca704ac1 fix: move inline JavaScript to external file to comply with CSP 2026-10-01 14:48:16 +02:00
SW
406ff2f9c2 fix: add docker-entrypoint.sh to fix bind-mount permissions on clean installs 2026-10-01 14:37:17 +02:00
SW
d59de720c5 fix: replace native dialog element with div-based modal to fix stuck dialogs 2026-10-01 14:28:17 +02:00
SW
b4a89dd13e chore: translate .env.example to English 2026-10-01 14:24:30 +02:00
SW
5b77980cd7 fix: allow re-allocation of released subnets by removing global cidr unique constraint 2026-10-01 14:20:40 +02:00
SW
05bff739e0 fix: use Rust 1.89 in Docker builder to match Cargo.lock requirements 2026-10-01 14:12:28 +02:00
SW
6efe45ba55 fix: use Rust 1.85 in Docker builder for edition 2024 2026-10-01 14:09:45 +02:00
SW
147c6d32f1 feat: pool management, setup wizard, English UI and README, remove brew formula 2026-10-01 14:07:19 +02:00
SW
bc4eeef048 Initial implementation of IP Subnet Allocator 2026-09-30 22:09:57 +02:00