[Feature] Better error message when raw requests are denied for permissions reasons. #12206
Open
2 tasks done
Labels
API Call
Use case for API Server calls to fetch JSON data
Contribfest
Good first issues for KubeCon EU 2024
enhancement
New feature or request
triage
Default label assigned to all new issues indicating label curation is needed to fully organize.
Problem Statement
We tried to add an external data source call to the kubernetes api but faced the below ambiguous error from the kyverno api
The real error when we turned on verbosity 9 was that we were missing RBAC for the API call we were trying to make:
Solution Description
Instead of burying the real error at verbosity 8 the Kyverno client should react to code "403" errors and excalate up "forbidden" to the caller.
Alternatives
No response
Additional Context
I realize y'all don't control the K8s client necessarily, so such a request might be not feasible.
Slack discussion
No response
Research
The text was updated successfully, but these errors were encountered: