"Bye" and 403 when trying to view subdirectories on some repos #2938
Labels
No labels
accessibility
bug
bug
infrastructure
Codeberg
contributions welcome
docs
duplicate
enhancement
infrastructure
legal
licence / ToS
please chill
we are volunteers
public relations
question
question
user support
s/Forgejo
s/Forgejo/migration
s/Pages
s/Weblate
s/Woodpecker
security
service
upstream
wontfix
No milestone
No assignees
8 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Codeberg/Community#2938
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Comment
Not sure if this is the right place to report this, but it looks like some sort of false positive related to bot-blocking, so here goes..
I followed a link to https://codeberg.org/freebsd/freebsd-ports/src/branch/main/sysutils/desktop-installer, and noticed a scary-looking red banner on top that says "Error 403 when calling /FreeBSD/freebsd-ports/lastcommit/ec77dc5a2c4c1aef7213dc7e06602e89979ae378/sysutils/desktop-installer: Bye".
I can load the main page of that repo just fine, but trying to view most of the direct subdirectories (by clicking on the links on the page) leads to a plaintext page that only says
Byeand an error 403 in the net log. This occurs regardless of login state.Lowercasing the username in the URL at least gets the webpage to load, but then the banner appears, suggesting that the
/lastcommitREST call might be triggering some kind of bot trap by getting the username "wrong".I've tried a repo on my own account, but the site works fine regardless of whether my username is used as-is or lowercased, so I'm not sure what is happening differently with the FreeBSD account's one 😕
It seems our temporary block has now become a permanent block.
http-request return status 403 content-type text/plain lf-string "Bye" if { path_beg /FreeBSD/freebsd-ports/src/ } || { path_beg /FreeBSD/freebsd-ports/lastcommit/ }I think this can be moved to only consider unauthenticated traffic and thus impact logged in users. But basically it's a heavy endpoint (thus also why it's loaded progressively) and was being heavily hammered by IPs that only made that request and no other requests.
We have an authenticated bot that downloads the https://codeberg.org/webxdc/xdcget/ repository every 15 minutes, it also just sees 403 and Bye...
Why is that? How can I get over it?
It started happening to me too... But in a GitHub actions to have a mirror here.
It fixed itself, without me having touched anything.
yo im getting same issue
It looks like you need to add SSH keys and authenticate: https://codeberg.org/user/settings/keys
I'm unable to push to my repo, instant Bye 403 message.
@davidhealey wrote in #2938 (comment):
add SSH/GPG keys to your account: https://codeberg.org/user/settings/keys
Why? I've never needed them before
it is it a shotgun debugging or a new policy?