1
votes

I have a kubernetes cluster and i have my application deployed in the pods. There is a endpoint URL of my application which i used to send POST requests from Postman. I need to provide some level of authentication to the my URL. I read the service account authentication using the JWT token.

How can i achieve the same feature in postman ??

I tried creating a new service account and took the secret and the associated JWT token as the Bearer token in postman. But it is not giving any kind of authentication.

https://medium.com/better-programming/k8s-tips-using-a-serviceaccount-801c433d0023

1

1 Answers

0
votes

Cant directly answer your question, but from what comes to my mind is that: Istio supports Token-based end-user authentication with JSON Web Tokens.

You should understand I havent tried to do that, but this looks for me very promising: Istio End-User Authentication for Kubernetes using JSON Web Tokens (JWT) and Auth0

And to test JWT-based authentication and authorization workflow thay exactly use Postman, as you prefer.