I have a Grape API application built in Ruby. And also some other microservices built in Python, Java etc. I have to restrict some of these microservices from accessing a particular API in this grape application.
Now, this is implemented using IP whitelisting. But every time the IP of other microservices gets changed, the code of grape application has also to be changed which is not stable.
Is there any better solution for this? Please help.