Service-to-Service Authentication and Authorization
Service-to-Service Authentication and Authorization
Why?
-
Don’t just trust any request that hits your internal endpoints (even on cPanel!). You want zero trust even between your own microservices.
-
Prevents accidental or malicious calls from rogue services, or even compromised infrastructure.
How?
-
You already have JWT/OIDC for users. Reuse this for service-to-service auth:
-
Every service uses its own JWT when calling another service.
-
Each service validates the JWT (issuer, audience, expiry).
-
This is already mostly in place in your ecosystem!
-
Further:
-
Add scopes/roles to your JWTs to define what a given service can do.
Comments
Post a Comment