I have created a couple of web services under Joomla 4 that are simple enough calls to the same website to refresh a couple of fields when something else changes. In my JS code I have the 'X-Joomla-Token' along with my API token of the Super User. All works fine.
As the function is currently on a development/test machine and only visible to Registered users the risk of any security exposure is minimal however my concern is what happens if/when I need to have a public facing web service API and my Super User API token is visible to any hack that can use their browsers developers tools to find the token and cut/paste my super users token into their own code or service like Postman and create themselves a new Super User account or delete content using the core endpoints.
I understand that in the future web services wont be limited to using Super User accounts token and users/token with a lower level of access should be able to be used therefore is it a bit early to have publicly accessible API's with Joomla?
Are there approaches to hide or obfuscate the token so that it can't be used by others for their own naughtiness or do I need to wait until limited user/tokens are available to manage access to public endpoints?