Password authentication is required for packages uploading. Passwords
are dynamically changed through the FIFO file. You have to create it and
-use in @option{-passwd} option:
+use in @option{-passwd} option. Optionally, to list currently present
+logins use another FIFO and @option{-passwd-list} option:
@example
-$ mkfifo passwd
-$ gocheese -passwd passwd ...
+$ mkfifo passwd passwd-list
+$ gocheese -passwd passwd -passwd-list passwd-list ...
@end example
Then you must feed it newline-separated records in following format:
@example
-username:hashed-password
+username:hashed-password[:ro]
@end example
Where @code{hashed-password} is in one of following algorithms:
To get Argon2i hashed-password you can use any of following tools:
@itemize
- @item @code{go get @url{https://github.com/balakhonova/argon2i,
- github.com/balakhonova/argon2i}} (Go)
+ @item @code{go install @url{https://github.com/balakhonova/argon2i,
+ github.com/balakhonova/argon2i@@latest}} (Go)
@item @url{https://github.com/p-h-c/phc-winner-argon2} (C)
@end itemize
@end table
+Optional @code{:ro} flag forbids user to upload packages, but allows
+read-only access if @option{-auth-required} is enabled.
+
To add or update password entry:
@example