Before
- Every product has its own login logic
- Audit fields differ by product
- Security teams review five auth implementations
Module 1 of 8
Start with the Gmail, YouTube, and Google mental model: one account, many products, consistent identity.
Start here
Before
After
When you log in to Google once, you can open Gmail, YouTube, Drive, Calendar, and other Google products without signing in again for every product. That does not mean every product has the same permissions. It means there is a shared identity system and each product can trust who you are.
We want the same idea for a Kubernetes platform. A company may run a developer portal, data explorer, admin UI, reporting service, internal API, and job runner. Without a central design, every product adds its own login page, token parser, permission code, and audit format. That creates duplicate bugs and inconsistent security.
Put plain Envoy at the platform edge. Envoy receives traffic first, checks the request, validates what it can locally, asks a central authorization service when policy needs a decision, and only then forwards the request to the product service.
The product still owns business rules such as "can this user delete this invoice?" or "can this analyst open this table?" Envoy owns the shared front-door checks: is there a valid identity, is the token from a trusted issuer, is the audience correct, is the request allowed to reach this product, and what identity context should be forwarded.
Do not move every business rule to the edge. Envoy should not know every data row, invoice state, or product-specific workflow. Centralize cross-product policy and identity enforcement. Keep domain-level authorization close to the service that owns the data.
Start with this simple flow: user or service sends a request, Envoy checks identity, Envoy asks an auth service when the decision is not purely local, then the product receives a trusted request with identity context.
Real world
Production notes
Common mistakes
Security risks
Tradeoffs
Pros
Cons
Pros
Cons
Think like an engineer
Key terms
Proving who or what is making the request.
Deciding what that identity is allowed to do.
Single sign-on; a user logs in once and can access multiple trusted products.
A high-performance proxy often used as an API gateway, edge proxy, or service mesh data plane.
Exercises
Create a beginner-friendly platform map with five products and one central Envoy auth entry point.
Recap
Related resources