Possible to add custom authentication and access control to camunda cockpit UI?

We are trying to expose camunda cockpit to support staffs to troubleshoot the issue. So we are looking for ways to apply authentication and accesscontrol to each of the endpoints consumed by camunda cockpit is that possible?

We are using embedded camunda

Can you just use the built in authentication?
What kind of things are you trying to halt access to and why?