Reputation: 125
Trying to restrict certain user from accessing specific paths defined in swagger file. Using IAM roles there is way to restrict a user by giving specific access to one specific Endpoint (providing access to only roles/servicemanagement.serviceConsumer & roles/servicemanagement.serviceController for that particular endpoint), but not able to find a way to restrict a user to access on specific path of that endpoint.
For example: Our cloud Endpoint swagger definition contains 3 path ('/path1', '/path2', '/path3'). The requirement is to have user1 only access and see definition of only '/path1' but not others, and user2 should be able to and see definition of '/path2' & '/path3'.
Upvotes: 1
Views: 116
Reputation: 5829
Currently this is not possible in Cloud Endpoints.
If you really need this functionality I would suggest you to create a Feature Request in Google's Issue Tracker, that way the GCP team will know you are interested on the functionality and maybe implement it in the future.
Upvotes: 1