mr-nice (mr-nice) opened
Hi all, webui --read-only does not show any bugs on my test build. But without this flag I see all bugs and can create new bugs as well.
Steps to reproduce:
clone git-bug build the latest version git-bug version shows git-bug undefined 9427c459ab32 go1.25.1 X:nodwarf5 linux amd64 git-bug pull
The following command shows all bugs the termui shows I can even enter new bugs with firefox git-bug webui --no-open --log-errors -p 40053
The following command shows no bugs at all git-bug webui --no-open --log-errors -p 40053 --read-only
Is this the expected behaviour? If true it would be nice to have an option for anonymous view?
Why I would like to see all bugs as anonymous user?
My current plan is to use git-bug webui to show bugs on each of my cgit repository listings.
Then I want to allow anonymous users to send a email with the bug id to reply on the bug or create new bugs. Then having a daemon on my server which has access to my git repository and create the user from the email header remove all non alphanumeric characters and check with a bad words list. Then the daemon would use git-bug to enter the bug or add the comment. This would also allow to use mailing lists to comment on bugs or create bugs. Sort of what patchwork is for "pull requests"
Second I want to set up a simple web form to do the same thing.
Another idea I might be able to come up with is a set of git hooks with a of a proof of work mechanism which also restricts the access to only ref/bugs but I need to do more research on this one.
Thanks and happy hacking :)