I am trying to find out how can I isolate my Kubernetes Secrets to specific Service.
For example, let say I have two secrets with name private-key
and public-key
and two Kubernetes Services auth-service and gateway-service.
I want to provide private-key
secret to auth-service to generate token and provide public-key
to gateway-service to validate generated token. All Secrets and Services are in same namespace.
How can I restrict access of private-key
to only auth-service?