Securing endpoint with authentication #6334
-
Feature descriptionI have a non standard case with management endpoint. I need a management endpoint because my micronaut application is inside kubernetes clusters (/health & /prometheus in my case) on another port thanks to The application allow final users to do http request and on the whole internet without restriction and all endpoints can be reach by the final users (by a lot of different way, blacklist the url of the endpoint is not an option in my case, since user can inject some bash script and do a simple curl command). So I need to secure this endpoint, my final usage will be have a Basic Auth on this endpoint (that is compatible with k8s). I can work on the PR about that, but before working on it, I need some approval on the way to handle it. I see 2 options:
The second will only to deal with a lot of case by code (my preferred one). What do you think ? any suggestion ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Converting this to a discussion |
Beta Was this translation helpful? Give feedback.
-
Sounds like you should replace the |
Beta Was this translation helpful? Give feedback.
Sounds like you should replace the
EndpointsFilter
with your own implementation