don't leak the existence of gotd repositories to unrelated user accounts
commitbe23710aafb9ce026a25272cb07826fd10361e87
authorStefan Sperling <stsp@stsp.name>
Mon, 6 May 2024 17:41:34 +0000 (6 17:41 +0000)
committerThomas Adam <thomas@xteddy.org>
Mon, 6 May 2024 21:33:52 +0000 (6 22:33 +0100)
tree2e26bc758d06c7876fa4a61950d3fde78645651e
parentcaee5476c9a132618334bc76e9e8dd53191dba1c
don't leak the existence of gotd repositories to unrelated user accounts

In particular, this prevents anonymous user accounts from discovering
the existence of other private repositories served by gotd by correctly
guessing the name of a private repository. They still wouldn't have read
or write access but in some cases even knowledge about the existence of
a particular repository could be cause for concern.

ok op@
gotd/auth.c
regress/gotd/Makefile
regress/gotd/repo_read_access_denied.sh
regress/gotd/repo_write_readonly.sh