Skip to content

fix(apiserver): return 400 instead of 500 for missing webhook secret#805

Merged
gabriel-samfira merged 1 commit into
cloudbase:mainfrom
cbartz:fix/missing-webhook-secret-400
Jul 3, 2026
Merged

fix(apiserver): return 400 instead of 500 for missing webhook secret#805
gabriel-samfira merged 1 commit into
cloudbase:mainfrom
cbartz:fix/missing-webhook-secret-400

Conversation

@cbartz

@cbartz cbartz commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

I encountered an issue when trying to create an organisational entity: the server responded with a 500 error code, the root cause of which was a missing webhook secret.

In that case, I believe GARM should return a 400 error code instead of a 500 error code.

Signed-off-by: Christopher Bartz <christopher.bartz@canonical.com>
@gabriel-samfira gabriel-samfira merged commit 3bf2cb0 into cloudbase:main Jul 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants