diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-03-12 16:17:19 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-03-12 16:17:19 -0400 |
| commit | 0c750027e913a773a98220c691f01b2391cdae69 (patch) | |
| tree | 1106ab79b90d0324edf9ff243193272000b91660 | |
| parent | 79f55b0b233258623062db3c916783b4d14bf14a (diff) | |
| download | buth-0c750027e913a773a98220c691f01b2391cdae69.zip | |
doc: remove authfs passwdhash file
| -rw-r--r-- | doc/auth.md | 2 | ||||
| -rw-r--r-- | doc/authfs.md | 7 |
2 files changed, 2 insertions, 7 deletions
diff --git a/doc/auth.md b/doc/auth.md index e509e44..d3a2924 100644 --- a/doc/auth.md +++ b/doc/auth.md @@ -8,7 +8,7 @@ This is how a new user registers himself in `authfs`, after which he can open se - Creates `/users/<username>/` - If it already exists, the username is taken; return error to client - Writes password to `/users/<username>/passwd` -- `authfs` ingests and hashes the password. Subsequent reads of `/users/<username>/passwdhash` will return the hash (`authfs` discards the cleartext password after it is hashed). +- `authfs` ingests and hashes the password. - If successful, client can now login to obtain a session ## Login diff --git a/doc/authfs.md b/doc/authfs.md index c3d0488..77545e2 100644 --- a/doc/authfs.md +++ b/doc/authfs.md @@ -3,7 +3,6 @@ `users/` `<username>/` `passwd` - `passwdhash` `login` `sessions/` `<id>/` @@ -11,16 +10,12 @@ `/users/<username>/` (d) To add a user, create the `<username>/` subdirectory. Authfs -automatically creates the `passwd`, `passwd`, and `login` files +automatically creates the `passwd`, and `login` files inside. Initially the password is nil and login is disabled. `/users/<username>/passwd` (w) Writing a (cleartext) password changes the user's password. -`/users/<username>/passwdhash` (r) -Read returns an Argon2id hash of the user's password (see -github.com/alexedwards/argon2id). - `/users/<username>/login` (rw) To log in and obtain a session, write the user's password to `login` (in cleartext). Then read from `login`. If the password was correct, |