#239 October 15, 2024
This episode is special. We collaborated with the folks behind the Cloud Security Podcast from Google, Anton Chuvakin and Tim Peacock, to bring you a joint episode. We had the pleasure to jointly interview Michele Chubirka, a Cloud Security Developer Advocate. We talked about VM and Container security, debunked some myths about isolation, attack surfaces, immutability of containers, and more.
Do you have something cool to share? Some questions? Let us know:
KASLIN FIELDS: Hello, and welcome to the "Kubernetes Podcast" from Google. I'm your host, Kaslin Fields.
ABDEL SGHIOUAR: And I am Abdel Sghiouar.
[MUSIC PLAYING]
This episode is special. We collaborated with the folks behind the "Cloud Security Podcast" from Google, Anton Chuvakin and Tim Peacock, to bring you a joint episode. We had the pleasure to jointly interview Michele Chubirka, a cloud security developer advocate at Google. We talked about VM and container security, debunked some myths about isolation, attack surfaces, immutability of containers, and more. We are so excited about this episode, so make sure to listen to the end.
KASLIN FIELDS: But first, let's get to the news.
[MUSIC PLAYING]
Google announced the availability of NVIDIA NIM on GKE. NVIDIA NIM, which stands for NVIDIA Inference Microservices, which is part of the NVIDIA AI Enterprise platform, is a containerized microservice that helps running common AI models across multiple platforms, including Kubernetes, with a single command line.
ABDEL SGHIOUAR: The Kubernetes Steering Committee Election results for 2024 are in. Three new members joined the committee this year, Antonio Ojea and Benjamin Elder from Google and Sasha Grunert from Red Hat. The steering committee for the Kubernetes project oversees the governance of the entire project. The members of the committee serve a two-year term.
KASLIN FIELDS: The schedule for KubeCon and CloudNativeCon India is now live. The event will take place in Delhi from the 11th to the 12th of December 2024. This will be the first time a KubeCon CloudNativeCon event is held in India. Head to the show notes for a link to the schedule.
ABDEL SGHIOUAR: Diagrid announced the beta availability of their managed Dapr platform called Catalyst. The platform offers a set of managed services for building microservices applications on top of Dapr. We covered Dapr in one of our episodes with Mauricio Salatino, a.k.a. Salaboy. Don't forget to check out the links that are in the show notes.
KASLIN FIELDS: And that's the news.
[MUSIC PLAYING]
Hello. And welcome, everyone, to this special edition of the "Kubernetes Podcast" and the "Cloud Security Podcast." We are excited today to be doing a collab podcast where we are interviewing Michele Chubirka. Michele, would you like to introduce yourself?
MICHELE CHUBIRKA: I'm a cloud security advocate at Google, a former architect for finance, places like Capital One, Bank of America. I've also worked in academia. And I'm one of the few security people who will actually touch container security and Kubernetes.
KASLIN FIELDS: We love to hear it.
ABDEL SGHIOUAR: That's exciting.
KASLIN FIELDS: Maybe not the rare part, but we love people working on container stuff. [LAUGHS] And we have a very special episode today with more hosts. We also today have Anton. Would you like to introduce yourself?
ANTON CHUVAKIN: Sure. I feel like I'm in this in-between guest and host based on your introduction. So, yes, we are doing this together. And I am the usual host-- well, one of the two hosts-- for the "Cloud Security Podcast" by Google, which touched Kubernetes a couple of times-- I mean, as rarely as Michele pointed out. So I guess that confirms then for the unfortunate trend of security people not enjoying Kubernetes as much. But I think that this will be very fun. And, yes, I work for Google Cloud Services, so I keep forgetting about this.
KASLIN FIELDS: [LAUGHS]
ABDEL SGHIOUAR: And I think we have probably a fifth member-- more in spirit than in person-- who is your cohost, Tim.
ANTON CHUVAKIN: Correct, yes. Tim is virtually here. And maybe he'll be back by the time this airs. So this will be fun.
KASLIN FIELDS: All right. So on a typical episode, how much annoyance do you provide versus how much Tim provides? Or are you doing both parts work?
ANTON CHUVAKIN: Oh, no, no, no, no. It's mostly me. Tim just provides the clues and the-- I think the trendy word would be the prompts. He provides the prompts, and I provide the annoyance.
[LAUGHTER]
ABDEL SGHIOUAR: All right, cool.
KASLIN FIELDS: And for those who are usually listeners of the "Cloud Security Podcast," we should introduce ourselves. Abdel?
ABDEL SGHIOUAR: Yes. Hi, everyone. I am Abdel Sghiouar. I am a cloud developer advocate at Google. I actually live in Europe. And I do stuff with Kubernetes, basically.
KASLIN FIELDS: And I'm Kaslin Fields. I'm the other cohost of the "Kubernetes Podcast" from Google. I do Kubernetes community things. I'm a co-chair of the SIG for contributor experience, which we will not go into today, and also do a lot of stuff in the cloud native community. Excited to be here.
MICHELE CHUBIRKA: This is exciting for me because it's part of the ongoing journey that I've had with Kubernetes. I remember the first time-- I was working for a small software company called Ellucian. And I remember somebody coming up to me, one of the distinguished engineers, saying, yeah, we think we want to use this container thing on Kubernetes. You want to help with that? I went, yeah, sure.
[LAUGHTER]
That's how that started. That's the path. That's how it started.
ABDEL SGHIOUAR: And just for the reference, because people are mostly going to listen to this podcast on audio, when Michelle was making the face of her colleague asking the questions, she was making a discussing face of, like, would you help us?
MICHELE CHUBIRKA: Yeah, whatever.
ABDEL SGHIOUAR: Like an uninterested whatever.
[LAUGHTER]
All right, so I'm going to go ahead and ask the first question. And the first question is, approaching the question of, what is more secure, VMs or containers? And I realize this is basically a big bottle of worm we're opening here. So which one is more secure?
MICHELE CHUBIRKA: I think that's the wrong question. I mean, it was kind of a bait--
ANTON CHUVAKIN: It's a bait.
MICHELE CHUBIRKA: Yeah, it was bait.
ANTON CHUVAKIN: You're right. It is bait. There's no debate about it.
MICHELE CHUBIRKA: And in my experience-- like I said, I'm one of the few security people that-- I've worked at multiple places over the years as an architect, and it was always like the hot potato. None of the security folks really wanted to be the ones to partner with platform engineering or cloud engineering on Kubernetes and containers because it just seemed so fraught.
The more I've done with it, though, I don't think it's a question. I think it's that standard architect response of, it depends. Right? It depends on the context that you're going to use it. It depends on what I like to call Conway's law of cloud security, how your organization is constructed. And does security get along with platform engineering? Will platform engineering take on the security of containers and Kubernetes? Or will they just act like it doesn't exist?
So your mileage may vary in that if you have this really good infrastructure with integrated security that is managed to support VMs but you haven't done anything for containers or Kubernetes, then obviously, your VMs are going to be more secure right then. But if you have a really engaged, proactive platform security team and the security engineering folks want to work very closely with platform engineering, you could get just as secure containers.
That may not be the answer you want to hear, but I think it depends. I think it's how you use it. How are you going to protect the edge? Are you going to try to expose it? It's all about the architecture and, as I called it, Conway's law of cloud security. Those two main factors together are going to decide which one is going to be more secure for you.
ANTON CHUVAKIN: I mean, people still debate Linux or Windows, which is more secure. I know it's a very 2004 question, but it still comes up. And I think most intelligent commentators give that answer-- namely, it depends on the org, right?
KASLIN FIELDS: Yep. I remember-- this also brings me back to the early days of Kubernetes, very relevant for its 10th year. [LAUGHS] This was something that came up a lot in the early days and still does today. I remember a meetup that I went to in the very early days of Kubernetes where this clicked for me.
The speaker gave this wonderful presentation about how differently you would have to implement security for containers versus virtual machines because they're just implemented so differently. So it's really all about the systems that you understand. And if you understand the attack vectors and how the technology is put together, then you can secure it more well.
MICHELE CHUBIRKA: I also think it's a social issue. You have to have teams that-- you know idea from DORA of a generative culture, where people innovate together, where there's a level of trust, where they embrace novelty? I've been in both types of organizations. And as the security architect/engineer, I allowed myself to be schooled by the Kubernetes and container folks, by the software developers and engineers.
You have to meet each other where the other person is so that you can build security together. When you have those kinds of teams working together like that, then you get that-- you achieve in DORA-- If you read the report, it talks about-- that kind of elite, generative team will be that much more secure, will deliver better secure applications.
ANTON CHUVAKIN: I mean, this is actually a little strange. Because ultimately, if it's all about the culture, then what about the real technical differences? I feel like there is still a bit of a balance in question. So I want to touch on one of the more technical arguments. And I think that it's this dreaded isolation argument. And some people will make a case that VMs are strong isolation.
And, of course, I've seen people who very much cringe when they hear it because there are VM escapes. There are other problems. So how would you treat the isolation differences? I think that there's still built-in-- not just cultural but built-in security differences.
MICHELE CHUBIRKA: So let's clarify a couple of things. I never say isolation with containers. I say segregation because it's a shared kernel.
ANTON CHUVAKIN: Oh, you assume that containers offer no isolation.
MICHELE CHUBIRKA: Some people do use that word. I personally take issue with it because if it's a shared kernel, I don't consider it personally isolation. I consider it segregation. Now, I think where that becomes OK-- sure, in my experience-- now, this is anecdotal-- I've found more instances of container escape than VM escape. Now, I'm not a Mandiant person. I'm sure that there are very elegant, probably hidden nation-state attacks that can generate VM escape. However, in my experience, I tend to see more container escape than VM escape.
Now, I think the trick to Kubernetes-- and I came up with this a while ago-- is that Kubernetes is about optimization of applications that are homogeneous. You're trying to optimize compute of homogeneous workloads. So if you're organizing-- I am all about resource hierarchies and trust boundaries and things like that when you're designing the segmentation of a network or your infrastructure.
So if you're putting a PCI DSS application on the same cluster as some internal backend application that is just for your internal users, that's not really good. So I think it's more about the guidance of how you organize things. I think that you have to be a little more careful with trust boundaries on your Kubernetes clusters. It's about-- between VMs and between containers on whatever-- by the way, I want to recognize that there's also Nomads still out there. A lot of people still use Nomad.
I think it's more about how you organize your containers and your VMs, and you look at ways to equal out your mitigations, understanding that the mitigation techniques will be different in either of those environments. Does that make sense, what I'm saying?
ABDEL SGHIOUAR: I think it does, but I do have a very quick follow-up question on that. So whenever people discuss security in the Kubernetes context, I think that there is usually a lot of focus on application containers. And I never hear people talking about system containers. So the containers that make up Kubernetes itself-- your kubelet, your API server, your control plane, and all that stuff.
Because that's also code that, most of the time, you're not building yourself. You're just downloading it premade, or you are even downloading a premade container to run your-- this is assuming you are crazy enough to run your own Kubernetes. But how do you factor that in?
MICHELE CHUBIRKA: Yeah. If you're self-managing a cluster-- by the way, that's one thing we haven't talked about, hosted versus self-managed. I think that leads into another problem that people have. Kubernetes is a large endeavor. It's a lift. And it's a development lift. And I don't think a lot of people-- it's almost cafeteria syndrome. Their eyes are bigger than their stomachs when they decide, no, we're going to self-manage Kubernetes. And they don't understand the level of commitment.
And so what I've seen mostly from that to mitigate that issue with the control plane and trying to protect it is you have a separate set of clusters for the control plane applications like that, the management applications and stuff. Because then you start to segregate using the tools that you have, specialized network policies and things like that.
You have lots of options to manage all of that. But usually, what you do-- what I've seen when people have a large Kubernetes infrastructure-- is you separate that out. You separate out that kind of management stuff into a separate set of clusters. You can also do the cluster in the cluster thing. That's another way of doing it so that the developer has a Kubernetes cluster that's in Kubernetes, like Kubernetes in Kubernetes. You've heard of that, right?
ABDEL SGHIOUAR: Yeah, Kubeception.
MICHELE CHUBIRKA: Yeah. Yeah, you can do that. There are lots of ways of attacking that problem. But the bottom line is, I think it's about trust boundaries. How are you going to lay out your trust boundaries? And the problem is, it's just like cloud. People jump into cloud, and they don't organize it. And then now you have a brownfield environment, and you have to then, on the backend, try to organize. And it's the same with Kubernetes.
They stand up a cluster, and they throw a bunch of stuff on it together, a lot of dev stuff. And then maybe somebody accidentally makes a prod. And then now you have to rebuild a bunch of clusters, and you have to build them from the perspective of segregation.
KASLIN FIELDS: I think that's really what it comes down to, is if you understand how the boundaries work-- for example, in Kubernetes, you have the container boundary. You have the pod boundary. You have the namespace boundary. You have the cluster boundary. If you understand what, on a technological level, those mean, then you can better choose which security boundary you need for any given application.
And I also want to call out that Kubernetes, especially right now, is doing a lot of work to enable new kinds of workloads to be run on clusters, especially with the whole AI thing going on. There's a lot of work in the community going on to better enable use of different types of hardware by different types of workloads. So it has features built in for a wide variety of workloads. But how you understand the security boundaries determines how you use clusters, I think.
ANTON CHUVAKIN: Which, by the way, reminds me, people who are born-- well, not necessarily born but who used traditional data centers-- may have particular challenges in understanding these boundaries. Because some of them don't have direct equivalence to, quote unquote, "the 1990s" that we keep joking about on our podcast. Like, ah, yes, your security's from the 1990s.
But if your security is from the 1990s, the boundaries would not make sense to you, and you probably would make a mistake. That, to me, is this whole cloud-native versus data center plus service thing. It's particularly challenging for people who don't have that in their heads.
MICHELE CHUBIRKA: That's why--
ABDEL SGHIOUAR: Well, I started my career in the 2000s and worked in data centers. And I can assure you that it was still-- at the time, the boundaries is your firewalls and WAF for the outside world. But within the data center itself, there are basically no boundaries, no micro-segmentation, nothing. Pretty much everything can talk to everything. And it was just still true 15 years ago, so I don't think it changed that much.
MICHELE CHUBIRKA: Yeah, I think this is where identity actually becomes really important, and that means application identity. Because you can't think about it-- like, the IP addresses are fungible. The IP addresses are ephemeral. It's not this immutable environment where you have an IP address and you have a network. It's now just temporary.
It's the same with certificates. And that's why it's so important for you to have identity, in terms of TLS and mutual TLS and understanding that that's the way you're going to achieve security now-- or one element of it. And traditional environments, it messes with-- and I go back to Conway's law.
Because if you have this environment that's very dependent, the security is very dependent on these traditional segmentation tools and methods, then you're going to drop in Kubernetes. And if you don't have members of a team that are willing to learn that, that are willing to rethink the way they're segmenting and putting in controls, then the security is not going to happen. It's lost.
Service mesh, that was the term I was looking for. I don't know why it left my head. And everybody thinks service mesh also is going to solve the problem. And I've seen that a lot with network security teams. They go, yeah, we want some of that service mesh. What they don't understand is they just signed on for a level of complexity that's about to blow their minds. And yeah.
KASLIN FIELDS: We've talked a lot here about how you implement your security depends a lot on understanding the underlying systems. And one thing I want to discuss with regard to security is attack surfaces. That's a very broad concept, I think, in the security world. And I think a lot of folks out there-- a lot of the problems, I think, come from folks not fully understanding certain parts of the system and understanding others. So what advice would you have, Michele, for folks considering attack surfaces of containers versus VMs?
MICHELE CHUBIRKA: OK. Well--
ANTON CHUVAKIN: And if I may stick my nose into this for a very quick second-- people assumed it's smaller for containers, which is interesting that it comes as the unspoken assumption that it's smaller. And I am afraid of unspoken assumptions.
MICHELE CHUBIRKA: Yeah. You know what? It's the same challenges as you have with SRE. Steve McGhee is going to love me for this, right? So you've taken this monolith-- it's not as common that people are taking-- that they're doing these greenfield, beautiful, cloud-native applications. That's what we want, right? They're so lovely and decomposed-- and microservices that are so identifiable. Unfortunately, that's not usually the way it plays out.
So you're taking these sometimes legacy application monoliths, and maybe you're deconstructing them. Well, here's the problem. A lot of times, people didn't have a clear sense of what those monoliths were. Now you're decomposing them, and now they've got to be reliable but also secure. So yeah, like Anton's saying, that gets really confusing.
And so now you've broken all this up, and they've still got to talk to each other. And there are paths for that. And you don't know also-- you'll hear a lot of times, security people will come in, and they'll say, oh, use seccomp and all these other mitigating controls to restrict access between the components in the right way.
But a lot of times, developers didn't take the time to understand, oh, I need access to these particular libraries, and this is what my application uses. Because really, at its heart, a container is a software package. That's really what it is. And in my mind, a lot of times, the mistake is when you think it's apples and apples when it's not.
So now you've got this really complexified, deconstructed application that you're going to have to try to build controls around as it connects and communicates with all the components it needs to talk to. But you may not understand it because you're the security person. And unfortunately, the software developer and the engineering team may not have a great understanding of it because somebody told them they had to put everything in containers.
[LAUGHS] I've worked in places like that. No, we're putting everything in Kubernetes because I heard it's more efficient. So now they're rushing, and maybe they're cutting corners, and they don't know. So it's complicated. I think the attack surface you've had-- you have all the attack surface of the supply chain now. You've got to worry about the container supply chain because it's a software package.
Are you going to use a golden container? Do you have a process for creating a golden container? Are you going to let your devs download it from Docker Hub? Do you have the security tools to actually inspect container images, or do you have this old-fashioned threat and vulnerability management pipeline that only understands VMs?
OK, so now you've got to create this whole image assurance process that you may not have that is sort of adjacent to your software-scanning process with your SAS and your DAS tools. OK. Now also, though, you need runtime assurance. You need to know, OK, has there been container drift? Are people logging in, SSHing into containers, and changing it while it's live? Do you have a mechanism in place that says, if it drifts, we kill it, we bring it down?
The attack service is more about the processes and the lack of knowledge as you containerize your legacy stuff into that new environment. That was a lot, I'm sorry. That was probably overwhelming. I actually do a lot of talks on this. I'll give you links to-- I have this great talk I used to do a couple of years ago on container security is all about the supply chain. I checked it the other day. It looks still pretty up to date, so I'll send you that.
ABDEL SGHIOUAR: So, first of all, usually in my talks, I say that containers are just glorified zip files, but I like your description slightly better.
[LAUGHTER]
MICHELE CHUBIRKA: I like your's too. I may steal that.
ABDEL SGHIOUAR: And I've been to enough talks around container security, and there are typically two things that are mentioned very often as a factor of security, as in the arguments that makes containers more secure than VMs, patching and immutability. So by how fast you can patch a container that makes it "secure"-- I'm putting air quotes here-- and because it's immutable, it's secure. I could understand the first one. I never understood the second one.
MICHELE CHUBIRKA: OK. It's only immutable if you have enforcement in place to make it immutable. If you allow Telnet and SSH or other ways to interact with a container-- because once it's deployed, no touch, no touch. You don't touch it. The second somebody touches it, if you detect that, that should be killed. It's dead to me, that container. That's what it is. There are security tools and mechanisms that you can use to check for that.
That means when you say it's immutable, it's not immutable unless you treat it that way, unless you make an immutable. Like, you don't let people log into production. You don't let people move around and interact directly with containers. Patching-- I actually take issue with the term patching in reference to containers because you really aren't patching. Patching implies that you're adding something to a system that's running, and you're actually violating the immutability rule.
What should happen is a redeploy. Like, if you have to update something, say, on a container image, you just redeploy it, just like software. You just rebuild it, rebuild the container, redeploy it out.
ANTON CHUVAKIN: So careful with that, though, because-- so we did have an episode on container security at some point. And they personally had shared a survey that, according to their data, 60% of people actually SSH into containers.
MICHELE CHUBIRKA: No.
ABDEL SGHIOUAR: And yes, yes, yes,
MICHELE CHUBIRKA: La, la, la, la.
ANTON CHUVAKIN: My reaction was, so this is like, 66% of zoos have a dragon in them. Like, the real number is zero. But like, why are you telling me this stuff? And that's stuck in my head for two years, three years, because we all can theorize that nobody's saying would ever do that. But then somebody shows up who does observability and says 60% of people do that. So how do you--
MICHELE CHUBIRKA: Well--
ANTON CHUVAKIN: --combine this with the real world?
MICHELE CHUBIRKA: You know what? I'm going to take this back on one-- so I'm thinking--
ANTON CHUVAKIN: Aw.
MICHELE CHUBIRKA: Wait. So there are two major use cases for Kubernetes. And I saw this-- it's funny. A data science team at Bank of America tried to hire me for this reason because I could understand their use case, which was bizarre. But the use cases are applications, like standard-- your web-stack applications and AI applications. And the data science kind of stuff is-- not the front-end stuff but the back-end stuff-- the data science is a totally different use case.
And I remember having a conniption fit when the data science people were like, yeah, we're using Kubernetes. I went, what? No, no, no. That's cloud native. How dare you? [LAUGHS] I was so offended. I was so offended by it. And then I talked to Cloudera. I talked to all these different companies. And I found out how they were trying to use it.
And then I realized, oh, wait a second. Kubernetes is really cool for instrumentation. There are all these complicated parts for deploying data science applications, and you can use Kubernetes to do that. Huh. OK, that's kind of clever. I accept that. I now accept and bless that use case.
But that means that you separate the two. So, yes, you will log in. There really isn't this immutability concept with the data science use case for Kubernetes and containers. And I accept that. Are you going to mix those two up? Are you going to mix the cloud-native application use case with that data science one?
Remember how I said you want to optimize compute of homogeneous applications and how you separate them? You're not going to put those things together. That's really important. That's how I treated it when I was-- oh, I'm going to use it like a verb-- architecting, security architecting environments.
KASLIN FIELDS: Is that helpful?
MICHELE CHUBIRKA: Yes, people do it, and they will do it. And I will let them get away with it also if they have a dev environment-- like, in a strict dev. It's not staged test or prod. I will let developers-- as they're noodling and playing around, I will let them do that in a strictly dev environment. You want to log in? But I let them know, by the way-- I don't try-- I'm not one of those security jerks that tries to implement the exact same security levels and controls across dev, test, and stage, and prod.
ANTON CHUVAKIN: Which, by the way, reminds us to another thing which you alluded to but maybe it's worth a very quick, quick visit. How about the argument that people misconfigure containers more? And that may come from the fact that they don't understand them-- well, because they SSH into them. I guess that's a good argument.
So is there anything inherent in the system we're discussing that makes it more prone to misconfigurations? Like, it's a layer of complexity. After all, there is orchestration layer. So what's your take on this misconfiguration proneness of containers?
MICHELE CHUBIRKA: I don't think that's-- I think it's more a case of--
ANTON CHUVAKIN: Don't be an idiot?
MICHELE CHUBIRKA: No.
[LAUGHTER]
I think it's more a case of not having the right tools deployed sometimes to check for immutability and drift. I think-- with VMs, you have Ansible and tools like that that can go in and harden, and they interact well at the VM level. We don't always have the same kind of tooling available for containers when we're deploying them.
And honestly, I think there's also a sense of-- I used to make a joke about Kubernetes that it was a developer response. It's actually a social response to how the infrastructure folks took over the cloud from the devs who went, yeah, we'll teach you infrastructure folks not to give us a VM quickly, to make us wait for machines for three months. We developed this new thing called Kubernetes, and we never have to talk to you folks again.
And then now the security people and the infrastructure people, they got wise. They went, wait a second. So I think what happened is a lot of the security and governance processes-- in a lot of organizations, they just haven't caught up. You can do the same controls. Maybe you need to get some specific tools. You need to change some processes. I think you can misconfigure both equally. Your processes just have to catch up.
ANTON CHUVAKIN: I think I'll just add one more thing to that. I would be curious about the survey that asks people, how many of you are not pinging your dependencies inside the container to a particular version and just use the latest of whatever library, which means every time you're rebuilding your container, your code is changing and your container is drifting? I would be willing to bet it's a lot of people.
MICHELE CHUBIRKA: Hopefully, you're using something in your pipeline-- that you're using SCA, Software Composition Analysis, and you have some kind of container-aware security tool that's scanning it and telling you that information. What I usually do, by the way, is my pipeline-- I'll typically have a software application security pipeline. I'll have an adjacent container security pipeline.
And the things that you're doing-- first of all, you're plugging in and you're scanning all your containers that are in your repository. You're checking as it goes to deploy to prod or wherever, test and then prod. You're checking, hey, have I seen this container before? Has the checksum changed? Oh, the checksum changed. No, no, no. Go back. Get a scan. And the scan is going to kick off because it doesn't know it.
Now you're OK. Your CVSS is 4 or 5. My rule says you can't be above 8 in this environment. Oh, wait, no, you're going to prod. You can't have anything. You need to be below 3 or something. You can go to prod. So you've got to have-- I have something called DevSecOps decisioning principles, which I created. And security is really more about clearly establishing your policies and your trust boundaries and what those policies align with.
Like, I will allow this in prod. I will disallow this. This is what is acceptable in stage or test. This is what is acceptable in dev. You establish that. Then the material, as it goes through the pipeline to any of those environments, it either passes or fails those set of rules.
ABDEL SGHIOUAR: Yes.
MICHELE CHUBIRKA: So now that way it's the same, and there were less arguments because everybody knows what the rules of the road are. I also really am a huge fan of release management and having really tight release management rules and having them automated as well-- same thing. And containers just fit into that, as do, by the way, VMs. I treat VMs the same.
KASLIN FIELDS: I think a theme throughout our whole conversation here has been that-- I think for a lot of us, in our careers, containers have been kind of the new thing that's been up and coming. Of course, now containers are more than 10 years old. Kubernetes is 10 years old. And VMs haven't gone anywhere when discussion in the early days up to today has been, are containers going to replace VMs? And I think we've proven over time that containers and VMs are going to coexist for the foreseeable future.
So let's talk about that future. What do you see in the future of both container and VM security?
ANTON CHUVAKIN: Wasm.
KASLIN FIELDS: Really?
[LAUGHTER]
MICHELE CHUBIRKA: I'm going to give you a different answer. I am really excited about the potential of Wasm. I have not personally spent a lot of time with it. I'm a dilettante with Wasm, just like I am-- it's the same thing. Wasm is kind of in the same place as service mesh.
I know there are a lot of huge places that use service mesh and use it very effectively. But a lot of times in the enterprise, everybody says, yeah, we're going to get some of that. And then it just hangs-- like, nobody ever gets very far with it. Or they use 1/10 of its capabilities.
Wasm is kind of in a somewhat similar place, in that a lot of people got really excited about creating this-- it's not a container-- an artifact that is slimmer, that's really, really slim and performant so you have a much smaller attack surface. Why? It's like distroless and from-scratch containers on steroids almost. Because you've got this really slim artifact that can run, and Kubernetes now understands it and can deploy it.
I don't know-- honestly, you'd probably know better than I how many people are leveraging Wasm or if it's still-- like, will it be the next IPv6--
ANTON CHUVAKIN: Nah.
MICHELE CHUBIRKA: --that everybody says we should have? And everybody's still doing NAT and PAT with-- they're still doing translation at the edge with IPv6. Is it going to be the next big thing? I would love to see it be the next big thing. It seems promising. I know there are a bunch of people out there who have jumped on it. I think that's what I'm excited about in terms of Kubernetes security.
KASLIN FIELDS: I like your comparison to IPv6. It does feel a little that way.
[LAUGHTER]
MICHELE CHUBIRKA: So it makes me so mad because IPv6 should be here, but nobody wants to change. Anyway--
ANTON CHUVAKIN: But do you think future is us SSHing into containers in five years or not?
MICHELE CHUBIRKA: No.
[LAUGHTER]
ANTON CHUVAKIN: No, good. Thank you for your optimism.
MICHELE CHUBIRKA: Yeah. Honestly, some people shouldn't be SSHing into--
ANTON CHUVAKIN: Into anything.
MICHELE CHUBIRKA: Yeah
[LAUGHTER]
Like, really, you want immutability? Cloud is about immutability. And you want-- I worked at one place where we had this rehydration thing, and containers should have the same. For rehydration, I think it was 30 days-- and a container regardless of whether or not it has any vulnerabilities in it or whether or not it's set off a drift alert. Some places will proactively just-- no, we're going to expire them. After a week, let's replace it just to be safe.
Because you don't know. Sometimes you have zero days. Your alerting systems may not pick up on anything. So that makes sense. Go ahead and proactively replace it. Now it's really immutable. Now you're looking at ephemerality and immutability perfection. Not everybody's there, obviously, but--
ABDEL SGHIOUAR: I'm going to just plug a shameless plug here. I have a talk on Wasm I'm going to link on the show notes if people want to understand what Wasm is.
KASLIN FIELDS: Perfect.
MICHELE CHUBIRKA: I want to hear that talk. I'm excited for that. Because I'd like to do more with it. I just haven't had the opportunity.
KASLIN FIELDS: And if you're not familiar with Wasm out there, it stands for WebAssembly. Originally, the concept was for browsers. It was about allowing you to use various different types of programming languages across web browsers instead of just using JavaScript by doing-- to me, it feels kind of like a JVM-style compilation of code into this WebAssembly concept.
MICHELE CHUBIRKA: Blasphemy. Really? In my head, I'm comparing it to JVM too. But we don't want to go there.
ABDEL SGHIOUAR: Yeah, let's not go there.
KASLIN FIELDS: Yeah.
[LAUGHTER]
And the infrastructure people somehow saw this and decided this might be a good approach for making process isolation container-ish concepts even lighter weight. So it's actually a very interesting technology. I would recommend checking out a talk on it, like Abdel's. [LAUGHS]
MICHELE CHUBIRKA: I'm excited to see that. Because I'd like to know-- I think people are using Wasm potentially to minimize the sidecar stuff. That's what I had heard, as much as I try to keep up with it. And I think that's great. Because a lot of times in Kubernetes, your sidecars and your system-- the Kubernetes control plane stuff itself is going to be just as vulnerable sometimes as the application people's containers, which is terrifying.
KASLIN FIELDS: And to wrap us up here, I wanted to ask you, Michele, about another talk that I'm excited to see, your session at KubeCon. Would you tell us a little bit about it?
MICHELE CHUBIRKA: Sure. Basically, it's a career talk about-- it's called Why Perfect Compliance is the Enemy of Good Kubernetes Security. And I work on the CIS GKE benchmarks with the GKE team at Google in Google Cloud. And I've been a consumer of the benchmarks, and now I've been a contributor.
And the one thing over and over again-- I end up being the mediator in the middle, usually, between the platform engineering team and the security team. I don't know how I ended up in that role. But I'm usually the one that's like, hey, let's calm down and talk about what's realistic here. Do we really need this specific control? Does this apply here? What's the trust boundary? What's the attack surface like? What's the exposure? What's the risk involved?
And I think that's the point of my talk. I want to create a more-- and this is from experience. I remember walking in, and I took my happy little CIS benchmarks. And I remember working with my friend Subhendu at Bank of America. He's great. You should look him up. He works on OpenShift. The Kubernetes, we don't like to talk about, I guess. I don't know.
I would say, hey, turn on this because the benchmark said to. I kind of understand it, but-- [LAUGHS] and I turned it on minikube, but I don't know-- or minishift-- and I'm not sure how this works. He's like, Michele, that's an alpha feature. I don't think it's a good idea to turn that on right now.
And those are the conversations that we should be having. And that's what the talk is about. Let's have better conversations about, hey, here's this feature. What's it really mitigating? What risk are we trying to address? Let's be conscious of that when we plan out and when we try to secure it. It's not about turning the security tool into a unified green color. Stop freaking out about the red and yellow in your security dashboard because sometimes it doesn't understand context. I think that's the TLDR for my talk at KubeCon.
KASLIN FIELDS: Wonderful. So if you're attending KubeCon North America in Salt Lake City in November 12 to 15, something like that, then make sure you check out Michele's talk if you're interested in learning a bit about how to have those important conversations when you're developing a new feature about how you're going to secure them. Thank you so much, everyone, for being on today for this very special episode.
ABDEL SGHIOUAR: Thank you, Anton. Thank you, Michele.
ANTON CHUVAKIN: Thank you. That was fun.
MICHELE CHUBIRKA: Yeah, thank you.
[MUSIC PLAYING]
KASLIN FIELDS: So normally, I would say thank you so much for that interview, or you would say it, but today we were both on the interview.
ABDEL SGHIOUAR: Yeah, the first time we tried having two hosts on the same interview. And it went--
KASLIN FIELDS: Well, three.
ABDEL SGHIOUAR: Oh, or three, yeah. Anton-- well, four if you count them virtually. So--
[LAUGHTER]
KASLIN FIELDS: We went a little overboard on it this time maybe, but I think it worked out really well. That was really fun.
ABDEL SGHIOUAR: Yeah, I had a really good time talking to Michele-- a very knowledgeable person, very fun, very expressive.
KASLIN FIELDS: That's true. I'm really glad that we finally got to interview Michele. We had actually talked about doing an interview early this year, months and months ago, and we never got all of the pieces together to make it happen. So I'm glad that we finally did.
ABDEL SGHIOUAR: Yeah, yeah. And I'm glad also we got to do it with Anton because I listen to the security podcast, and they are great conversations. I like the dynamic that Anton has with Tim. Well, Tim is on leave now. But the way they're bouncing against each other and talking about all sorts of topics, pretty cool.
KASLIN FIELDS: Awesome. I do love to listen to other podcasts for examples of how to do those things.
ABDEL SGHIOUAR: Yes, yes.
KASLIN FIELDS: So we talked a lot about container and VM and Kubernetes security, which are all kind of different things but can be talked about together. [LAUGHS]
ABDEL SGHIOUAR: Yes. I like the fact that we focused the conversation itself on containers and container security. And there was quite a lot of myth debunking, in my opinion, about container security in the episode itself.
KASLIN FIELDS: Which there is still a lot of misunderstanding there.
ABDEL SGHIOUAR: Oh, yes. Yes, definitely. There is one thing that I did not manage to sneak in. When Michele was talking about containers doesn't isolate, they segregate-- the words I use quite a lot for this topic is containers doesn't contain. If you think about containers from the containment perspective, that's not what they do because of the shared kernel--
KASLIN FIELDS: That's true, yeah.
ABDEL SGHIOUAR: --as Michelle explained.
KASLIN FIELDS: Yeah, I have a comic where I describe this using dogs and apartment complexes--
ABDEL SGHIOUAR: OK.
KASLIN FIELDS: --talking about shared infrastructure. So I give the analogy of a VM is kind of like giving your dog its own townhouse. Sure, it's shared infrastructure or like an apartment, but it's isolated enough that it basically can be treated like its own machine, its own space. It has all of its own resources and things like that.
But a container is more like putting your dog in doggy daycare. It is sharing the space with all of the other things, but you still need to prevent dogs from getting into fights and things like that. You also need to prevent your containers from stepping on each other's toes, using the same resources, and having all sorts of problems like that.
And so you use things like cgroups and namespaces, which are kernel-level isolation tools. And I use the analogy in my comic of those being like making sure that dogs have their own toys, have their own food bowls. And in the worst-case scenario, if you really need to just separate a dog, just separating them into their own-- like, a kennel within the same space.
ABDEL SGHIOUAR: Yeah, that's a really good analogy. Yeah.
KASLIN FIELDS: Right? It's really useful, I think, for understanding how-- that's one thing that I was worried about as we were going through it, is, are folks going to understand what we're talking about here with the technical differences between how containers are implemented versus how VMs are implemented? And so I really like that analogy for giving folks a quick overview of how they're just fundamentally different approaches to isolation or segregation.
ABDEL SGHIOUAR: Yeah. And I really enjoyed the conversation because Michele also does not shy away from including the organization aspect of companies as a factor into security. Like, you cannot have one without another. So how do you organize yourself, how do you organize people, how do you teach people are also important aspects of, how do you build security into the development process?
KASLIN FIELDS: Early in my career, I was, I think, as many people are, intimidated by security topics because it's like, this is very high risk and you need to get it right. And so I don't know what the technologies are behind here, and so it's a little bit intimidating. But as I've met more and more security folks, I have learned that security is really all about just learning things and understanding things. And the better you understand something, the better you can deal with it as what it is.
And so that's been something that's drawn me to it over time. And I've ended up really enjoying being part of security spaces. I'll hop into SIG security meetings and open-source Kubernetes every now and then just to hang out and learn from them because it's a really fascinating field.
ABDEL SGHIOUAR: Yeah, definitely. I think that my favorite part of this episode was getting Michele to talk about patching and immutability because--
KASLIN FIELDS: That was really good.
ABDEL SGHIOUAR: Yeah. Because in my experience, that's always brought up as a pron for containers from a security point of view. But I think we have learned from the episode that that's not necessarily the case. Unless you enforce it, it's not going to be the case. So that was a really good way of explaining it.
KASLIN FIELDS: I also loved that you were like, I've never understood the immutability argument here. And I feel like every time the word "immutability" comes up, I have to remind myself, like, what do they mean by that?
ABDEL SGHIOUAR: Yes, yes.
KASLIN FIELDS: And in the container world, I loved how it just came out through our conversation there, that usually what people are talking about with immutability with containers is-- like, you make a container. You deploy it. You don't actively change the thing that's running.
You will make a change to the image, and then you'll redeploy it. And Michele was saying, that's how you should do things. You should generally just redeploy the thing rather than interacting with it directly. So I always have to remind myself that that is immutability, I guess.
ABDEL SGHIOUAR: Yes. So, in other terms, do not log in into your container and do things.
KASLIN FIELDS: I totally do that, though.
ABDEL SGHIOUAR: Oh, yeah, I know. You remember the survey that Anton was talking about?
KASLIN FIELDS: Particularly in development, though. It's not like I'm going to do that with some kind of production workload that's running. But if I'm developing something-- I was doing this recently. I was working on a chat app to explore some AI stuff, trying to build an AI chat app. Because who isn't doing that?
And I was trying to use some environment variables in my container, and things weren't going the way that I expected. And I was like, well, best way to debug this is to log into the container and see if the environment variables are there.
ABDEL SGHIOUAR: Yes.
KASLIN FIELDS: There are use cases.
ABDEL SGHIOUAR: I'm willing to bet that the reason why people still do that, why people are modifying running containers, is because probably a lot of times, the development cycle is just too slow. So between you changing code, waiting for the container to build, waiting for it to run so you can see the changes you made, people think, oh, I'm just going to bypass all of that and just go straight into the containers to change things.
If you're able to improve your developer experience, generally speaking, speed up the time it takes to get a change to a running thing, that probably could help as well to help prevent people from doing it. There is the enforcement part, which we talked about. But there is also the human part, the human factor.
KASLIN FIELDS: Yeah, because development processes with containers can be real slow. I've had a lot of trouble with that recently with this chat app. Originally, I was doing things the way that I always have, where I run everything from command line directly and edit all of my files in command line and everything.
And I was realizing this development cycle is just way too slow for me to be able to solve the problems with my application. And so shout-out to Cloud Code, which is Google Cloud's Visual Studio code plugin. I ended up setting that up on my local Visual Studio code, and that auto-generated a Skaffold file for me, which allows you to set up your deployment pipeline.
And I set it up so that every time I made a change to one of my files, it would redeploy the application. So still, the deployment was taking a little bit. Definitely, that deployment cycle is slow. But when I have it set up so that it's redeploying every time I need it to without me having to do each step of the deployment, it was not so bad to actually get things done.
ABDEL SGHIOUAR: Yeah, Skaffold is still one of my favorite tools for doing developments.
KASLIN FIELDS: It's good.
ABDEL SGHIOUAR: Yeah, it's pretty good. Yeah. I did some talks on it before. I showed people how to take the most out of it. But I think a lot of times, also, for your development cycle, the tooling is not only the limiting factor. Sometimes it's how long it takes you to pull dependencies. Do you cache these dependencies and all that stuff? So there are ways to optimize this, I think, across the entire cycle, basically. That's what I'm trying to say.
KASLIN FIELDS: The considerations in the container world can go so broad.
ABDEL SGHIOUAR: Exactly. Yeah, then we talked a little bit about misconfiguration. And that was interesting to have Anton chime in with the comments that he was saying, like, how do we factor in misconfiguration?
KASLIN FIELDS: Yeah, that is such a common issue too. It's going to happen. We're humans. You're going to misconfigure something at some point, especially when you have all of these pieces from development to production. Something's going to go wrong somewhere along the way. But I think it is more about those pipelines than the individual components. You can learn how to configure an individual component. But when you have to put them all together--
ABDEL SGHIOUAR: Yeah. If there are any few things you have learned from this episode, is do not not pin your dependency versions anywhere. You have to have them pinned because you want reproducible builds. You want your builds to be predictable when they are rebuilt to make sure that you don't have container drift. Because if you're just relying on the latest tag everywhere, you're going to have problems.
KASLIN FIELDS: Yeah. I have been using latest in my development cycle lately. But when I get a good one that's working and I want to make sure I save it, then I rebuild it with a different tag so that I can come back to that one if I need to. Interesting factor. And one other thing that I want to mention from the interview is Wasm.
ABDEL SGHIOUAR: Oh, yes. Yes. I am very excited that Michele talked about that.
KASLIN FIELDS: Yes, I found that fascinating. I have recently had conversations with folks in the community who think that Wasm is a fad that's going to go away. But in my experience going to Wasm cons and things, it is still a very small community. It's not getting the accelerated growth that Kubernetes and containers saw in their early days. But it is a very interesting technology that has real use cases, and so I thought it was great that she brought that up.
ABDEL SGHIOUAR: Yeah. So I did some talks and content about it in the past, and I spent quite a lot of time actually looking into it, just out of curiosity, really, because I was very curious about how that space is evolving. And I dropped it a little bit to focus on other things. But what I can say is I've been to events where I met people who assured me it's still pretty much alive. It's probably not being put at the forefront of any conference that you go to as it used to be, like, two years ago, right?
KASLIN FIELDS: Exactly. I think that's the thing, is that it's been kind of bumped out of the public consciousness by all of this AI shenanigans.
ABDEL SGHIOUAR: I think so. Yeah, I think so.
KASLIN FIELDS: Yeah.
ABDEL SGHIOUAR: Because I remember one of the KubeCons we've been to, Wasm was the thing that everybody was talking about.
KASLIN FIELDS: And it does have interesting AI--
ABDEL SGHIOUAR: Use cases, yes.
KASLIN FIELDS: --use cases. But I think everybody's so focused on, Can I get enough GPUs? that they're not really worrying so much about--
ABDEL SGHIOUAR: The name of the game now is GPUs.
KASLIN FIELDS: Yeah. Wasm is such a relatively early-stage technology, but it has great potential for using those hardware resources more efficiently. So I think there is potential for it to catch on, even in an AI world. But I think people are just so focused on other things right now that--
ABDEL SGHIOUAR: Exactly.
KASLIN FIELDS: --they're sleeping on it.
ABDEL SGHIOUAR: Yeah. No, it was pretty interesting to hear Wasm being brought up as part of a security discussion as a potential future thing.
KASLIN FIELDS: I also love how she was talking about how containers are this new thing, and people don't understand it well enough when they're adopting it. And so sometimes they miss things. And then she's like, Wasm, Wasm is the future of security--
[LAUGHTER]
--containers.
ABDEL SGHIOUAR: That was an unexpected--
KASLIN FIELDS: Like, wait, that's the same problem.
ABDEL SGHIOUAR: --answer. Exactly, exactly. No, it was pretty nice.
KASLIN FIELDS: It's also a good point, that it is yet another different take on how you isolate your workloads. And so it is a different take on security that might have very interesting implications for the future if it catches on.
ABDEL SGHIOUAR: Yeah. And then we mentioned that Michele will have a talk at KubeCon North America in Salt Lake City. And so don't miss that if you're at KubeCon. And also, I'm going to have a talk. And I think, Kaslin also, you have a talk?
KASLIN FIELDS: Yeah, well, open-source since I am a SIG co-chair. The SIGs generally each have their own talk. So if you're ever interested in contributing to open-source and you're at a KubeCon and you remember that, by the way, you were going to try to do that contributing thing, try going to the SIG talks in the maintainer track.
They put a lot of work into those. And the maintainers would be absolutely thrilled to see you there, especially if you come up and say hi. And just say hi, even if you don't really have a question. They would love to know that you cared about their work in open-source.
ABDEL SGHIOUAR: Nice, nice. And yeah, so we'll see you in Salt Lake City. We're going to bring in cameras, and we'll be shooting some content. So it'll be cool.
KASLIN FIELDS: Yeah, make sure you come find us. We'll probably hang out at the Google booth some. If you don't see us there, tell the folks at the Google booth that you're looking for us, and they'll get word to us. Otherwise, we're just going to be all around the conference, but--
ABDEL SGHIOUAR: Yes.
KASLIN FIELDS: But please do try and come find us if you're there. We'd love to talk to you.
ABDEL SGHIOUAR: Awesome. Well, thank you very much, Kaslin. This was great.
KASLIN FIELDS: Thanks, everyone. Go secure all the things.
ABDEL SGHIOUAR: Yes.
KASLIN FIELDS: [LAUGHS]
[MUSIC PLAYING]
That brings us to the end of another episode. If you enjoyed the show, please help us spread the word and tell a friend. If you have any feedback for us, you can find us on social media @KubernetesPod or reach us by email at <kubernetespodcast@google.com>. You can also check out the website at kubernetespodcast.com, where you'll find transcripts, show notes, and links to subscribe.
Please consider rating us in your podcast player so we can help more people find and enjoy the show. Thanks for listening, and we'll see you next time.
[MUSIC PLAYING]