Secure By Design: Architecting your cloud and AI workloads from the perspective of infosec
Natalie Godec44:172026
Un'app AI si può creare in vibe coding, la sua sicurezza no
La violazione subita da Tesla nel 2018 inizia con una dashboard Kubernetes non protetta e finisce con credenziali AWS trapelate e una bolletta di crypto-mining di oltre 100.000 dollari. Le app AI create in vibe coding girano sugli stessi container, reti e archivi di dati, spesso rilasciate senza pensare a dove verranno eseguite. Natalie Godec, Senior Cloud Architect presso Zencore e Google Developer Expert in Cloud, si chiede quali guardrail colmino queste lacune e quali richiedano un vero lavoro di configurazione.
Una checklist livello per livello per proteggere cluster, app serverless, dati e l'intero cloud
Natalie Godec, Senior Cloud Architect presso Zencore, sostiene che i carichi di lavoro AI sono sicuri solo quanto la piattaforma cloud su cui girano e illustra un approccio di difesa in profondità con esempi Google Cloud applicabili a qualsiasi provider. Tratta l'hardening di Kubernetes e Cloud Run, la protezione dei dati in AlloyDB e BigQuery e la definizione di guardrail a livello di organizzazione con org policy e VPC Service Controls.
“E a volte dimentichiamo che dobbiamo davvero pensare a queste cose, soprattutto quando facciamo vibe coding e creiamo cose a destra e a manca e le distribuiamo senza avere alcuna conoscenza o senza pensare minimamente a dove girerà quella cosa che abbiamo creato in vibe coding.”
“E tutti ci stiamo allontanando dalle chiavi statiche verso token generati dinamicamente.”
What you will learn
Rafforzare i cluster Kubernetes con nodi e control plane privati, routing VPC-native, un endpoint DNS al posto dei bastion host e Shielded VMs.
Sostituire le chiavi statiche dei service account con la workload identity federation, così i servizi usano token di breve durata generati automaticamente.
Applicare bundle di conformità pronti all'uso come CIS e PCI DSS con Policy Controller o Gatekeeper e verificare la provenienza delle immagini con la binary authorization.
Proteggere i dati con endpoint Private Service Connect, zone DNS private e sicurezza a livello di colonna e di riga in BigQuery.
Definire guardrail a livello di organizzazione con le org policy e progettare perimetri VPC Service Controls separati per dati, calcolo e dati condivisi.
Details
Level
Intermediate
Format
Tech talk
Technical depth
Practitioner
For
Mid-career, Senior individual contributor
Length
44:17
Published
July 2026
Questions this talk answers
Perché la sicurezza della piattaforma conta ancora per i carichi di lavoro AI?
Ogni carico di lavoro AI gira su un runtime, una rete e un livello dati, quindi vanno protetti container, reti e dati, non solo prompt e modelli. Godec avverte che le app create in vibe coding vengono spesso distribuite senza pensare a dove verranno eseguite.
Come si amministra un cluster GKE privato senza un bastion host?
Si usa un endpoint DNS: un endpoint gestito con terminazione TLS davanti al control plane, con un identity-aware proxy che convalida l'accesso. Così non serve più mantenere e aggiornare una VM bastion SSH dedicata.
Perché i team dovrebbero sostituire le chiavi statiche dei service account con la workload identity federation?
Le chiavi statiche montate nei pod possono trapelare, come accaduto alle credenziali AWS nell'incidente Tesla del 2018 che, secondo la relatrice, ha portato a una bolletta di crypto-mining di oltre 100.000 dollari. La workload identity federation assegna a namespace e service account identità cloud che generano automaticamente token temporanei tramite le librerie ufficiali.
In che modo la binary authorization blocca un'immagine container compromessa?
Gli attestor nella pipeline firmano il digest di ogni immagine con chiavi KMS e l'admission controller distribuisce solo le immagini il cui digest ha la firma corretta. Un attaccante può sovrascrivere i tag, ma non i digest.
I dati altamente sensibili possono restare fuori dal cloud ed essere comunque usati dai carichi di lavoro cloud?
Sì: si collega il data center alla rete cloud tramite un tunnel VPN cifrato o un interconnect diretto, aprendo i firewall solo per dati specifici. Godec aggiunge che piattaforme cloud correttamente protette ospitano già dati sanitari e bancari.
Come le chiavi statiche hanno causato la bolletta di crypto-mining di Tesla (48 s)
Perché i digest delle immagini battono i tag contro le backdoor (83 s)
I dati altamente sensibili possono stare nel cloud? (83 s)
All right, let's roll. Welcome to the session. Good morning, good afternoon, depending where you are. I'm in London. It is a very great morning today and a cold one. So good morning to you who are joining me from Europe and good afternoon to those from Asia, Pacific, Australia. Good evening, probably already. I hope you've been having a wonderful conference and have joined a lot of interesting sessions.
I had one yesterday, which was a panel on cybersecurity in the AI age, which is obviously a big topic and very intimidating and interesting one. But today we are going to talk about technical security in cloud. My name is Natalie Godec. I'm a principal cloud architect at Zencore. We are a Google cloud partner, which means that I go out and build.
Cloud platforms for different companies around Europe, mostly, but sometimes in other places of the world as well. I'm also a Google developer expert, meaning that I'm like an ambassador of Google cloud tech because I work with it so much. And the examples that I will be giving you today will be based on Google cloud, but you can implement the very same principles everywhere else. And I'll be giving specific examples where it is applicable to use open source tools, to use some other features of other features of AWS or Azure or other cloud providers, depending where you are. My background is in infrastructure and DevOps and platform engineering. So that's where the technicality comes from. And this QR code leads to my social media. If you would like to stay in touch. I'm also a photographer. You can see behind me one of the pictures that I had taken. So yeah, let's stay in touch.
We're starting with securing services. So run times, containers, Kubernetes, serverless, all of that. Then securing data because nothing runs without data. And specifically in the AI era, we need to deal with our data even more than ever before and need to consider security of that data even more than ever before in different ways and in new ways that we haven't had to consider before.
Which would be like, how do you secure your whole entire cloud? Again, for those who joined a bit later, I will be giving examples of Google cloud tech, but all of these principles are applicable wherever you're hosting your services. And the reason I'm talking about securing your AI and cloud workloads, well, there is a platform, an infrastructure, a runtime that will run underneath your AI workloads, regardless where they are. So you still need to secure your containers, you still need to secure your networks, you still need to secure your data. It is not all about AI security itself. Of course, you need to have model armors and prompt security and protect against prompt injection and make sure that there is safety and explainability in the models that you run. But the platform and the infrastructure
is equally important. And sometimes we forget that we do need to think about those things, especially when we are vibe coding and creating things left, right and center and deploying them without having any knowledge or without giving any thought to where that thing that we vibe coded will run. So today you will learn the basics of securing the thing that will support your applications and your services and your runtimes. Let's start with securing services and start with Kubernetes. GKE is a Google managed Kubernetes, just a name. Why does this matter? This matters because right now, probably most of the world is running on Kubernetes. Most of the services in the world are running on some sort of Kubernetes. Already in 2024, 93% of companies around the world were using
communities in production. Half of that Kubernetes is running on data versions. We all know that updating and upgrading Kubernetes itself is very hard. Part of the reason why managed services such as GKE, EKS, AKS are so popular, not even mentioning the Red Hat one and the multitude, Weave and the multitude of other third parties that will manage your communities for you because managing it and upgrading it is hard, which results in 46% of the Kubernetes clusters worldwide running out of life and of support versions.
And this results in a lot of incidents. A very famous one was in 2018 where the Tesla's Kubernetes control plane running on AWS was compromised. And we'll talk about that a little bit more later. Fortune 500 companies' secrets were leaked into public repositories. So, we're talking big established companies, big established enterprises that have probably a very strong compliance team, a very strong security team, very strong rules around what goes where, what gets deployed into production. And yet, here we are, finding their secrets in public repositories.
And, of course, the infrastructure itself, the things that are powering our services, keep getting vulnerabilities, keep scanning vulnerabilities. And if you're following the project of Claude Mythos, that is a collaboration of big tech companies around the world, such as Antropic, Google, Amazon, etc., collaborating on using AI to detect vulnerabilities and fix vulnerabilities because the detection of them is accelerating and the exploitation of them is accelerating.
Last year, there was the, there was a set of vulnerabilities found in the Ingress controllers called Ingress Nightmare. And Ingress is what you use to expose your services for users out of Kubernetes. So, Kubernetes is like a bubble that runs inside your cloud or your infrastructure, but then you need to make sure that your users can reach those services and use Ingress for that.
That is to say, everybody uses it. So, vulnerabilities in those controllers are really, really impactful. So, what do we do? We approach our clusters, our infra, with the thought about defense in depth. We will think about cluster security itself, and we will think about workload security. So, if you're a software engineer, you probably have heard like, oh, you don't use outdated libraries, don't use insecure configurations, make sure that your prompt is sanitized, etc., your input is sanitized and your prompt in the AI case.
But there is more to that. And in terms of cluster security, Jiki, Google Kubernetes, manage Google Kubernetes, offers you a couple of things. One is, I'll go bottom up, one is your very basic foundational network security, and you will use this again on whatever infrastructure that you use, whatever your cloud provider, your infrastructure provider, make sure that your clusters are private, meaning there is no public IP address assigned to the nodes.
There is no public IP address assigned to the control plane, and your cluster and the control plane of the cluster are not accessible over the Internet. You will have in Google VPC native clusters, meaning that the routing out of the cluster and within the cluster always goes through the VPC. So, all of the firewalls, not gateways, egress rules, Cloud Armor, and all of that is applicable to the in-cluster traffic as well.
And also use a DNS endpoint. And I have a typo there. If you're paying attention, you will have noticed. A DNS endpoint is a way to eliminate the need for bastion hosts, because if your control plane of Kubernetes is not accessible over the Internet, how are your users and the administrators of the cluster going to administer the cluster, right?
You need to connect to the cluster somehow. And typically with private clusters, we would have had to have a bastion, so a dedicated VM that is kind of super secured and has the SSH port open. And we could tunnel through that port or connect directly to that VM and connect to Kubernetes from there because it would live in the same network as the cluster.
This is tedious, this is tiresome, this is very difficult to maintain as well because you need to make sure that it's updated, make sure that the bastion itself doesn't have vulnerabilities. So we are replacing that with a DNS endpoint in Google Cloud, meaning that there is a TLS terminating endpoint in front of the GKE control plane, allowing you to access it through a DNS with an identity-aware proxy in front, meaning that your, yes, it is an endpoint that is available through the Internet, but there is an identity-aware proxy, meaning an endpoint that will validate accesses and validate the authorization mechanisms for the control plane.
And there is also a TLS termination, like I said, so you're not getting a direct access into the cluster. It's rather terminated on the endpoint, like it is all managed, so you don't need to worry about it, but it is more secure than having just a port exposed. Then secure boot and shielded VMs, we're talking about encryption of the boot mechanism, the boot sequence on the disk of every VM, meaning that the boot sequence of your VM that comprises the node of the cluster is not compromised and cannot be compromised.
It's a really easy feature to enable, you should just enable it by default on everything and require it to be enabled everywhere. And policy controller is a feature that allows you to deploy the same policies and the same security mechanisms across clusters. So if, let's say, you have multiple regions and you're serving your application in multiple regions to people around the world, you will have multiple clusters.
Each of those clusters needs to have the same policies, security controls, etc. Policy controller allows you to do that. And something else that we will talk about in terms of workload security, one is binary authorization, and I'll explain in more detail, but basically, that is your supply chain security, that is your making sure that the image that is running in the cluster has been built internally through your CI/CD pipelines, and has been validated against your compliance and security requirements.
And workload identity, which just enables us to not use static keys. So let's talk about that a little bit in a little bit more detail. So traditionally, typically, each service that runs in Kubernetes needs an identity, right? That identity needs to be mapped to a cloud identity so that it can access other cloud resources, such as buckets, your object storage, your databases, your Kafka, your Pub/Sub, and all of the other places that it potentially needs access to.
So typically, in the old days, we would create a Kubernetes service account, attach it to the Kubernetes service that we created for, and then maybe mount some sort of key. Maybe create a service account in in Google IAM or create an AWS user with access keys and mount those keys into the pod in order to use it as an identity.
That is, of course, super not secure. And we are all moving away from static keys to dynamically generated tokens. Everybody, I mean, Google, Amazon, Azure, all of the cloud, big cloud providers will have a functionality to assign a cloud identity to your community service, and then that identity can generate tokens temporarily. So in Google, this is called workload identity federation for GKE, different from just normal workload identity.
And what this does is every cluster has a Google assigned identity, a principle set, every namespace in the cluster has a principle set. So an identity that already exists, you can see here namespace, for example, for an application one, we create a namespace, that namespace will automatically have a Google IAM identity, and a Kubernetes service account, just like we were doing before, we will have a Kubernetes IAM principle this time, corresponding to that Kubernetes service account.
I really like the namespace side of things because for security and for separation of concerns, it is a nice practice to separate your applications into namespaces. So each app, each service gets their own namespace, that namespace already has an identity, so I don't even need to create a Kubernetes service account and assign it to my application. I can just deploy the namespace and use the namespace principle set to access other cloud resources.
This is really convenient and really easy to use. And in terms of how this works inside the applications, when you use the normal libraries, you will have, like, this will use workload identity automatically. You will have the generation of the tokens happen automatically once you use the official libraries. And that incident that I mentioned at the beginning about Tesla in 2018 when their control plane was compromised.
So their Kubernetes cluster is running in KS, Kubernetes dashboard was broken in because they failed to authenticate and authorize it properly. And the AWS credentials for the services, because this was in 2018. Dynamic token generation didn't yet exist. So their credentials for other AWS services were just there in the control plane and they were leaked. And the result was a 100,000, more than $100,000 bill for crypto miners.
That was not nice. So we all have moved on to dynamic token generation in cloud providers. So please use this. The next is policy controller. Like I mentioned, it is a way to deploy security policies across your clusters. You don't need to have multiple clusters. You can use it in one cluster to just use a set, like apply a set of security policies globally.
What is interesting here is that it is basically a managed gatekeeper. So if you are on another cloud provider, you can just use gatekeeper. That is an open source tool on Google cloud. You have the policy controller. What's interesting is that it comes with ready-made bundles for your compliance frameworks. So if you need to be compliant with PCI DSS, you can just apply that set of policy, that policy bundle onto your Kubernetes cluster.
And it will make sure that the cluster is compliant and the workloads are compliant with PCI DSS. Isn't that wonderful? And you can, of course, have individual constraints and you can write your own policy bundles depending on your organization. But the ready-made bundles, and these are just three examples that I found interesting. CIS benchmark is, of course, your basic security framework, how to harden your infrastructure and your services.
PCI DSS is a very hardcore one. So that's an interesting example that you can apply a ready-made bundle that will make sure that your Kubernetes workloads are compliant with PCI DSS. And bot security policy was more lightweight if you just want, you're not, you don't need to be compliant with any regulatory frameworks, but you just want to make sure that your clusters are secure.
You can just use that. A very, very interesting feature. And another very interesting feature and very powerful one, a little bit more complex to set up. So policy controller and others, you can just enable that on the cluster and you can use ready-made bundles. Nothing else to do. Binary authorization requires a bit more setup. But what it does, essentially, is every single Docker image that is deployed into your Kubernetes clusters or into Cloud Run will be cryptographically verified.
So, again, this is a managed service on Google Cloud. But there is a -- I'm forgetting the name of the open source one at the moment. But there is an open source version of this. And there are many managed versions of this. And basically, what you do is you create KMS keys, encryption keys, for your parts of the approval process of the -- of an image before it gets rolled out.
So, for example, you can have a build a tester. And a tester is just a terminology of binary authorization. So, an entity that will create an authorization. So, build a tester, for example, make -- can be integrated into your CI/CD pipeline, making sure that the image that is being deployed has been built using your CI/CD. It hasn't been compromised.
It hasn't been swapped. It hasn't been hijacked. It is the image that has gone through your CI/CD pipelines. And then you can have many more testers. For example, a prod ready. After you have done your tests in non-prod, you can certify that this image has gone through those tests. You can have a compliance tester. For example, if you have a compliance team that needs to validate images before they go into a specific production environment.
If you have, let's say, a restricted production environment. And so on. So, instead of sitting on a big, long change management call, where everyone needs to discuss every single change that they're trying to introduce. And that gets approved verbally or through a change management system. This gives you an encrypted cryptographic signature for each image. And it works through the digest of the image.
So, like an attack scenario would be if your CI/CD pipeline gets compromised, for example, or an image on its way to the deployment gets compromised. The attacker can introduce a backdoor into your Docker image. So you're thinking that you're deploying a legitimate application internally developed, but actually it's been compromised. And the cluster will just deploy it thinking that it is legitimate.
But instead, you will get malware that runs in production. However, if you have the binary authorization enabled, then what happens is that your image will be validated, the digest of the image. So you can see here that this is backdoor column latest. Latest is a tag. Tags can be overwritten. So somebody can create an image that looks legitimate, including the tag, but it's actually compromised.
Digest of an image is not replaceable, you cannot overwrite it. So the admission controller will validate that that digest has a corresponding cryptographic signature with binary authorization. And it will not let the malicious image to be deployed. Very cool. Of course, it has an additional cost because this uses KMS, this uses encryption, but it is a very, very powerful way to make sure that what's running in your production has actually gone through all of your internal review processes.
But we're not always running Kubernetes, are we? Kubernetes is not the only way to run things. So Cloud Run is a serverless container platform. An alternative on AWS is Fargate or Lambda. To an extent, we can say that it is an alternative to Cloud Run. All Azure, I'm not entirely sure. I'm not that familiar with Azure products, but maybe I'm sure they have an alternative.
But basically it's where you, when you take a container image, throw it to the cloud and it runs and you're not managing in front. What happens with Cloud Run is that by default, it creates, it gets an HTTPS endpoint. Same with Lambda, right? It gets a DNS address. That DNS address can accept calls from wherever in the, on the internet.
So, and it will allow, but the default setting of ingress for Cloud Run is allow all ingress. So what we will want to do is to disable all ingress and put a load balancer in front of our Cloud Run service and an identity aware proxy. This enables user authentication built in. You don't have to build your user authentication separately inside your application.
You can leverage the normal general Google Cloud auth. Another little tip is do not use the default service account. Again, Google Cloud Identities, you will want to create a dedicated service account for Cloud Run service, or at least for a group of services. And you can also use binary authorization here too. The attack scenario would be that your Cloud Run service has its default DNS address.
If you didn't set the ingress setting to internal and load balancer, if you left it as ingress allow all, a threat actor could guess the DNS address of your Cloud Run service and bypass authentication that you have built here with load balancer and identity aware proxy. So you will want to change ingress to ingress traffic internal and load balancer in order to make sure that nobody can bypass this from outside of your network.
Of course, if somebody has infiltrated your network, they will still be able to access the Cloud Run service by passing the identity aware proxy. But if somebody is inside of your network, you have other problems to think about. For internet access, you have to set this ingress setting and also set up the identity aware proxy. And also you can use Cloud Armor in this case as well for web protection.
Let's move on to data. For data, I wanted to use two examples of services that are very much Google Cloud. AlloyDB is a Postgres database, but is a super managed, super scalable and hybrid workload database, meaning that it is a traditional Postgres operational database that you can use for your services. But it also has analytical capabilities and AI capabilities without impacting performance of the operational side of things.
That is very cool. And BigQuery is a big data platform that powers data analytics, data science, provides data for AI use cases, super scalable again, and very easy to manage. So alloyDB being a database, it means private networking, of course. So how do we do that? There are two options. One is VPC peering. So LODB instance itself, like this is the database instance, will be deployed into a managed VPC by Google.
You don't see that VPC, but it's not deployed like RDS instances in AWS are deployed into your subnet. LODB and Cloud SQL will not be deployed into your subnet. So there is a peering established between your VPC and the so-called tenant VPC. This means that both VPCs are fully connected. You have the IP address conflict risks and you have the transitive peering, which if you had another VPC somewhere there, another cloud, for example, or data center, private data center, the services there wouldn't be able to access your database because transitive peering is not allowed.
So what we have instead is private service connect. It is a concept of private networking and exposing services privately within the Google network backbone. So not your VPC in Google Cloud, but the Google network on which Google Cloud and Google itself run global hyperscaled private network. So what happens is your LODB, your database will expose something called a PC endpoint and your services inside your VPC can privately connect to this endpoint.
The advantage is that you can have these endpoints anywhere in other VPCs, in other projects, in other organizations, et cetera. You don't need VPNs, you don't need peerings, you don't need to fully connect networks. You just dedicate a single IP address outside of your subnet range and connect through that IP address through a specific configuration of hops.
And that configuration of hops looks a little bit like this. It looks complicated. I do wonder why it has to be so complicated. Maybe another layer of abstraction here from Google managed would have been nice. But this is what you need to do, basically. LODB exposes the service attachment. You can use that service attachment to create a PSE endpoint, which is just a forwarding rule.
And then you can have a private DNS zone for convenience. You can have like a .internal private DNS zone in this VPC. And then you would say your database instance name .internal points to that internal IP address. And then your Kubernetes services and other services that run in this VPC will be able to just call this DNS address.
It gets resolved and it gets forwarded on to the LODB instance requires a bit of setup. I highly recommend terraforming this and using it in repeated deployments without having to think about it much. I really like the private DNS zone setup because the address of like, oh, my database .internal, that's where in my application needs to connect.
You don't need to keep a set of IP addresses somewhere. You don't need to remember complicated connection strings. It makes the developer's life a lot easier. But what about BigQuery? BigQuery doesn't have an instance. BigQuery doesn't have IP addresses. So we need to protect data itself. And on top of having just normal IAM, BigQuery allows you to have column-based and row-based security, which is very cool.
You can have your data set where your analysts or your AI agent has access to, but not to everything. So sensitive fields like address or social security number needs to be masked. We don't care about them in terms of our analytical or AI use cases and we don't want to give access to them. So what we'll do is we will define something called taxonomy and organized tags.
And then define access based on those tags and those policies. This is what it looks like high risk social security number, medium risk address. And then in the schema we apply, in the schema of the table, we apply the policy tags. And then based on those tags, we will or will not have access. Row-based security works a tiny bit differently.
In order to define it, you need to actually execute SQL queries inside the table to set internal SQL, because BigQuery is still SQL compatible. So you will need to set the internal access mechanisms within the table. But basically what it does is you choose a column which contains values on which you will want to filter. So, for example, if you have multi-regional customers and you want a specific person or a specific team to only be able to access their Asia-Pacific customers, you will just have a region field in the table and then enable row-based security on the region.
Another use case for that is, for example, if you have a consent field in your registration form and customers can consent to analytics or research data science being done on their data, you can store that consent as a true/false inside a BigQuery table and then enable access to customer data based on the content of that table. Really convenient.
And this is the SQL query that you need to run, filter using region Asia-Pacific. And let's finish with global perimeters. So, our cloud is, in general, a set of publicly accessible API endpoints. If you access any cloud resource inside the cloud console, you will notice that everything has an address, an HTTP address. So, everything is just an HTTP endpoint.
How do we protect the cloud in general? A very important thing to do is to have your security guardrails installed. In GCP, this is org policies. In AWS, it is the control tower and the security policies, SCPs. And in Azure, not sure what it is, but there are equal functionalities as well. In org policies, you have predefined constraints such as, for example, no service account keys.
Those persistent, permanent keys that we spoke about at the beginning with workload identity federation. You can prohibit service accounts from having keys. You can skip default network creation because you want to manage your own networks. And default networks can be an attack surface. You can require a shielded VM. Remember, I said the boot loader sequence that needs to be protected on your VMs.
And it's an easy feature to enable. Well, you can have an org policy that forces all of your newly created VMs inside your environment to have shielded VM enabled. And so on. Like a bunch of other, these, the ones that you can see on the screen are the policies that we enable for everybody we work with. These are the baseline security without even going into regulatory compliance or any specific requirements.
These are the baseline security guardrails that you should have. With org policy and with SCPs, you can also write your own. So something that we found interesting to do, for example, is restricting direct user IAM grants. So only groups or service accounts or principal sets can get IAM roles assigned to them instead of individual users, because individual users, like it's just a bad practice to have each user a different set of IAM roles.
Make sure that they are in groups and then the group gets IAM roles assigned to it. And something for your budget, for your financial department, for your spend. Restricting compute engine machine types. This was actually inspired by an AWS SCP that one of our customers had. Make sure that in dev or in sandbox nobody can create a VM with 96 CPUs, 16 GPUs and a gazillion terabytes of RAM and just leave it running over the weekend.
People do that. You will be surprised. People do do that. And making sure that those accessible environments where people experiment, especially data scientists experiment, are restricted to slightly less expensive. Let's put it this way. VMs is an important thing to do. And one of my favorite features of Google Cloud, probably, and one is that that is quite unique to Google Cloud, again, is VPC service controls.
Basically, firewall and steroids. What happens in our cloud? When you have a VPC, the services that run inside the VPC, your Kubernetes, your VMs, your Airflow clusters, Kafka clusters, et cetera, they have IP addresses and they have the network boundary. So you can apply firewall rules and filtering and all sorts of things that you traditionally apply to your networks. However, as soon as we go out of that, BigQuery, Cloud Functions, anything serverless, Cloud Run, some of the serverless Dataplex features, Vertex AI features, the serverless Spark pipelines, all of that, even storage and all of your Pub/Sub and serverless data stores, none of this will be under the umbrella of firewalls.
So how do we protect boundary access? We have IAM, of course, but what about the boundary access? Don't we want to have a multiple layer protection on our sensitive data? Of course we do. So VPC enables you to have a perimeter, a guardrail around your entire cloud and around your APIs. What we do is we choose the APIs that we want to protect.
Typically for a data platform, for example, this will be storage, BigQuery, Pub/Sub maybe, Composer, Manage Airflow, Vertex AI. And we choose the projects that we want to put inside this perimeter. And the perimeter is, I mentioned, like a firewall on steroids, meaning that it will filter the HTTP requests that are incoming to these APIs in these projects.
And once we enable the perimeter, every outside request gets denied. Meaning that only requests that exist within these projects and these APIs are allowed. And then we choose which external requests we want to allow using ingress/segress policies, whitelisted identities, and other things that we want to, like, enable, like the Office VPN, the Office IP range, et cetera.
The way this works is through DNS. So these APIs that are inside the perimeter will have a different DNS address. Rather than being BigQuery.GoogleAPIs.com, it will now be restricted.GoogleAPIs.com. And every single request that comes to that endpoint gets filtered and scammed. The best practice for organizing those APIs and those projects: Your data, your data platform, your golden dataset goes into a data perimeter.
So all of your projects that contain data and all of the APIs that are around data will go into the data perimeter. Your services need to run somewhere, so maybe you want to protect them as well. So you put them in a compute perimeter. The reason we separate compute and data is because typically a company's data warehouse or data lake contains tons and tons of super sensitive data, so we really want to protect that separately.
But the services still need to generate the data and write it into the data warehouse or lake house. So we set up bridges or specific access policies, ingress and egress policies, that will allow the specific services that do write data into the data warehouse that those requests are allowed to go through. And then, of course, data might be your product and you might be sharing that data, specific datasets, with your partners, customers, etc.
If you are doing that, those projects and those APIs, those data stores, are better be in a different perimeter. I know not everybody does that. Some people elect to have all data in the same perimeter. And that is okay if they have other strict controls on the IAM side of things and on the separation of projects and datasets side of things. But ideally, you will have a separate data sharing perimeter.
And another example is you might want to have a general production perimeter where everything that is around production, But some services are more sensitive than others. And you will want to have them in a special restricted perimeter. For example, if you're a bank, you might have your core services being in a restricted perimeter. Or if you have KMS keys and special secrets, they might be in a separate perimeter.
And then we still recommend to have data stored separately. So, to recap, defense in depth. You secure your services, your runtimes. You secure your data. You better secure your data, given how much we are now all using AI. And you secure your perimeters. You make sure that your overall cloud is protected. Thank you for your attention. You can get the slide deck through the QR code on your left.
And if you want to stay in touch again, you can scan the QR code on the right. Have a lovely day and enjoy the rest of the conference. I think we're still live and I have a question. What about using these services, but we do not want the data to be stored in the cloud as some data are too sensitive to go into the cloud.
I can tell you there are ways to store hypersensitive data in the cloud still. I have done healthcare data platforms and banking data platforms and financial services data platforms in the cloud. If you secure it properly, there is absolutely no concern. But if your compliance is still hesitating and you have data that is in the data center, that is fine.
You set up VPNs between or direct interconnect between your data center network and your cloud network. And you make sure that the firewalls are open in a specific way that allow access to specific data. And then you run the services and the experimentation. Very often it's, of course, the AI workloads and the specific data science, data analytics workloads that go into the cloud first.
Because they're not operational critical and they're not critical to the core business side of things. And we start experimenting, but you still have the network connection. The network, that network connection is a VPN. So it will be an IPsec tunnel or an encrypted tunnel. And you can also have a direct network connectivity between a data center and a cloud platform.
All cloud providers have those options available. So you just traverse through a private network that goes over the internet or over a dedicated cable. And have access to that data. It is a lot of work to set it up, but it is very much possible and it is a very common use case. Thank you for the question.
If anyone else has any other questions, don't hesitate to write in the chat or reach out to me after the session. That is also absolutely fine. If you scan the QR code for the slide deck, you will notice that there were more slides than I presented. Some technical examples of how to set up binary authorization, how to set up DVC service controls, so that you can consult those and see how it is implemented in reality using Terraform and things like that.
Thank you. Thank you for coming. You're very welcome. And yes, it was a lot of technical details and technical features. But once you have a look and maybe have a read about each of those features and products, you'll see that it's not that difficult, bar maybe I would say binary authorization and VPC service controls are a bit difficult to implement.
So it would take a bit of time to wrap your head around those. But the rest are like those are the features that you really need to implement in your environments to make sure that they're secure. All right, I'm going to wrap it up. Thank you again for coming and have a wonderful day. you.
Transcribed automatically; names checked against the speaker record. Select a time to jump there.
Article based on this talk
Perché i carichi di lavoro AI sono sicuri solo quanto il cloud su cui girano
Natalie Godec illustra la difesa in profondità per cluster, servizi serverless, dati e perimetri cloud, con esempi Google Cloud validi per qualsiasi provider.
In breve
Natalie Godec, Senior Cloud Architect presso Zencore, sostiene che la protezione dei carichi di lavoro AI inizia ben al di sotto del modello: ogni agente e ogni app gira comunque su container, reti e archivi di dati che vanno protetti. Con esempi Google Cloud che, a suo dire, valgono per qualsiasi provider, delinea un approccio di difesa in profondità su tre livelli: servizi, dati e perimetro cloud.
Punti chiave
I sistemi vanno progettati tenendo conto della sicurezza, altrimenti il prezzo da pagare sarà alto.
Le tecnologie preferite da tutti (k8s, Postgres, servizi cloud) sono in realtà molto facili da proteggere. Qui scoprirà gli strumenti per farlo.
Non è necessario bloccare l'infrastruttura: molti strumenti consentono di applicare i guardrail di sicurezza in modalità dry run.
La visibilità è fondamentale! Monitorare costantemente i sistemi e condividere queste informazioni con gli sviluppatori apre la strada a una sicurezza migliore.
La piattaforma sotto l'AI va ancora protetta
Godec apre ricordando che le discussioni sulla sicurezza dell'AI si fermano spesso a model armor, prompt injection e spiegabilità. Sono temi importanti, afferma, ma il runtime, la rete e i dati sottostanti contano altrettanto. "Non si tratta solo della sicurezza dell'AI in sé." (2:29) Avverte che il rischio cresce quando si sviluppa in fretta: "E a volte dimentichiamo che dobbiamo davvero pensare a queste cose, soprattutto quando facciamo vibe coding e creiamo cose a destra e a manca e le distribuiamo senza avere alcuna conoscenza o senza pensare minimamente a dove girerà quella cosa che abbiamo creato in vibe coding." (3:24)
La posta in gioco, secondo i dati citati dalla relatrice, è alta. Afferma che nel 2024 il 93% delle aziende usava Kubernetes in produzione e che il 46% dei cluster nel mondo gira su versioni a fine vita o non supportate. Cita la compromissione Kubernetes di Tesla nel 2018, i segreti di aziende Fortune 500 trovati in repository pubblici e le vulnerabilità Ingress Nightmare nei controller Ingress come prova che anche organizzazioni con molte risorse sbagliano.
Hardening di Kubernetes, livello per livello
Per i cluster, Godec procede dal basso verso l'alto. Nodi e control plane non dovrebbero avere indirizzi IP pubblici, i cluster dovrebbero essere VPC-native in modo che le regole firewall e di egress si applichino al traffico interno al cluster, e un endpoint DNS con un identity-aware proxy può sostituire il bastion host, noioso e difficile da mantenere. Le Shielded VMs con secure boot proteggono la sequenza di avvio di ogni nodo e, a suo avviso, andrebbero semplicemente attivate ovunque.
Poi viene l'identità. Montare chiavi cloud statiche nei pod era il vecchio metodo, e l'incidente Tesla mostra perché non funziona: credenziali AWS lasciate in un control plane mal protetto sono trapelate e, come ha raccontato, hanno portato a una bolletta di crypto-mining di oltre 100.000 dollari. "E tutti ci stiamo allontanando dalle chiavi statiche verso token generati dinamicamente." (12:23) Con la Workload Identity Federation for GKE ogni namespace ha già un'identità, quindi i team possono concedere l'accesso a bucket, database o Pub/Sub senza creare alcuna chiave.
Policy Controller, versione gestita del progetto open source Gatekeeper, applica le stesse policy di sicurezza su più cluster e include bundle pronti all'uso come il benchmark CIS e PCI DSS. La binary authorization va oltre, usando nella pipeline CI/CD attestor basati su KMS per firmare ogni immagine. Il suo scenario di attacco è un'immagine con backdoor caricata con un tag dall'aspetto legittimo. I tag si possono sovrascrivere, ma "il digest di un'immagine non è sostituibile, non si può sovrascrivere." (20:53) L'admission controller rifiuta qualsiasi immagine il cui digest non abbia la firma corretta, sostituendo lunghe call di approvazione verbale delle modifiche con una prova crittografica.
Servizi serverless e dati
Cloud Run (con Fargate o Lambda come equivalenti approssimativi su AWS) riceve un endpoint HTTPS pubblico e per impostazione predefinita consente tutto l'ingress, quindi un attaccante che indovina l'indirizzo potrebbe aggirare qualsiasi autenticazione posta davanti. La sua soluzione: "Quindi quello che vorremo fare è disattivare tutto l'ingress e mettere un load balancer davanti al nostro servizio Cloud Run e un identity-aware proxy." (22:21) Sconsiglia inoltre il service account predefinito e suggerisce Cloud Armor per la protezione web.
Per i dati, mette a confronto il VPC peering e Private Service Connect per AlloyDB. Il peering collega completamente le reti, rischia conflitti di indirizzi IP e blocca l'accesso transitivo, mentre un endpoint Private Service Connect richiede un solo indirizzo IP e funziona tra progetti e organizzazioni diversi. Aggiungendo una zona DNS privata, le applicazioni si connettono a un semplice nome interno: "Rende la vita degli sviluppatori molto più facile." (28:19) BigQuery, che non ha istanze né indirizzi IP da proteggere, si basa sulla sicurezza a livello di colonna tramite policy tag (ad esempio per mascherare i numeri di previdenza sociale) e sulla sicurezza a livello di riga, che può filtrare per regione o per un campo di consenso del cliente.
Guardrail e perimetri per l'intero cloud
Poiché ogni risorsa cloud è in definitiva un endpoint API HTTP, Godec conclude con i controlli a livello di organizzazione. Le org policy su Google Cloud, e le service control policy su AWS, possono bloccare le chiavi dei service account, evitare la creazione della rete predefinita, imporre le Shielded VMs e limitare l'assegnazione diretta di ruoli IAM ai singoli utenti. Una policy personalizzata limita i tipi di macchina costosi nelle sandbox: "Assicuratevi che in dev o in sandbox nessuno possa creare una VM con 96 CPU, 16 GPU e una quantità infinita di terabyte di RAM e lasciarla accesa per tutto il weekend." (33:19)
Una delle sue funzionalità preferite, VPC Service Controls, traccia un perimetro attorno ad API e progetti selezionati e respinge le richieste esterne a meno che le policy di ingress ed egress non le consentano. Raccomanda perimetri separati per dati, calcolo, dati condivisi e servizi ad accesso fortemente limitato, come i sistemi core di una banca.
Dati sensibili e cloud
Nella sessione di domande e risposte, uno spettatore chiede dei dati considerati troppo sensibili per il cloud. Godec attinge ai propri progetti: "Ho realizzato nel cloud piattaforme dati sanitarie, piattaforme dati bancarie e piattaforme dati per servizi finanziari. Se le si protegge correttamente, non c'è assolutamente alcun problema." (40:07) Dove i team di compliance esitano ancora, un tunnel VPN cifrato o un interconnect diretto può collegare un data center ai carichi di lavoro cloud. "Configurarlo richiede molto lavoro, ma è assolutamente possibile ed è un caso d'uso molto comune." (41:23)
Guarda il talk
"Secure By Design: Architecting your cloud and AI workloads from the perspective of infosec" di Natalie Godec, 44 minuti: https://www.womentech.net/video/secure-design-architecting-your-cloud-and-ai-workloads-perspective-infosec
La relatrice
Natalie Godec è Senior Cloud Architect presso Zencore, un'ingegnera di sistemi e infrastrutture diventata cloud architect, con una predilezione per le piattaforme dati e la sicurezza. È Google Developer Expert in Cloud, Women Techmakers Ambassador e speaker tecnica esperta.
Domande a cui risponde questo talk
Perché la sicurezza della piattaforma conta ancora per i carichi di lavoro AI?
Come si amministra un cluster GKE privato senza un bastion host?
Perché i team dovrebbero sostituire le chiavi statiche dei service account con la workload identity federation?
In che modo la binary authorization blocca un'immagine container compromessa?
I dati altamente sensibili possono restare fuori dal cloud ed essere comunque usati dai carichi di lavoro cloud?
Bozza generata con l'AI dalla trascrizione del talk. Revisione redazionale in attesa.
Frameworks and ideas mentioned
Defense in depth
Secure by design
CIS Benchmarks
PCI DSS
Resources mentioned
Speaker's slide deck (shared via QR code, with Terraform examples for binary authorization and VPC Service Controls)
Gatekeeper (open source policy tool)
Terraform
Cite this talk
Natalie Godec. "Secure By Design: Architecting your cloud and AI workloads from the perspective of infosec." WomenTech Network, 2026. https://www.womentech.net/video/secure-design-architecting-your-cloud-and-ai-workloads-perspective-infosec