Latest / CyberSecurity Summary / Cloud Native Data Security with OAuth: A Scalable Zero Trust Architecture
Transcript
- 0:00Speaker 1: Welcome to the deep dive. We're here to help you
- 0:02Speaker 1: get really well informed on some of today's well most
- 0:04Speaker 1: critical topics. And today we're plunging right into the digital
- 0:09Speaker 1: nervous system of our modern world. APIs Application programming interfaces.
- 0:14Speaker 1: I mean they are the invisible glue holding our digital
- 0:17Speaker 1: lives together. Aren't they Your banking app, your smart thermostat,
- 0:20Speaker 1: even websites. APIs are basically the new platforms for business innovation.
- 0:24Speaker 1: They power well almost every digital process you can think of.
- 0:27Speaker 1: Butt and this is a big butt. With this huge
- 0:29Speaker 1: reach comes a critical challenge. Security. It often lags behind
- 0:34Speaker 1: the innovation curve, which makes APIs unfortunately prime targets for
- 0:38Speaker 1: bad actors trying to get their hands on valuable business
- 0:40Speaker 1: data think personal customer info, sensitive IP, you name it.
- 0:44Speaker 1: Securing these digital gateways is just paramount. Imagine the nightmare right,
- 0:48Speaker 1: a single compromised API opening the floodgates. So today we're
- 0:52Speaker 1: going to build a piece by piece that zero trust
- 0:55Speaker 1: fortress you need. Or deep dive today is into cloud
- 0:57Speaker 1: native data security. With OOF, we're drawing directly from the A.
- 1:00Speaker 1: Riley book by Gary Archer, Judith Karr, and because Strosnovski
- 1:03Speaker 1: over at Curity ab Our Mission to give you a
- 1:05Speaker 1: shortcut a way to get truly well informed about securing
- 1:08Speaker 1: modern cloud native apps, especially around authentication and authorization, those
- 1:13Speaker 1: tricky bits.
- 1:14Speaker 2: Yeah, exactly, and the book really hammers home that specifically
- 1:17Speaker 2: two point zero. It's it's more than just a standard protocol,
- 1:21Speaker 2: you know, it's a powerful framework. It gives you the
- 1:23Speaker 2: tools to protect that sensitive data, enforce dynamic access controls.
- 1:27Speaker 2: But just reading this spec isn't enough. True mastery comes
- 1:31Speaker 2: from using it to build a scalable, zero trust architecture.
- 1:35Speaker 2: So then this deep dive, we'll connect the dots right
- 1:37Speaker 2: between digital identity and API security, not just what it is,
- 1:41Speaker 2: but why it matters and crucially, how you actually deploy
- 1:44Speaker 2: these solutions in modern cloud native setups. How you can
- 1:48Speaker 2: externalize that complex security stuff away from your application code
- 1:51Speaker 2: is actually less painful than you might think. It brings
- 1:54Speaker 2: a lot of benefits.
- 1:55Speaker 1: Okay, So to really get why with is so important, though,
- 1:58Speaker 1: maybe let's rewind a bit, take us back back to
- 2:00Speaker 1: say twenty ten. What did API security even look like then?
- 2:03Speaker 1: How limited was it?
- 2:05Speaker 2: Well? Right back then, yeah, it was a different world.
- 2:06Speaker 2: If you were building something digital, it was likely a
- 2:09Speaker 2: single website, mostly talking to a browser client. Users logged
- 2:13Speaker 2: in with a user name of password, and the website
- 2:16Speaker 2: gave them an authentication cookie. Simple, yes, but incredibly limited.
- 2:20Speaker 1: In scope, right, simple but brittle. So contrast that with
- 2:23Speaker 1: today's API first reality. What's the single biggest challenge this
- 2:27Speaker 1: shift created that, like the old cookie model just couldn't
- 2:30Speaker 1: cope with.
- 2:31Speaker 2: It's the sheer distribution and the diversity of clients, that's
- 2:35Speaker 2: the main thing. APIs aren't just internal plumbing anymore. They're
- 2:38Speaker 2: actual business products. They get consumed by mobile apps, by
- 2:41Speaker 2: single page web apps, IoT devices, other back end systems.
- 2:45Speaker 2: The old cookie model it just couldn't scale. It couldn't
- 2:48Speaker 2: authenticate users and authorize access across all those different contexts,
- 2:52Speaker 2: not consistently, not securely. This whole metamorphosis to digital natives,
- 2:57Speaker 2: as the book calls it, it demands something more robust,
- 3:00Speaker 2: more decentralized.
- 3:02Speaker 1: And that's the cue forth two point zero and open
- 3:04Speaker 1: ady connect. Right, they were basically born to solve these
- 3:07Speaker 1: modern complex problems.
- 3:09Speaker 2: Absolutely, they represent a really fundamental shift in how we
- 3:13Speaker 2: think about securing access to valuable data. And oh, with
- 3:16Speaker 2: two point zero it lets us implement this idea of
- 3:18Speaker 2: zero trust security, which isn't just a buzzword. You know,
- 3:22Speaker 2: it's a real shift away from just guarding the perimeter.
- 3:24Speaker 2: It's about pervasive verification. The key insight OTH brings is
- 3:29Speaker 2: how it helps you operationalize zero trust. For APIs, you
- 3:32Speaker 2: could externalize trust decisions, apply consistent authorization even inside your network.
- 3:38Speaker 2: It dismantles that whole flawed idea that inside is safe.
- 3:41Speaker 2: You have to authenticate and authorize every single caller, every request. External,
- 3:45Speaker 2: internal doesn't matter.
- 3:46Speaker 1: Okay, So if the authorization server is the brain, the
- 3:49Speaker 1: central controller, what's the actual currency it deals in? What
- 3:53Speaker 1: does it issue to grant that access? What's at the
- 3:56Speaker 1: very heart of oath.
- 3:58Speaker 2: That would be the access token. You could think of
- 4:00Speaker 2: it as an API message credential. It's basically a powerful
- 4:03Speaker 2: tech string. It carries permissions, It grants access to specific
- 4:06Speaker 2: business data, and crucially this is really important. It must
- 4:09Speaker 2: be designed for least privilege only the absolute minimum access
- 4:12Speaker 2: needed for that specific client to do its job.
- 4:15Speaker 1: Limits the blast radius. If something goes wrong.
- 4:17Speaker 2: Exactly limits the blast radius. And the authorization server is
- 4:20Speaker 2: the component that manages all this. It externalizes most of
- 4:23Speaker 2: that low level security complexity away from your clients, away
- 4:26Speaker 2: from your APIs. It handles authenticating the user if there
- 4:30Speaker 2: is one, and then it issues that access token. Critically,
- 4:34Speaker 2: it keeps the user's credentials, their password or whatever they use,
- 4:38Speaker 2: completely separate from the client application.
- 4:40Speaker 1: Okay, for our listeners who are probably already using some
- 4:43Speaker 1: of this stuff, let's dig into the recommended flows for
- 4:45Speaker 1: getting these tokens. What's something that often gets maybe overlooked
- 4:49Speaker 1: or misunderstood even when people are using best practices, Like
- 4:53Speaker 1: the code flow with PKCE.
- 4:55Speaker 2: Right, the code flow with PKCE, that's PKCE proof key
- 4:58Speaker 2: for code exchange is yeah, the absolute go to for
- 5:02Speaker 2: pretty much any platform specific app dot, web, mobile, desktop.
- 5:07Speaker 2: It's strong because the user logs in directly with the
- 5:09Speaker 2: authorization server. The client app never sees the password that
- 5:13Speaker 2: prevents credential theft by the client itself. But the really
- 5:16Speaker 2: critical insight about PKCE. The code flow seems solid, but
- 5:20Speaker 2: early on people found this subtle but really nasty vulnerability,
- 5:26Speaker 2: authorization code interception, especially on mobile. The genus of pkcees
- 5:30Speaker 2: and just like a checksum, it's this clever cryptographic binding.
- 5:34Speaker 2: It ties the authorization code specifically to the client session
- 5:37Speaker 2: that started the flow that makes the interception attack basically impossible.
- 5:41Speaker 2: So yeah, it's a small addition, but absolutely vital for
- 5:44Speaker 2: securing public clients. Always use PKCE, Always use PKC.
- 5:48Speaker 1: Got it. What about other scenarios?
- 5:50Speaker 2: Well, for devices that don't have easy input, like smart
- 5:53Speaker 2: TVs or maybe some I gadgets, there's the device flow
- 5:57Speaker 2: looks the user authenticate on their phone or laptop instead.
- 6:00Speaker 2: And then for machine to machine communication where there's no
- 6:02Speaker 2: human user involved, like went back end API calling another,
- 6:05Speaker 2: you use the client credentials flow. Important note those access
- 6:09Speaker 2: tokens have no user data in them, They just authorize
- 6:11Speaker 2: the client application itself, and finally you've got the refresh
- 6:15Speaker 2: token flow. This is how clients get fresh access tokens
- 6:18Speaker 2: when the old ones expire, without forcing the user to
- 6:20Speaker 2: log in again and again. The refresh token itself is
- 6:23Speaker 2: usually opaque, kept confidential between the client and the authorization server.
- 6:27Speaker 1: Makes sense, so just as important. What should people actively avoid?
- 6:32Speaker 2: Oh? Definitely number one, avoid the password flow explicitly, don't
- 6:37Speaker 2: use it. It completely breaks the oath model by giving
- 6:40Speaker 2: the client the user's actual password. Big security risk.
- 6:43Speaker 1: Right undermines the whole point.
- 6:45Speaker 2: Exactly, also avoid the implicit flow. It is known security
- 6:49Speaker 2: weaknesses like access tokens potentially ending up in browser history
- 6:52Speaker 2: or server logs because they're in the URL fragment. Both
- 6:55Speaker 2: of these are problematic enough that the upcoming O of
- 6:58Speaker 2: two point one specifications actually moving them entirely. It's all
- 7:01Speaker 2: about consolidating the current best practices.
- 7:03Speaker 1: Okay, so oheth gives us authorization what you can do,
- 7:06Speaker 1: but often you also need to know who is doing it.
- 7:09Speaker 1: How does open id connect or OIDC build on top
- 7:12Speaker 1: of OTH to handle the identity part?
- 7:14Speaker 2: Right, That's a perfect way to put it. OIDC is
- 7:16Speaker 2: an authentication layer built right on top of two point zero.
- 7:19Speaker 2: Oh is about authorization. OIDC is about authentication who you are.
- 7:24Speaker 2: It introduces a new type of token, the ID token.
- 7:27Speaker 2: Now unlike the access token, which really should be treated
- 7:30Speaker 2: as opaque by the client.
- 7:31Speaker 1: Meaning the client shouldn't try to read it.
- 7:33Speaker 2: Exactly, the client shouldn't parse the access token, but the
- 7:36Speaker 2: ID token the client can and should parse it. It
- 7:40Speaker 2: contains information about the user about the authentication event itself.
- 7:44Speaker 2: You get claims like sub that's the user's unique subject
- 7:47Speaker 2: identifier or maybe off time, which tells you when they
- 7:50Speaker 2: last logged in. It's a really crucial distinction. ID token
- 7:52Speaker 2: is for the client, who's the user access token is
- 7:55Speaker 2: for the API. What can this request do?
- 7:58Speaker 1: And I think OIDC also provide something called the user
- 8:01Speaker 1: info endpoint for more profile data.
- 8:04Speaker 2: Yes, that's another way. If the client needs more profile
- 8:06Speaker 2: details about the user beyond what's in the ID token,
- 8:09Speaker 2: it can use the access to open it received to
- 8:11Speaker 2: make a call to the user info endpoint at the
- 8:13Speaker 2: authorization server and fetch that data securely.
- 8:16Speaker 1: Okay, stepping back a bit, you mentioned two point one
- 8:20Speaker 1: consolidating things. Are there other evolutions happening? Oh?
- 8:24Speaker 2: Yeah, the standard space is always moving. Two point one
- 8:27Speaker 2: is about cleaning up and codifying best practices like we discussed.
- 8:31Speaker 2: But looking further out you have emerging things like digital
- 8:34Speaker 2: Credentials protocols or DCP. This is really interesting stuff. It
- 8:38Speaker 2: allows users to manage their own identity attributes, think verifiable
- 8:41Speaker 2: credentials in digital wallets on their devices, and these could
- 8:45Speaker 2: potentially combine with ovos for authentication in the future, giving
- 8:48Speaker 2: users much more control.
- 8:49Speaker 1: Fascinating. So we've got the concepts down oth authorization OIDC
- 8:53Speaker 1: for identity access tokens, different flows. How do these pieces
- 8:57Speaker 1: actually fit together in a modern cloud native architecture? How
- 9:01Speaker 1: do you build that defensive posture.
- 9:02Speaker 2: It's really about separation of concerns, making each component do
- 9:06Speaker 2: its job well. First, you have the authorization server. We've
- 9:10Speaker 2: talked about it. It's the central brain identity management, user authentication,
- 9:15Speaker 2: issuing tokens. It's designed to be adaptable, often extensible. Then
- 9:20Speaker 2: usually have an API gateway. This acts as the front
- 9:22Speaker 2: door to your APIs. It handles things like routing, rate limiting,
- 9:26Speaker 2: maybe some basic checks, but critically it can also perform
- 9:29Speaker 2: token termination.
- 9:30Speaker 1: Token termination. Okay, you mentioned that earlier, the phantom token pattern.
- 9:33Speaker 1: It sounded really clever. Can you unpack how that helps
- 9:36Speaker 1: optimize things?
- 9:37Speaker 2: Yeah, it's a great pattern. So the client application, maybe
- 9:40Speaker 2: a mobile app or SPA, receives an opaque access token,
- 9:43Speaker 2: just a random looking string confidential reveals nothing. The API
- 9:48Speaker 2: gateway gets this opaque token, but instead of just passing
- 9:51Speaker 2: it straight through to the back end API, it introspects it.
- 9:56Speaker 2: That means the gateway makes a quick secure call back
- 9:58Speaker 2: to the authorization server, saying eight is this token valid
- 10:01Speaker 2: and what's inside it? If the authorization server says yep,
- 10:05Speaker 2: it's valid here the permissions and user info. The gateway
- 10:08Speaker 2: then translates that opaque token into a JWT access token.
- 10:12Speaker 1: Ah a json web tooken right.
- 10:14Speaker 2: A self contained sign token, and that JWT is what
- 10:17Speaker 2: gets sent to the upstream API. So you get the
- 10:19Speaker 2: best of both worlds. The client gets confidentiality opaque token,
- 10:23Speaker 2: the internal API gets a verifiable token JWT. It can
- 10:27Speaker 2: validate locally, maybe check the signature, read the claims without
- 10:31Speaker 2: needing another network hop back to the authorization server. Better performance,
- 10:34Speaker 2: better security posture.
- 10:35Speaker 1: Overall, that is clever. Okay, so gateway handles entry and
- 10:38Speaker 1: token translation. What about really fine grained permissions like this
- 10:42Speaker 1: user can view reports but only for their own department.
- 10:45Speaker 2: Good question. That's where a policy engine comes in, often
- 10:48Speaker 2: called an entitlement management system or EMS. This is where
- 10:52Speaker 2: you define and enforce your detailed centralized access control policies
- 10:57Speaker 2: externalize from your application code, which is key for consistency
- 11:01Speaker 2: and manageability. You can implement different models here. Role based
- 11:04Speaker 2: access control r BAC, attribute based access control ABAC, maybe
- 11:09Speaker 2: even relationship based access control REBAC.
- 11:12Speaker 1: Can you give an example of a policy engine?
- 11:14Speaker 2: Sure a popular one in the cloud data space is
- 11:17Speaker 2: Open Policy Agent ORPA. OPA is designed to run as
- 11:21Speaker 2: a sidecar container right alongside your API service. Your API
- 11:24Speaker 2: gets a request with that JWT access token we just
- 11:27Speaker 2: talked about, it can then query its local OPA fied
- 11:30Speaker 2: car hey based on the claims in this token, like
- 11:32Speaker 2: user I, D department rolls, and the policy you have loaded.
- 11:36Speaker 2: Is this user allowed to perform this specific action on
- 11:38Speaker 2: this resource? OPA gives a yes no answer based on
- 11:41Speaker 2: the centralized policy. It's fast, it's local, and it makes
- 11:43Speaker 2: your authorization logic highly auditible and easy to update without
- 11:47Speaker 2: redeploying your main application code. Big win for security agility.
- 11:50Speaker 1: Okay, So summing up the responsibilities, the client gets the
- 11:54Speaker 1: token securely and sends it the API gateway routes maybe
- 11:57Speaker 1: does that phantom token translation, and the back end API
- 12:01Speaker 1: uses the claims in the final token, possibly checking with
- 12:04Speaker 1: a policy engine like OHPA to enforce the really specific
- 12:08Speaker 1: business rules.
- 12:09Speaker 2: Exactly, a nice clean separation of concerns.
- 12:12Speaker 1: Let's zoom back in on the access token itself. You
- 12:15Speaker 1: mentioned jatabts and opaque tokens. This choice seems pretty fundamental
- 12:19Speaker 1: for listeners designing systems. What are the main tradeoffs or
- 12:22Speaker 1: decision points when picking between these formats for different parts
- 12:26Speaker 1: of the flow.
- 12:26Speaker 2: That's a really crucial architectural decision. Yeah, it boils down
- 12:30Speaker 2: to a trade off between performance, verifiability, and confidentiality. So
- 12:35Speaker 2: data bets they are by value tokens self contained. All
- 12:39Speaker 2: the claims are right there inside the token itself protected
- 12:42Speaker 2: by a digital signature. API is often like jatabts because
- 12:45Speaker 2: they can verify the signature locally, check the expiry time,
- 12:49Speaker 2: read the claims, all without calling back to the authorization server.
- 12:52Speaker 2: That's good for performing.
- 12:53Speaker 1: There's always a butt.
- 12:54Speaker 2: The butt is that data bts are typically just signed,
- 12:57Speaker 2: not encrypted, meaning anyone who gets hold of the token
- 13:00Speaker 2: and can decode the payload part and read the claims inside.
- 13:03Speaker 2: If those claims contain sensitive information maybe PII or internal details,
- 13:08Speaker 2: Sending a raw DATABT directly to an untrusted client like
- 13:11Speaker 2: a browser or mobile app can lead to information disclosure.
- 13:15Speaker 2: Not ideal.
- 13:16Speaker 1: Okay, So jata BT's are readable. How do opaque tokens compare?
- 13:20Speaker 2: Opaque tokens are the opposite. They are by reference. They're
- 13:22Speaker 2: just random high entropy strings like a secure section ID. Essentially,
- 13:27Speaker 2: they act as a pointer, a reference back to the
- 13:29Speaker 2: actual token data, which is stored securely on the authorization server,
- 13:33Speaker 2: so they offer optimal confidentiality for the client. The client
- 13:35Speaker 2: gets this random string, it reveals absolutely nothing sensitive if intercepted,
- 13:40Speaker 2: no claims, no user info, nothing readable.
- 13:42Speaker 1: So the choice depends on who receives the token and
- 13:44Speaker 1: what they need to do with it.
- 13:46Speaker 2: Precisely, you typically choose opaque tokens for any public or
- 13:49Speaker 2: browser based clients to maximize confidentiality protect that data. But
- 13:54Speaker 2: for back end server to server communication where the recipient
- 13:57Speaker 2: is trusted and you want the performance benefit of local validation,
- 14:01Speaker 2: a JWT might be perfectly fine, even preferred. And that's
- 14:05Speaker 2: why patterns like the phantom token pattern or another one
- 14:08Speaker 2: called the split token pattern are so valuable. They let
- 14:11Speaker 2: you use opaque tokens externally and JWTs internally.
- 14:14Speaker 1: Breaking that gap makes sense beyond the format, how else
- 14:17Speaker 1: can we harden these access tokens make them even more secure?
- 14:21Speaker 2: Several ways. First, if you are using JWTs, always use
- 14:24Speaker 2: asymmetric signing algorithms like RS two five six or ES
- 14:28Speaker 2: two five six. This means the authorization server signs with
- 14:31Speaker 2: a private key and APIs verify with the corresponding public key,
- 14:35Speaker 2: much better than sharing a symmetric secret key everywhere, which
- 14:37Speaker 2: is harder to manage and rotate securely.
- 14:39Speaker 1: Okay, asymmetric signatures. What else?
- 14:41Speaker 2: Second, look into sender constrained tokens. This is a powerful technique.
- 14:46Speaker 2: Technologies like MTLs, mutual TLS, or dep hot p demonstrating
- 14:51Speaker 2: proof of possession allow you to cryptographically bind the access
- 14:55Speaker 2: token to the specific client instance that requested it. So
- 14:58Speaker 2: even if an attacker some how steals the token itself,
- 15:01Speaker 2: they can't use it unless they also have the client's
- 15:04Speaker 2: private key. It dramatically reduces the value of a stolen token.
- 15:07Speaker 1: Wow. Okay binding the token to the sender.
- 15:10Speaker 2: Yeah. And finally, the basics still apply. Rigorously enforce the
- 15:14Speaker 2: principle of least privilege in the token's permissions, don't grant
- 15:17Speaker 2: more access than absolutely necessary, and you short lived access
- 15:21Speaker 2: tokens keep the expiry time low minutes, not hours or days.
- 15:24Speaker 2: This minimizes the window of opportunity for an attacker if
- 15:27Speaker 2: a token is compromised. Refreshed tokens can handle keeping the
- 15:30Speaker 2: user session a live longer term.
- 15:32Speaker 1: Got it now? You mentioned browser based apps SPA's single
- 15:35Speaker 1: page applications. They have unique challenges right particularly around storing
- 15:38Speaker 1: tokens securely because of things like cross site scripting EXSS.
- 15:41Speaker 2: Oh absolutely, EXSS is a huge headache for spas. If
- 15:45Speaker 2: an attacker can inject malicious JavaScript into your application page
- 15:49Speaker 2: and you're storing your access tokens in somewhere JavaScript can reach,
- 15:52Speaker 2: like local storage or session storage, then that malicious script
- 15:55Speaker 2: can just grab the token and send it off to
- 15:57Speaker 2: the attackers server. Game over.
- 15:59Speaker 1: So storing tokens local storage is a bad idea.
- 16:01Speaker 2: Generally, yes, very risky for spas due to EXSS. The
- 16:06Speaker 2: recommended solution and it's become a pretty standard best practice
- 16:10Speaker 2: now is to use a back end for front end
- 16:12Speaker 2: or BFF.
- 16:13Speaker 1: Pattern BFF back end for frontend. How does that help?
- 16:16Speaker 2: The idea is your SPA doesn't handle the OOTH flow directly. Instead,
- 16:21Speaker 2: you have a lightweight back end service, the BFF that
- 16:24Speaker 2: serves your SPA static files and acts as the OOTH
- 16:27Speaker 2: client itself. So the BFF talks to the authorization server,
- 16:31Speaker 2: gets the access token and refresh token. Then crucially, the
- 16:34Speaker 2: BFF encrypts these tokens and stores them in secure HTTP
- 16:37Speaker 2: only cookies often with the same site strict attribute.
- 16:40Speaker 1: Set HTTP only, meaning JavaScript can't touch them exactly.
- 16:44Speaker 2: Http only cookies are inaccessible to JavaScript running in the browser,
- 16:49Speaker 2: so even if an attacker manages an EXSS injection, they
- 16:53Speaker 2: simply cannot read the tokens out of the cookie jar.
- 16:56Speaker 2: The BFF manages the tokens, attaches them to outgoing API
- 16:59Speaker 2: calls had refresh. The SPA itself never sees or handles
- 17:03Speaker 2: the raw tokens. It dramatically reduces the impact of XSS
- 17:07Speaker 2: on tokens theft, and the same site strict attribute helps
- 17:10Speaker 2: prevent cross set request forgery CSRF two. It's a really
- 17:13Speaker 2: solid pattern for browser security.
- 17:15Speaker 1: Okay, that BFF pattern sounds essential for spas. Let's shift
- 17:18Speaker 1: here slightly. We've talked a lot about the tokens and flows,
- 17:21Speaker 1: but what about managing the authorization server itself? Especially in
- 17:24Speaker 1: a cloud native world. This thing is critical infrastructure, right.
- 17:27Speaker 1: How do you keep it running reliably and manage upgrades
- 17:29Speaker 1: without downtime?
- 17:30Speaker 2: Absolutely critical. You treat it like any other Tier one
- 17:33Speaker 2: service in your cloud environment. Reliability is paramount, so you
- 17:38Speaker 2: leverage standard cloud native patterns first, high availability and clustering.
- 17:43Speaker 2: You don't run just one instance. You run multiple instances,
- 17:46Speaker 2: maybe as pods and Kubernetes, behind a load balancer or
- 17:49Speaker 2: a Kubernetes service to distribute traffic. If one instance fails,
- 17:53Speaker 2: others take.
- 17:53Speaker 1: Over makes sense redundancy. What about bigger failures, like a
- 17:57Speaker 1: whole region going down.
- 17:58Speaker 2: That's where multi region deploys come in. For true disaster recovery,
- 18:02Speaker 2: you run entirely separate, independent deployments of your authorization server
- 18:06Speaker 2: in different geographical regions, maybe US East and US West,
- 18:10Speaker 2: or across continents. You need data replication between them to
- 18:13Speaker 2: keep user sessions and configurations in sync, and then you
- 18:16Speaker 2: use something like Global Server load Balancing GSLB to direct
- 18:19Speaker 2: users to the nearest healthy region with automatic failover if
- 18:23Speaker 2: one region.
- 18:23Speaker 1: Becomes unavailable, okay, high availability, multi region. How do you
- 18:27Speaker 1: actually push out updates or new configurations in this kind
- 18:30Speaker 1: of setup without breaking things carefully?
- 18:33Speaker 2: Through robust deployment pipelines, You package your authorization server as
- 18:37Speaker 2: a container image, You promote that image through standard environments dev, test, staging,
- 18:43Speaker 2: and finally production. In production, you use deployment strategies that
- 18:47Speaker 2: allow for zero downtime upgrades, things like rolling updates blue
- 18:51Speaker 2: green deployments or Canary releases. This lets you gradually introduce
- 18:54Speaker 2: the new version, monitor it, and crucially quickly roll back
- 18:58Speaker 2: or downgrade if any problems show up.
- 18:59Speaker 1: And what about when things do go wrong? How do
- 19:02Speaker 1: you figure out what's happening quickly?
- 19:04Speaker 2: Good point troubleshooting is key. The authorization server needs excellent
- 19:08Speaker 2: observability features. That means providing useful, specific error responses, not
- 19:13Speaker 2: just generic failures. Integrating with distributed tracing systems like open
- 19:17Speaker 2: telemetry is huge. Every request should get a unique trace
- 19:20Speaker 2: ID that flows through the authorization server, the API gateway,
- 19:23Speaker 2: and your back end APIs.
- 19:25Speaker 1: So you can follow a single request across the whole
- 19:27Speaker 1: system exactly.
- 19:28Speaker 2: It makes pinpointing issues much faster. You also need detailed
- 19:31Speaker 2: technical logs for debugging and comprehensive audit logs for security
- 19:35Speaker 2: and compliance purposes. Who logged in, what tokens were issued,
- 19:38Speaker 2: any config changes, and of course good monitoring and alerting
- 19:43Speaker 2: on key metrics to spot potential threads or performance issues early.
- 19:47Speaker 1: Okay, that covers securing access and operating the server. Let's
- 19:50Speaker 1: turn to the very beginning of the flow, the user
- 19:54Speaker 1: proving who they are user authentication. It feels like we've
- 19:58Speaker 1: moved way beyond just passwords.
- 19:59Speaker 2: These oh definitely the landscape there is exploded, which is
- 20:02Speaker 2: great for both security and hopefully user experience. And again,
- 20:06Speaker 2: the beauty of modern flows like the ODC code flow
- 20:09Speaker 2: is that this complexity is largely externalized to the authorization server.
- 20:13Speaker 2: The client application just initiates the flow. The authorization server
- 20:16Speaker 2: then orchestrates whatever authentication method or methods are needed for
- 20:20Speaker 2: that user or context. The client doesn't really need to
- 20:22Speaker 2: know the specifics. The goal is consistency for the APIs downstream.
- 20:26Speaker 2: They should get a reliable, verified subclaim user ID in
- 20:30Speaker 2: the token, regardless of how the user actually proved their identity.
- 20:33Speaker 1: So the API doesn't need to care if I used
- 20:35Speaker 1: a password or my fingerprint or a magic link. As
- 20:38Speaker 1: long as the authorization server vouches for me with a
- 20:40Speaker 1: consistent ID, that is powerful. Let's talk about some of
- 20:44Speaker 1: those methods. What's exciting there.
- 20:46Speaker 2: Well, the big push is towards phishing resistant methods. Top
- 20:49Speaker 2: of the list there is passkeys built on the web. Often,
- 20:52Speaker 2: standard pass keys are a huge leap forward. They're typically
- 20:55Speaker 2: bound to a user's device, often secured by biometrics like
- 20:59Speaker 2: face ID or fingerprint or a device, passing their scope
- 21:02Speaker 2: to specific domains, making them highly resistant to phishing attacks,
- 21:06Speaker 2: much much better than passwords.
- 21:08Speaker 1: Okay, pass keys are the gold standard. What else is common?
- 21:11Speaker 2: You still see one time passwords OTP quite a bit
- 21:14Speaker 2: delivered via email, SMS or generated biauthenticator apps. They're better
- 21:19Speaker 2: than just a password, but generally not considered phishing resistant.
- 21:23Speaker 2: Social logins or using external identity providers like login with
- 21:27Speaker 2: Google or log in with Azure D are popular for convenience,
- 21:32Speaker 2: though you need to manage things like mapping those external
- 21:34Speaker 2: identities to your internal user accounts. For scenarios requiring higher
- 21:38Speaker 2: assurance about the user's real world identity, you get into
- 21:41Speaker 2: identity proofing processes, and as we mentioned, digital credentials protocols
- 21:46Speaker 2: DCP are emerging here, allowing users to present verified attributes,
- 21:50Speaker 2: and most good authorization servers are extensible, allowing you to
- 21:54Speaker 2: plug in custom user authentication methods. If you need to
- 21:56Speaker 2: integrate with, say a legacy database or a very specific
- 21:59Speaker 2: internal system, that's.
- 22:01Speaker 1: A lot of options. Are there also techniques for combining
- 22:03Speaker 1: these or making the experience smarter?
- 22:05Speaker 2: Yes, absolutely, Several key user authentication techniques layer on top
- 22:10Speaker 2: of the methods Multi factor authentication MFA is probably the
- 22:13Speaker 2: most well known. Combining two or more different types of factors.
- 22:17Speaker 2: Something you know, password, something you have OTP device, phone,
- 22:21Speaker 2: something you are biometric provides much stronger security than any
- 22:25Speaker 2: single factor alone.
- 22:26Speaker 1: Right, MFA is crucial.
- 22:27Speaker 2: Then there's step up authentication. This is a really neat
- 22:30Speaker 2: dynamic technique. Instead of forcing high security on the user
- 22:33Speaker 2: all the time, you might let them log in with
- 22:36Speaker 2: something simple initially, but if they try to access a
- 22:39Speaker 2: particularly sensitive resource or perform a high privilege operation, the
- 22:42Speaker 2: API can signal back to the authorization server, Hey, I
- 22:46Speaker 2: need stronger proof for this user. The authorization server can
- 22:50Speaker 2: then trigger an MFA challenge, maybe ask for a pass
- 22:52Speaker 2: key verification just for that sensitive step. It balances security
- 22:56Speaker 2: and user experience nicely.
- 22:58Speaker 1: Clever friction only one needed exactly.
- 23:00Speaker 2: You also have single sign on SSO, which aims to
- 23:03Speaker 2: reduce how often users need to log in across different applications.
- 23:07Speaker 2: Account linking helps manage identities when users authenticate via multiple
- 23:11Speaker 2: external providers, and advanced systems allow authentication actions and selection
- 23:15Speaker 2: logic basically custom rules to decide which authentication methods to
- 23:19Speaker 2: offer or require based on user type, location, device posture,
- 23:23Speaker 2: risk score or other contextual factors tailoring the experience.
- 23:27Speaker 1: And all of this from the first time a user
- 23:30Speaker 1: signs up, maybe self service through password resets or account recovery,
- 23:34Speaker 1: all the way to eventually decommissioning their account. That whole
- 23:37Speaker 1: life cycle is managed by the authorization server.
- 23:40Speaker 2: That's the goal. Yes, Centralizing that entire user authentication life
- 23:43Speaker 2: cycle management within the authorization server provides consistency, security, and auditability.
- 23:49Speaker 1: Wow, Okay, what an incredible journey we've been on. We
- 23:52Speaker 1: started with why we even need something like go out
- 23:56Speaker 1: in this API driven world. We dug into the core
- 23:58Speaker 1: bits like access token and flows PKCE. Then we looked
- 24:02Speaker 1: at the architecture of the authorization server API gateway policy
- 24:05Speaker 1: engines that cool phantom token pattern. We talked JWT's versus
- 24:09Speaker 1: opaque hardening tokens, protecting spas with BFFs, dot covered, operating
- 24:14Speaker 1: the authorization server reliably in the cloud, and finally explore
- 24:17Speaker 1: the whole universe of modern user authentication beyond passwords. That
- 24:21Speaker 1: was a lot.
- 24:22Speaker 2: It really ties together though a well designed ooth and
- 24:25Speaker 2: open ID connect implementation when you combine it with these
- 24:28Speaker 2: cloud native patterns like gateways policy engines and reliable operations.
- 24:32Speaker 2: It truly enables a powerful, scalable and secures zero trust architecture.
- 24:36Speaker 2: The core themes are externalizing that complex security logic, rigorously
- 24:40Speaker 2: applying these privilege staying adaptable with things like step up OFF,
- 24:43Speaker 2: and just generally keeping pace with both the evolving threats
- 24:46Speaker 2: and what users expect in terms of experience.
- 24:48Speaker 1: So for everyone listening, as you continue to build and
- 24:51Speaker 1: innovate in this digital world, really consider how adopting these standards,
- 24:56Speaker 1: creating what the book calls an unforgeable least privilege API
- 24:59Speaker 1: message credential, how that can fundamentally transform the trust and
- 25:03Speaker 1: the security posture around your business data, your user interactions.
- 25:07Speaker 1: What new possibilities does having this kind of robust, scalable
- 25:10Speaker 1: security foundation actually unlock for your next big digital initiative.
- 25:13Speaker 1: Something to think about,