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

An internal network is not a permission

If a service is only reachable on a private VPC, that is network isolation — not authorization. A misrouted request, a compromised host, a future public exposure, or someone testing with curl can still hit that endpoint

Auth By Example
Auth By Example

Posted on Sep 20

An internal network is not a permission

If a service is only reachable on a private VPC, that is network isolation — not authorization.

A misrouted request, a compromised host, a future public exposure, or someone testing with curl can still hit that endpoint. Treat every request as untrusted until you check who the caller is and what they may do.

Separate the layers:

  • Network controls shrink the blast radius
  • Authentication answers who is calling
  • Authorization answers whether that caller may perform this action on this resource

Do not skip the last step because the first one feels safe.

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.