problem: internal communication requires a shared secret #12387
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?
Does your problem still exist on the latest Forgejo version?
Yes, the problem still exists (tested locally with the latest development version)
About your usage of Forgejo
Contributor of Forgejo
Member of the Forgejo security team.
Self-hosts Forgejo.
Co-Maintainer of Codeberg.org's Forgejo instance.
Problem description
This is issue was created as part of https://floss.social/@forgejo/116494296646568723.
There's a list of routes that only should be accessed internally.
codeberg.org/forgejo/forgejo@b6658076a9/routers/private/internal.go (L50-L85)They are not accessible unless you have the
INTERNAL_TOKENwhich is set in theapp.inifile.If you happen to be able to get the
INTERNAL_TOKENthese routes can be accessed as they are exposed over HTTP (assuming you didn't set).There's no real requirement for them to be exposed over HTTP, the callers of these APIs are expected to be on the same machine (CLI usage, git hooks execution).
Potential workarounds
INTERNAL_TOKEN.INTERNAL_TOKENcould be dropped here.Forgejo Version
N/A
Other details about your environment (software names and versions)
N/A
Solutions
Accepted solutions to address this problem will go here