Dev.to Security 🔐 Cybersecurity 👁 1 📖 1 min read

mTLS proves which service called you — not what it may do

mTLS (and client certificates) are great at authentication for service-to-service calls: you learn which caller is on the wire. That is not authorization. A trusted billing-worker identity still must not delete invoice

Auth By Example
Auth By Example

Posted on Sep 22

mTLS proves which service called you — not what it may do

mTLS (and client certificates) are great at authentication for service-to-service calls: you learn which caller is on the wire.

That is not authorization.

A trusted billing-worker identity still must not delete invoices, export another tenant's PII, or hit admin-only routes just because the TLS handshake succeeded. Treat the verified service identity as the subject, then check action + resource (+ tenant) the same way you would for a user.

Otherwise every compromised or overly-broad service account becomes a skeleton key.

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.