Skip to content
Discussion options

You must be logged in to vote

Thanks for the detailed analysis — that was a good starting point. I investigated further and found the actual root cause: it's not the reverse proxy or the route at all.
I reproduced it live against my instance (Semaphore 2.19.12, behind nginx):

  1. Bypassing nginx wasn't necessary — even directly through the reverse proxy, GET /api/project/1/repositories returned 200 and the POST works.
  2. The 404 only happens when ssh_key_id does not exist in the project's Key Store.
    Specifically:
# ssh_key_id: 0  ->  404 (empty body)
curl -X POST 'https://host/api/project/1/repositories' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer TOKEN' \
  -d '{"name":"Test","project_id":1,"git_…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Tealk
Comment options

Answer selected by Tealk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants