Latest / CyberSecurity Summary / Securing Cloud Applications
Transcript
- 0:00Speaker 1: Welcome to the deep dive. We're jumping straight into a
- 0:03Speaker 1: massive topic today, application security.
- 0:06Speaker 2: Huge.
- 0:07Speaker 1: Yeah, it can feel like trying to drink from a
- 0:08Speaker 1: fire hose, right, I mean it's just a quick look
- 0:10Speaker 1: on Amazon you see something like forty thousand books listed
- 0:14Speaker 1: under computer security.
- 0:16Speaker 2: It's staggering. Yeah, and you know that sheer volume can
- 0:19Speaker 2: leave developers feeling a bit overwhelmed, sort of wondering, Okay,
- 0:23Speaker 2: where do I even start, especially when you just want
- 0:25Speaker 2: to build secure applications?
- 0:27Speaker 1: Exactly what are the absolute must knows? So our mission
- 0:31Speaker 1: today really is to cut through some of that noise.
- 0:33Speaker 1: We're diving deep into the foundational security tech that well
- 0:36Speaker 1: every developer should probably have in their toolkit. We're basing
- 0:39Speaker 1: this on some great material focused on securing cloud applications. Okay,
- 0:44Speaker 1: think of this as maybe your shortcut getting to grips
- 0:47Speaker 1: with what's truly critical, you know, without getting totally lost
- 0:50Speaker 1: in the weeds.
- 0:50Speaker 2: Right. The goal is for you, the listener, to finish
- 0:53Speaker 2: this feeling knowledgeable, feeling confident, not just buried under like
- 0:59Speaker 2: a mountain of jargon.
- 1:00Speaker 1: Yeah, exactly, we want to build a strong foundation. What
- 1:03Speaker 1: are the core challenges, what are the essential tools, the
- 1:06Speaker 1: ideas the basics of secure development, and we're going to.
- 1:10Speaker 2: Kick things off by looking at two really fundamental security problems.
- 1:14Speaker 2: They're key starting points. Making sure our applications talk to
- 1:17Speaker 2: each other, securing those communication channels, and second, making sure
- 1:23Speaker 2: all the other software we rely on our dependencies don't
- 1:27Speaker 2: end up introducing weaknesses.
- 1:29Speaker 1: Got it. Communication and dependencies good starting points, definitely.
- 1:33Speaker 2: So let's begin with maybe how our view of security
- 1:37Speaker 2: responsibility has shifted over time.
- 1:39Speaker 1: Okay, let's unpack that because security, well, it used to
- 1:41Speaker 1: feel like it was purely a software thing, didn't you
- 1:44Speaker 1: worried about bugs in your.
- 1:45Speaker 2: Code pretty much? But things have really really changed. Our
- 1:49Speaker 2: sources point out how even the hardware itself, the silicon,
- 1:52Speaker 2: can have serious flaws.
- 1:54Speaker 1: Ah, you mean like Specter and meltdown exactly.
- 1:57Speaker 2: Those were vulnerabilities right down at the chip level, allowed
- 2:01Speaker 2: one user in a cloud environment to potentially peek into
- 2:03Speaker 2: another user's memory.
- 2:05Speaker 1: Wow, that's not a bug in my application code. That's
- 2:08Speaker 1: that's the foundation it's running on, precisely.
- 2:10Speaker 2: And what those hardware issues really drove home is that
- 2:13Speaker 2: security isn't just an app developer problem anymore. It's it's
- 2:17Speaker 2: a shared responsibility.
- 2:18Speaker 1: Right, it goes across the entire IT world, from the
- 2:21Speaker 1: hardware engineers designing chips all the way up to US
- 2:24Speaker 1: developers writing the app code.
- 2:27Speaker 2: The material we looked at nails. This calls it a
- 2:29Speaker 2: mindset shift. It says, regardless of your role in the
- 2:32Speaker 2: IT world, security is your responsibility. That's a fundamental change.
- 2:36Speaker 1: Yeah, it really is. And this isn't just some abstract
- 2:39Speaker 1: concept either. The financial hit from security failures it's enormous.
- 2:42Speaker 2: Oh, absolutely.
- 2:43Speaker 1: Our sources mentioned the average cost of a data breach
- 2:46Speaker 1: back in twenty twenty was nearly four.
- 2:47Speaker 2: Million dollars four million average.
- 2:49Speaker 1: And then you see these massive cases like Marriott getting
- 2:53Speaker 1: hit with one hundred and twenty six million dollar charge
- 2:56Speaker 1: or ecofax their cleanup cost was reportedly over one point
- 3:00Speaker 1: four billion billion.
- 3:02Speaker 2: Yeah, these numbers really show why it's a CEO level
- 3:05Speaker 2: problem now and why CISOs, the chief information security officers
- 3:10Speaker 2: have well increasingly high expectations for developers.
- 3:13Speaker 1: Makes sense, what kind of expectations.
- 3:15Speaker 2: They're not just looking for code that works anymore. They
- 3:17Speaker 2: expect you to use all the security features in the
- 3:20Speaker 2: products you adopt, follow the company's security standards, and crucially
- 3:25Speaker 2: design and build secure applications right from the start, so.
- 3:29Speaker 1: Thinking about security from day one, not just bolting.
- 3:31Speaker 2: It on at the end exactly. And they also want
- 3:33Speaker 2: developers to be active players in what's called DevSecOps.
- 3:38Speaker 1: Okay, dev scops, we'll circle back to that one, but
- 3:41Speaker 1: first let's tackle one of those initial problems, securing communication channels.
- 3:46Speaker 3: Right.
- 3:46Speaker 1: Think about a typical app structure. Right, You've got your website,
- 3:50Speaker 1: maybe mobile apps for Android iOS. That's the front end,
- 3:54Speaker 1: and then there's a back end, often arrest API over
- 3:57Speaker 1: HTTP doing all the work.
- 3:59Speaker 2: That's pretty calm, very common setup.
- 4:01Speaker 1: Now that communication, it often happens over networks we just
- 4:04Speaker 1: can't trust implicitly, like public Wi Fi at a coffee
- 4:07Speaker 1: shop or just the general.
- 4:09Speaker 2: Internet, absolutely prime territory for attackers. And that's exactly where
- 4:13Speaker 2: transport layer security or TLS comes into play.
- 4:16Speaker 1: TLS the lock icon in the browser.
- 4:19Speaker 2: That's the one. It's the industry standard protocol for encrypting
- 4:23Speaker 2: data while it's moving between systems. Okay, and the material
- 4:26Speaker 2: we have hammers this home as a bus practice, place
- 4:30Speaker 2: zero trust in all networks, including internal secure networks. Use
- 4:34Speaker 2: TLS everywhere.
- 4:35Speaker 1: Zero trust, So even inside your own company.
- 4:38Speaker 2: Network, especially inside. Just because it's labeled internal doesn't make
- 4:43Speaker 2: it safe. Remember that target breach a while back, Vague
- 4:46Speaker 2: attackers got in through credentials for the HVAC system, the
- 4:49Speaker 2: air conditioning. Once inside, they could move around.
- 4:52Speaker 1: Wow. So TLS isn't just for the outside world. It's
- 4:55Speaker 1: defense in depth, even internally.
- 4:57Speaker 2: Exactly, and mastering TLS understanding it is a kim skill
- 5:02Speaker 2: for developers. Our source mentions will dig deeper into it later. Good.
- 5:05Speaker 1: Okay, so that's communication. What about the other big starting
- 5:09Speaker 1: point securing dependencies?
- 5:11Speaker 2: Right, making sure the software components we didn't write but
- 5:14Speaker 2: that our applications rely on are secure. This has become
- 5:18Speaker 2: a huge attack vector.
- 5:19Speaker 1: Yeah, the whole software supply chain thing. It sounds kind
- 5:22Speaker 1: of abstract, but the impact, well, we mentioned Equifax earlier exactly.
- 5:26Speaker 2: That massive breach happened because they didn't patch a known
- 5:31Speaker 2: vulnerability into patchy struts.
- 5:32Speaker 1: Which is like a super common Java framework right.
- 5:35Speaker 2: Very widely used, and that one unpatched library costs them
- 5:39Speaker 2: potentially over one point four billion dollars.
- 5:42Speaker 1: Incredible.
- 5:43Speaker 2: And it's not just about known flaws and old software.
- 5:46Speaker 2: There was that events stream incident too. What was that
- 5:49Speaker 2: a malicious back door was deliberately added to a popular
- 5:53Speaker 2: JavaScript library. It was designed to steal bitcoin from developers
- 5:57Speaker 2: applications using that library.
- 5:59Speaker 1: Whoa, so someone actatively poison the well so to speak.
- 6:02Speaker 2: Correct. It shows even widely trusted open source components can
- 6:05Speaker 2: be compromised. These supply chain attacks work because modern apps
- 6:08Speaker 2: is pull in so many external pieces.
- 6:10Speaker 1: It's kind of mind boggling when you look under the hood.
- 6:12Speaker 1: The source gives an example. Spring boots starter data JPO
- 6:15Speaker 1: sound specific with that.
- 6:17Speaker 2: One dependency pulls in forty five other jar files from
- 6:20Speaker 2: fifteen different open source projects.
- 6:22Speaker 1: Forty five each one needing validation, each a potential entry
- 6:27Speaker 1: point exactly.
- 6:28Speaker 2: Each one needs to be checked kept up to date,
- 6:30Speaker 2: which is why staying on top of patches is just
- 6:33Speaker 2: non negotiable.
- 6:34Speaker 1: So how does that work in practice? A vulnerability gets.
- 6:36Speaker 2: Found right a cve a common vulnerability and exposure gets published.
- 6:41Speaker 2: Then the companies making vulnerability scanning tools update their databases. Okay,
- 6:45Speaker 2: your company's scanner picks it up, maybe alerts the development team.
- 6:49Speaker 2: Ideally you have automated systems that can test and apply
- 6:52Speaker 2: the patch quickly.
- 6:54Speaker 1: How quickly are we talking?
- 6:55Speaker 2: The goal should be honestly, ours, especially for critical vulnerability,
- 7:00Speaker 2: is you want to close that window of opportunity fast,
- 7:03Speaker 2: and importantly, don't just scan fix the issues, prioritize the
- 7:06Speaker 2: ones that are easily exploitable or would have the biggest impact.
- 7:10Speaker 1: Right. Not all vulnerabilities are created equal, definitely not. But
- 7:13Speaker 1: you know, patching quickly only works if your application can
- 7:16Speaker 1: be updated easily. Our source had a cautionary tale about that.
- 7:19Speaker 2: Ah. Yes, the twelve year old Java library.
- 7:22Speaker 1: That's the one A mission critical app got stuck on
- 7:25Speaker 1: this ancient library. Why because the original developers had written
- 7:29Speaker 1: over one hundred thousand lines of code directly against the
- 7:32Speaker 1: library's internal private APIs things not meant for public.
- 7:36Speaker 2: Use, oh, digging into the internals exactly.
- 7:40Speaker 1: So when the library maintainers changed or removed those internals
- 7:43Speaker 1: in later versions, which they have every right to do,
- 7:46Speaker 1: upgrading became this monumental, practically impossible task.
- 7:50Speaker 2: So they were just stuck on an insecure, outdated version.
- 7:54Speaker 1: Precisely, it's a huge lesson. Stick to the public documented
- 7:57Speaker 1: interfaces of libraries. It's not just good coding, it's fundamental
- 8:01Speaker 1: for security maintainability.
- 8:03Speaker 2: Makes perfect sense. Let the library manage its own internals.
- 8:06Speaker 1: And the source offers a clear best practice here, use
- 8:10Speaker 1: a dependency vulnerability scanner, rapidly fix issues, stay up to date,
- 8:15Speaker 1: champion these tools.
- 8:16Speaker 2: It also mentions githubs depended.
- 8:18Speaker 1: On Yeah, as a good often free tool that can
- 8:20Speaker 1: help automate standing and even create pull requests for updates.
- 8:24Speaker 1: Very useful.
- 8:24Speaker 2: Okay, so securecom secure dependencies. Now let's touch on that
- 8:28Speaker 2: term you mentioned earlier, dev secops.
- 8:30Speaker 1: Right, dev secops. It sounds a bit like a buzzword,
- 8:33Speaker 1: maybe a little bit.
- 8:34Speaker 2: Yeah, but there's a really important shift happening underneath it.
- 8:38Speaker 2: Traditionally you had these separate silos, right div build stuff, ops,
- 8:43Speaker 2: run stuff, security, review stuff often late in the game.
- 8:46Speaker 1: Yeah, the security gate at the end that often says
- 8:48Speaker 1: no right when you want to.
- 8:50Speaker 2: Ship exactly, and that whole handoff process. Yeah, it leads
- 8:54Speaker 2: to delays, cost overruns, frustration, and frankly, often less secure
- 8:58Speaker 2: applications because security becomes an afterthought or a bottleneck.
- 9:01Speaker 1: It sounds like a recipe for friction. Devs feel blocked,
- 9:04Speaker 1: ops get stressed. Security feels like the bad guy totally.
- 9:07Speaker 2: So devsekops is basically a movement to break down those walls,
- 9:12Speaker 2: integrate security into the development life cycle from the very
- 9:15Speaker 2: beginning all the way through deployment and operations.
- 9:18Speaker 1: Shifting security left they call it sometimes that's the idea.
- 9:21Speaker 2: It's about collaboration, shared responsibility, automating security checks within the
- 9:26Speaker 2: developer workflow. The goal is faster, more efficient delivery, and
- 9:30Speaker 2: better security, not one or the other.
- 9:32Speaker 1: And companies are actually investing in this.
- 9:34Speaker 2: Heavily, both in tools and in transforming their processes in culture.
- 9:38Speaker 1: Okay. And part of this is developers understanding the rules
- 9:41Speaker 1: of the road, the security standards.
- 9:42Speaker 2: Absolutely. That's where the corporate information security team usually comes in.
- 9:46Speaker 2: They set the standards, the policies. Developers need to understand
- 9:49Speaker 2: why those standards exist and work with security teams, not
- 9:53Speaker 2: against them.
- 9:53Speaker 1: Collaboration not conflict.
- 9:55Speaker 2: That's the ideal. So with that collaborative spirit, what are
- 10:00Speaker 2: some of the core security technologies that dev and offs
- 10:03Speaker 2: teams really need to get comfortable with?
- 10:05Speaker 1: Okay? The essential toolkit? What's number one?
- 10:07Speaker 2: Well, given our chat about networks, it has to be
- 10:10Speaker 2: transport layer security TLS. You just have to encrypt data
- 10:13Speaker 2: in transit.
- 10:14Speaker 1: Non negotiable basically pretty much.
- 10:16Speaker 2: And closely related is the Advanced Encryption Standard AES.
- 10:20Speaker 1: AES for encrypting the data itself exactly.
- 10:24Speaker 2: Our source rightly calls it the most widely deployed algorithm
- 10:27Speaker 2: for encrypting data, whether it's moving or just sitting stored somewhere.
- 10:30Speaker 2: You find it everywhere, including inside TLS.
- 10:33Speaker 1: Got it, TLS for the pipe, AES often for the
- 10:35Speaker 1: stuff inside. What else?
- 10:37Speaker 2: You really can't talk TLS without talking x point five
- 10:40Speaker 2: zero nine digital certificates.
- 10:43Speaker 1: Certificates Those seem complicated, They can.
- 10:46Speaker 2: Be, but think of them as digital ID cards. They're
- 10:49Speaker 2: essential for TLS to work, verifying the identity of servers
- 10:52Speaker 2: sometimes clients too. They pop up in lots of security protocols.
- 10:56Speaker 1: So that's how my browser knows it's really talking to
- 10:57Speaker 1: my bank's website.
- 10:58Speaker 2: That's a big part of it. Yeah, these three TLS
- 11:02Speaker 2: AES x point five zero nine, they're built on deeper
- 11:05Speaker 2: crypto algorithms, but understanding these is crucial for developers.
- 11:09Speaker 1: Okay, foundational tech. Now let's switch to users. How do
- 11:12Speaker 1: they get into our apps? Authentication?
- 11:15Speaker 2: Logging in right and for ages that meant usernames and passwords.
- 11:19Speaker 2: But as our source points out, that model is well,
- 11:22Speaker 2: it's pretty.
- 11:22Speaker 1: Broken, broken how security wise?
- 11:25Speaker 2: User wise, both really security wise. People use weak passwords.
- 11:29Speaker 2: They reuse passwords across sites. Yeah it's a nightmare. Yeah,
- 11:32Speaker 2: I know I shouldn't, but we all do it. And
- 11:34Speaker 2: for users it's just a massive headache remembering dozens of
- 11:37Speaker 2: complex passwords constantly doing resets. It's bad ux.
- 11:40Speaker 1: Okay, so passwords are bad. What's the alternative?
- 11:43Speaker 2: Single sign on or SSO is a major improvement, and
- 11:46Speaker 2: it's about more than just not storing passwords in your app.
- 11:49Speaker 1: How does SSO work?
- 11:50Speaker 2: Basically, it centralizes authentication. Users log in once to a
- 11:55Speaker 2: trusted identity provider and then they can access multiple applications
- 11:58Speaker 2: without logging in again each time time.
- 12:00Speaker 1: Ah, like using your Google account to log into other services.
- 12:03Speaker 2: That's one common example. Yeah, think about the ACME shoe
- 12:06Speaker 2: company example. In our source, they have customers, employees, partners,
- 12:11Speaker 2: all needing access. SSO streamlines that for everyone.
- 12:14Speaker 1: Okay, so let's take Acme's groups. How do they handle
- 12:17Speaker 1: customers buying shoes online?
- 12:19Speaker 2: For customers, the source highlights two main approaches. One is
- 12:22Speaker 2: exactly what you said, letting them use existing third party
- 12:25Speaker 2: accounts via protocols like OOF two or open id connect.
- 12:29Speaker 1: Google, Microsoft, Facebook, Apple, Those buttons you see everywhere exactly.
- 12:34Speaker 2: It's convenient for users, no new password to create, and
- 12:37Speaker 2: it shifts the burden of storing credentials securely to those
- 12:40Speaker 2: big providers who specialize in it.
- 12:42Speaker 1: What's the difference between OF two and open id connect
- 12:44Speaker 1: They often seem used together.
- 12:46Speaker 2: Good question of two is primarily about authorization, granting permission
- 12:51Speaker 2: for one app to access some data in another. Open
- 12:54Speaker 2: id connect builds on top of o F two to
- 12:56Speaker 2: add the authentication layer verifying who the user actually is.
- 13:00Speaker 1: Okay, subtle but important distinction. What's the other customer approach mentioned?
- 13:04Speaker 2: The other really interesting one is passwordless biometric login using webothen.
- 13:10Speaker 1: Passwordless using like fingerprints or face.
- 13:14Speaker 2: ID, precisely your phone or laptop hardware. Weboten is a
- 13:17Speaker 2: web standard that lets websites use those biometrics for login,
- 13:21Speaker 2: completely ditching the password in many cases.
- 13:23Speaker 1: Is that widely supported now?
- 13:25Speaker 2: Yeah, Support is pretty broad across modern browsers and platforms.
- 13:28Speaker 2: You can even try a demo at webothon dot io.
- 13:30Speaker 2: It's quite slick.
- 13:31Speaker 1: A passwordless future sounds nice. Okay, what about acme's employees?
- 13:36Speaker 1: Different needs there?
- 13:37Speaker 2: Definitely for employees, especially in larger companies. Microsoft Active Directory
- 13:41Speaker 2: or AD is super common. It's the system managing their
- 13:44Speaker 2: work logins.
- 13:44Speaker 1: Right for their laptops internal sites exactly.
- 13:47Speaker 2: But employees also need access to external cloud apps sauce
- 13:50Speaker 2: tools right like Salesforce or Slack or whatever. Sure, the
- 13:54Speaker 2: goal with SSO here is for employees to use their
- 13:57Speaker 2: familiar AD username and password to get into those external
- 14:01Speaker 2: apps too, and critically, for ACME to centrally manage access,
- 14:07Speaker 2: disable an account once when someone leaves.
- 14:10Speaker 1: One identity to rule them all from the employee's perspective,
- 14:14Speaker 1: and easier management for ACME.
- 14:16Speaker 2: That's the idea.
- 14:17Speaker 1: What about the third group? Acme's partners, like suppliers.
- 14:20Speaker 2: Partners are interesting. One way is just creating accounts for
- 14:23Speaker 2: partner employees in Acme's own system, like pseudo employees.
- 14:27Speaker 1: But that sounds like a management headache when people leave
- 14:29Speaker 1: the partner company.
- 14:30Speaker 2: It absolutely is. A much better and more secure way
- 14:33Speaker 2: is to delegate, use something called federated identity delegate. How
- 14:37Speaker 2: Acme's ssosystem trusts the partner's ssosystem. When a partner employee
- 14:42Speaker 2: tries to log into an ACME resource, they get redirected
- 14:45Speaker 2: to their own company's login page. To authenticate.
- 14:47Speaker 1: Huh, so the partner manages their own people's access exactly.
- 14:51Speaker 2: If someone leaves the partner, the partner disables their account
- 14:53Speaker 2: and their access to ACME systems is automatically revoked. Too
- 14:57Speaker 2: much cleaner, much more secure.
- 14:59Speaker 1: That makes a lot more sense now. The source also
- 15:02Speaker 1: brought up phishing attacks a huge.
- 15:04Speaker 2: Problem, massive and getting more sophisticated. The example they gave
- 15:08Speaker 2: was chilling the.
- 15:09Speaker 1: One targeting Joe Smith, the DevOps engineer at ACME.
- 15:13Speaker 2: Yeah, he gets an email looks totally legit, supposedly from
- 15:16Speaker 2: Google Cloud warning about an issue.
- 15:19Speaker 1: Urges him to click a link, standard fishing tactic.
- 15:21Speaker 2: Right, but Joe's tired, maybe rushing, clicks the link, gets
- 15:25Speaker 2: a perfect imitation of the Google login page. Oh dear,
- 15:29Speaker 2: enters his username password, even enters the code from his
- 15:32Speaker 2: authenticator app, gives the attackers everything. Wow.
- 15:36Speaker 1: So even multi factor authentication isn't foolproof against a good fish,
- 15:40Speaker 1: not if.
- 15:40Speaker 2: The user is tricked into giving the credentials, including the
- 15:43Speaker 2: MFA code, to the fake site. That's why phishing resistant
- 15:46Speaker 2: authentication is so vital. Like what technologies like web often
- 15:50Speaker 2: which we mentioned, and physical security keys like UBI keys.
- 15:53Speaker 2: These methods cryptographically bind the log into the legitimate site,
- 15:57Speaker 2: making it incredibly hard for phishing sites to intercept useful credentials.
- 16:01Speaker 2: So the takeaway for developers is externalize authentication, use a
- 16:05Speaker 2: dedicated SSO service, rely on modern secure protocols like OOF
- 16:10Speaker 2: to open idconnect, and especially push towards phishing resistant methods
- 16:14Speaker 2: like web Often. Don't try to build all this yourself.
- 16:17Speaker 1: Okay, that's user login covered. What about the secrets? Are
- 16:20Speaker 1: applications need apikeys, database passwords, that kind of thing. Where
- 16:24Speaker 1: should they.
- 16:24Speaker 2: Live application secrets? This is critical. The absolute worst place
- 16:29Speaker 2: is directly in configuration files checked into source control.
- 16:33Speaker 1: Yeah seems obvious, but I bet it still happens.
- 16:35Speaker 2: All the time. The huge risk secrets get exposed. They're
- 16:38Speaker 2: hard to rotate regularly, which you absolutely should do, and
- 16:42Speaker 2: there's no audit trail of who accessed them.
- 16:44Speaker 1: So what's the right way.
- 16:46Speaker 2: Centralized credential storage. Think of it as a secure vault
- 16:49Speaker 2: just for your application secrets, like.
- 16:50Speaker 1: A password manager, but.
- 16:51Speaker 2: For apps kind of Yeah, the source mentions different types.
- 16:55Speaker 2: You've got services from the big cloud providers as your keyvault,
- 16:59Speaker 2: awskey Management Service, CAMS, Google Cloud, KMS, very convenient. If
- 17:04Speaker 2: you're already in that cloud, then there are options tied
- 17:07Speaker 2: to container platforms like credhub for cloud Foundry or Kubernety.
- 17:11Speaker 1: Secrets makes sense if you're using containers.
- 17:14Speaker 2: And finally self hosted options like Hashi corp vault, which
- 17:17Speaker 2: you run yourself.
- 17:18Speaker 1: Lots of choices, but the core idea is the same,
- 17:21Speaker 1: get secrets out of the code and configure precisely.
- 17:24Speaker 2: The best practice is crystal clear. Always store application credentials
- 17:28Speaker 2: in a centralized credential store, use a managed service or
- 17:32Speaker 2: a well maintained open source one.
- 17:34Speaker 1: Is there a standard way for apps to talk to
- 17:36Speaker 1: these different vaults?
- 17:38Speaker 2: Unfortunately, No, that's a bit of a pain point. The
- 17:41Speaker 2: source mentions there isn't one universal protocol. You generally have
- 17:44Speaker 2: to use the specific API or client library for whichever
- 17:48Speaker 2: service you choose.
- 17:50Speaker 1: Okay, something to be aware of. Now, let's shift gears
- 17:52Speaker 1: to something potentially more complex, securing communication between different services
- 17:57Speaker 1: in our own application services.
- 18:00Speaker 2: Basically, yeah, this gets intricate fast, especially as apps become
- 18:03Speaker 2: more distributed. The Amazon product page example, and the source
- 18:06Speaker 2: is perfect. You load one page, but behind the scenes,
- 18:09Speaker 2: that single request might trigger calls to dozens of other
- 18:13Speaker 2: internal micro services, one for price, one for inventory, one
- 18:16Speaker 2: for reviews, one for recommendations.
- 18:18Speaker 1: Well, whole cascade of internal calls exactly, and this fan
- 18:21Speaker 1: out introduces new security headaches.
- 18:24Speaker 2: The Source highlights to big ones, which are, first, how
- 18:27Speaker 2: do you propagate the original user's identity securely through that
- 18:31Speaker 2: whole chain of service calls? The inventory service might need
- 18:35Speaker 2: to know who was asking, not just that the request
- 18:37Speaker 2: came from the product page service.
- 18:39Speaker 1: Right for auditing or maybe fine grain permissions.
- 18:41Speaker 2: Exactly, But doing that consistently across service is written in
- 18:45Speaker 2: potentially different languages, using different communication protocols HGTPGRPC message queues
- 18:51Speaker 2: is really challenging.
- 18:52Speaker 1: Is there a standard way?
- 18:54Speaker 2: Not really a single simple standard. You typically have to
- 18:56Speaker 2: piece together a solution using various patterns and technologies. Open
- 19:00Speaker 2: any connect tokens, maybe mutual TLS, JWTs, jason web tokens.
- 19:04Speaker 2: Perhaps the service mesh helps. It's complex requires understanding lots
- 19:09Speaker 2: of pieces.
- 19:09Speaker 1: Okay, that's user identity propagation. What's the second big problem?
- 19:13Speaker 2: Service identity? How does one microservice securely identify which other
- 19:18Speaker 2: service is calling it? Why does that matter for authorization
- 19:21Speaker 2: between services? Maybe the product detail service can be called
- 19:24Speaker 2: by almost any other service, but the update price service
- 19:28Speaker 2: should only accept calls from, say, the pricing management service.
- 19:33Speaker 2: You need to authenticate the calling service itself.
- 19:35Speaker 1: Ah inter service authorization. Got it? How does services prove
- 19:39Speaker 1: their identity to each other?
- 19:40Speaker 2: Two common ways mentioned are API keys, where the calling
- 19:44Speaker 2: service includes a secret token.
- 19:46Speaker 1: Simple, but you have to manage those keys securely right.
- 19:48Speaker 2: The other is mutual TLS or MTLs. This is stronger.
- 19:52Speaker 2: Both the calling service and the called service use digital
- 19:55Speaker 2: certificates to authenticate each other before any data is.
- 19:58Speaker 3: Even exchanged, but for both sides of the connection essentially yes,
- 20:03Speaker 3: and technologies like API gateways or service meashes can really
- 20:06Speaker 3: help implement and manage either apikeys or MTLs across your services.
- 20:11Speaker 2: They abstract away some of the complexity.
- 20:13Speaker 1: Okay, that clarifies the service to service challenge. So we've
- 20:16Speaker 1: covered a lot of ground, shared responsibility, TLS, dependencies, DevSecOps,
- 20:21Speaker 1: core tech, user off secrets, management, service to service clue.
- 20:27Speaker 2: It's a lot.
- 20:28Speaker 1: If you had to boil it down, what are the
- 20:29Speaker 1: absolute key takeaways for someone listening.
- 20:31Speaker 2: I'd say there are maybe four essential security problems every
- 20:35Speaker 2: application really has to solve. One secure communication channels, use
- 20:40Speaker 2: TLS everywhere to user authentication, use modern SSO with protocols
- 20:45Speaker 2: like open idconnect and web off, and three handle credential securely,
- 20:49Speaker 2: use a centralized secret store, and four secure that service
- 20:52Speaker 2: to service communication.
- 20:53Speaker 1: And that last one, service to service seems like the
- 20:56Speaker 1: most complex.
- 20:56Speaker 2: Generally, yes, it builds on understanding many of the other pieces,
- 20:59Speaker 2: but getting TLS, SSO and secrets management right provides a
- 21:03Speaker 2: really strong foundation. And underpinning all of this is that
- 21:06Speaker 2: devskops mindset integrating security throughout right.
- 21:09Speaker 1: And the source wrapped up with a useful tip, didn't
- 21:12Speaker 1: it it?
- 21:12Speaker 2: Did it basically acknowledged. Look, security is huge, it's complex.
- 21:15Speaker 2: You need be patient, you need to be diligent, learn
- 21:17Speaker 2: the technologies step by step. If there are sample apps
- 21:20Speaker 2: or exercises with the material, actually do them hands on
- 21:24Speaker 2: is key, absolutely vital insecurity. You can't just read about it.
- 21:28Speaker 1: Well. This has been a really insightful deep dive. We've
- 21:31Speaker 1: laid out some critical building blocks for application security. Hopefully
- 21:35Speaker 1: you the listener, have a clearer map.
- 21:37Speaker 2: Now, but remember it's definitely an ongoing journey. The landscape
- 21:42Speaker 2: is always changing, always.
- 21:44Speaker 1: Which brings us to a final thought, considering how sophisticated
- 21:48Speaker 1: attacks are getting and how complex our systems are becoming.
- 21:51Speaker 1: What's one proactive step you listening could take, maybe even
- 21:54Speaker 1: today or this week, to champion a stronger security posture
- 21:58Speaker 1: in your own work something Tom all Over.
- 22:00Speaker 2: Good question to end on. Keep exploring, keep learning,