dymokomi/luce-auth
The account_identity export generates an owning random32-byte seed, derives a 1952-byte ML-DSA-65 public key, and creates/verifies randomized3309-byte possession proofs.
A library written in luce-base. Latest release 0.6.1.
Install#
luc add dymokomi/luce-authDocumentation#
luce-auth
Accounts for the Luce package registry, written in Luce Base over Prism storage. MIT OR Apache-2.0.
- Invitations. An operator creates single-use invitation codes; redeeming one creates an account with a password. Bootstrap publishes exactly one first user even under concurrent attempts.
- Passwords. Argon2id (64 MiB, three passes) with a per-account salt; only the hash is stored. Admission is bounded so a flood of attempts cannot exhaust the key-derivation budget.
- Sessions. Login issues a 256-bit bearer token. Only its SHA-256 is persisted, never the token. Sessions last until revoked.
- Scoped credentials. A session mints short-lived credentials bound to one repository and one scope (
git:writefor pushes), revocable independently.
Exports: auth (the Authority) and password_records. Consumers: luce-pkg-server.
Test
python3 tests/run.py --base ../luce-base/build/luce-base --luce ../luce/build/luce
python3 tests/sanitize.py # generated-C sanitizers, Linux
python3 tests/heap.py # macOS leak checks
Dependencies#
| Package | Version |
|---|---|
| dymokomi/luce-crypto | newest |
| dymokomi/luce-prism | newest |
Versions#
0.6.1
Browse source · pack · commit 2cbbe50912c1
SHA-256 9f8d72832a1d2bf27bbc14c6fdc46e5445a9bb452dac954f49fefc3d3ae0aa05
dependencies name no version