3.2 KiB
3.2 KiB
Changelog
All notable changes to urapt will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased
0.1.0 - 2026-06-28
First public release. urapt is a self-hostable APT repository server with a
companion CLI for pushing and managing Debian .deb packages.
Added
- Server (
urapt-server): REST API + APT endpoint server.- SQLite storage (pure-Go
modernc.org/sqlite, no CGO) with embedded migrations. Only.debfiles are stored on disk, content-addressed by SHA-256 and reference-counted for deduplication. - Server-managed RSA-4096 OpenPGP signing key (
ProtonMail/go-crypto), generated on first run and stored armored in the database. - APT indices (
Release,Release.gpg,InRelease,Packageswith.gz/.xzcompression) generated on demand from the database and cached in memory; never written to disk. - Full APT model: repositories → distributions → components → architectures.
- Bearer-token auth for the REST API; HTTP Basic auth (password = API token) for private-repo APT reads. Public repos allow anonymous APT reads.
- First registrant becomes admin; repo-scoped permissions
(
read/write/read-write/admin) plus owner and server-admin roles. - Multipart package push with control-field extraction, list/show/delete, pool serving, and blob ref-count cleanup on delete.
- Audit log for mutating actions.
- SQLite storage (pure-Go
- CLI (
urapt): companion tool for pushing packages and managing repos.register,login,logout,whoami,token(create/list/revoke).repo(create/list/show/update/delete),member(add/update/remove/list).distro,component,archCRUD.push,pull,ls,show,rmfor packages.apt-confighelper that prints the exactaptsetup commands (key install, sources.list entry, and auth.conf snippet for private repos).
- Packaging:
Dockerfile(multi-stage distroless static build),docker-compose.yml, sampleurapt-server.toml.example. - Docs:
README.mdquick start, architecture overview, configuration reference, and security notes;PLAN.mdfull design blueprint.
Security
- Passwords are bcrypt-hashed (cost 12). API tokens are random 32-byte values stored only as SHA-256 hashes with a short display prefix; revocable.
- The OpenPGP private signing key is stored unencrypted in the SQLite database. This is acceptable when you control the database file; for stronger protection, restrict file permissions and back up the DB securely. Per-repo keys and key encryption-at-rest are planned.
- For internet-facing deployments, run behind a TLS-terminating reverse proxy (Caddy/nginx). Private-repo credentials must never travel over plain HTTP.
Known Limitations
- Single server-managed signing key (no per-repo keys yet).
- No web UI; all management is via the CLI.
- No rate limiting or brute-force protection on login endpoints.
- No source packages (
.dsc/.orig.tar.*) or AppStream metadata.