Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: allow operators to provide custom rejection message #655

Open
flavio opened this issue Feb 29, 2024 · 0 comments
Open

Feature Request: allow operators to provide custom rejection message #655

flavio opened this issue Feb 29, 2024 · 0 comments

Comments

@flavio
Copy link
Member

flavio commented Feb 29, 2024

Is your feature request related to a problem?

As an operator, I would like to give more context to my users when an operation is rejected by a Kubewarden policy.
For example, I would like to point the users to an internal WIKI where the error message is explained and the remediation paths are illustrated.

Currently, the rejection message originated by a policy is the one hard coded by the policy author.

Solution you'd like

When deploying a policy, have a way to define an additional error message to be reported back to the user. Maybe this could be set on the ClusterAdmissionPolicy/Admission Policy CRD

Alternatives you've considered

No response

Anything else?

Technically speaking, we could add the user defined messages as Warnings inside of the AdmissionResponse object.

See here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants