Dec 1, live webinar: Agents in production, live: who gives the agent production access?

How Qovery Secures Its Platform: 6 Practices We Run

How we secure Qovery: Gitleaks on stored logs, abliterated AI pentests, write-only credentials, network policies, secrets kept in your cluster and CVE outreach.

Romain Gerard
Staff Software Engineer
Published · 10 min

Key Points:

  • We clean what we store. The engine masks your secret variables in deployment logs before they leave your cluster. Gitleaks scans the logs we keep to catch what masking missed, so we can fix each leak where it starts and delete the logs that held it.
  • We attack ourselves with models that don't refuse. Abliterated open-weight models, with access to our source code, run pentest campaigns against our public endpoints and the components we run next to your workloads. They found a token replay bug, fixed on November 2, 2026.
  • Writing a secret and reading it are two different identities. A leaked writer key lets an attacker write. It does not let them read anything back.
  • A breached service stays contained. Network policies restrict which internal services can talk to each other, and every internal endpoint requires a per-service JWT, so an attacker who gets into one service cannot move sideways.
  • The best secret is the one we never hold. We push customers toward External Secrets Operator and AWS STS so secrets stay in their cluster and credentials expire on their own.
  • When a CVE hits, we tell you first. For NGINX2Root, we listed every cluster still running the legacy NGINX controller and messaged each affected team the morning after disclosure.

Qovery · Agentic DevOps platform
Agent actions, policy-checked before they run
Learn more

Qovery sits in a sensitive spot. We hold access to our customers' cloud accounts, we deploy their code, and we see their deployment logs. If we get security wrong, every company that trusts us is exposed at once. So we treat our own platform as a target and assume that, one day, one of our layers will fail.

October was a hard month for platforms like ours: Wiz counted at least nine AI developer platforms breached, with attackers going after the customer secrets they stored. At the start of November, our platform team switched to red-team mode. Its job is to think like an attacker, break what we built, and get every weakness it finds fixed.

What follows is six practices we run today, which the red team now tests and pushes further. Each one assumes that the layer before it can fail. I'd rather show you what we actually run, including the parts that are not glamorous.

If you want the architecture side (control plane versus data plane, encryption, SOC 2), read Inside Qovery's security architecture first. This post is about the operational side.

1. Gitleaks on the logs we store

Secrets leak into logs. A script runs env to debug something, a library prints its config on startup, or an error message includes the connection string that failed.

For your deployment logs, the first layer is at the source. The engine masks the values of your secret variables in the log lines it produces, before they leave your cluster, so a secret variable echoed during a build shows up masked in the Console.

Masking only works on values we know are secrets. It misses a token pasted into a debug statement in one of our own services, a credential returned by a third-party API and logged as part of an error, or a header that a new log line suddenly includes. When the red team audited our logging in November, it also found paths where known secrets got around the mask. All of these end up in the logs our platform keeps for operations and support.

That is where Gitleaks comes in. Gitleaks is best known for scanning Git history, but its rule set (AWS keys, GitHub tokens, Stripe keys, private keys, generic high-entropy strings and many more) works on any text. This work started in November and is still going. Here is the plan we are running on the logs we store:

  1. Measure. Gitleaks scans the stored logs and flags anything that matches a secret pattern, and we trace each match back to the code that logged it.
  2. Fix at the source. Each leak gets masked where it is produced, in every service that writes logs, so it stops at the next release.
  3. Delete. Logs that contain a secret, or that we have kept longer than they are useful, are deleted.
  4. Monitor. Gitleaks keeps running on new logs, so a leak introduced by a future change gets caught in days.

We also moved the engine's infrastructure logs out of our log store into an archive with restricted read access, so fewer people and tools can read them at all.

The engine masks known secret variables in your cluster before logs leave it. Gitleaks scans the logs Qovery stores for secrets that masking missed, and every match is measured, fixed at the source, deleted and then monitored
The engine masks known secret variables in your cluster before logs leave it. Gitleaks scans the logs Qovery stores for secrets that masking missed, and every match is measured, fixed at the source, deleted and then monitored

A secret that sits in a log for six months is a liability nobody is watching. Logs end up in support tools, exports and backups, and any of those can be read by someone it was not meant for. The less we keep, and the cleaner what we keep is, the less there is to lose.

If you run your own log pipeline, the same approach works with the open-source Gitleaks CLI: gitleaks dir on an exported log directory, or gitleaks stdin in front of your log shipper, will find more than you expect the first time.

2. Pentesting with abliterated AI models

We do classic pentests with external auditors. They are valuable, but they are a snapshot: a team looks at the platform for two weeks, writes a report, and the platform keeps changing the day after.

We wanted something that runs continuously, so we use AI models to attack our own platform. Mainstream models are trained to refuse exactly this kind of task. Ask them to craft an exploit or chain an injection, and you get a polite refusal or a watered-down answer halfway through a run.

So we use abliterated models: open-weight models where the internal "refusal direction" has been identified and removed from the weights (how abliteration works). The model keeps its reasoning and coding abilities but no longer refuses offensive tasks. Running them ourselves has a second benefit: the vulnerabilities they find in our platform never leave our infrastructure through a third-party API.

We point them at two kinds of targets:

  • Our public endpoints. The API, the Console, authentication flows, webhooks: everything an attacker on the internet can reach. The agents probe authorization boundaries (can organization A read organization B's resources?), injection points, and the inputs nobody thought would be hostile.
  • The components next to your workloads. We run campaigns against the Qovery-managed components that sit in front of and next to running workloads (gateways, the in-cluster agent, the deployment path), in production-like environments with workloads running on them, because that is where isolation bugs show up.

We give them the source code

An external attacker has to guess how your platform works. We don't make our models guess: they get read access to the source code of the services they attack. That turns a black-box pentest into a white-box one. The model reads how a request is authenticated, spots the assumption that looks fragile, then goes to the live endpoint to prove whether it actually breaks.

That combination helped us find a replay bug in early November. Our engine, the component that runs deployments in your cluster, calls back to the control plane during a deployment with a signed JWT. Each token carries a two-hour expiry. In the authenticator code, we had installed a custom validator to check the token's subject, and in Spring Security, setting a custom validator replaces the default ones instead of adding to them. The default validators are the ones that check expiry. The result: the expiry was written into every token, and never checked.

A deployment token captured once could therefore be replayed forever. It was still bounded by the organization and cluster claims inside the token, but "forever" is not a lifetime any credential should have.

The fix was a few lines: build the validator with JwtValidators.createDefaultWithValidators(...) so the expiry and not-before checks stay in place, and validate the issuer on top of the subject. We shipped it on November 2, 2026, along with tests that reject expired tokens, tokens that are not yet valid, and tokens with the wrong issuer, subject or signing key. If you use Spring Security's NimbusJwtDecoder with setJwtValidator, check your own code for the same mistake.

Every finding goes into the same triage queue as an external report. We still run human pentests, and the AI campaigns cover the months between two of them.

Keep your secrets in your own cloud
Qovery deploys on your AWS, GCP, Azure or Scaleway account, with STS role assumption and External Secrets Operator built in. Start deploying in under 10 minutes.

3. Separating who can write a secret from who can read it

Most credential leaks are bad because a single key does everything. The key that lets a service store a secret can also read it back, list everything else stored next to it, and delete it on the way out.

We split those powers. The component that writes sensitive information and the component that reads it use different identities, with different permissions, living in different places:

  • The writer identity can put data in. Its IAM policy allows write actions and nothing else: no Get, no List, no decrypt.
  • The reader identity can get data out. It lives only where the data is consumed, and it cannot be used from where the data is produced.

Here is what a writer-only policy looks like on AWS. It is an illustration of the pattern, not our exact policy:

JSON
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "WriteOnly",
      "Effect": "Allow",
      "Action": ["s3:PutObject"],
      "Resource": "arn:aws:s3:::example-sensitive-bucket/*"
    },
    {
      "Sid": "EncryptOnly",
      "Effect": "Allow",
      "Action": ["kms:Encrypt", "kms:GenerateDataKey"],
      "Resource": "arn:aws:kms:eu-west-3:111122223333:key/example-key-id"
    }
  ]
}

With this split, the threat model changes. If the writer's AWS key leaks, an attacker can write garbage into a bucket, which we detect and clean up. They cannot read a single secret, because the read path requires s3:GetObject and kms:Decrypt on an identity they don't have.

The writer identity can only call s3:PutObject and kms:Encrypt, the reader identity can only call s3:GetObject and kms:Decrypt, so a leaked writer key can store data but cannot read anything back
The writer identity can only call s3:PutObject and kms:Encrypt, the reader identity can only call s3:GetObject and kms:Decrypt, so a leaked writer key can store data but cannot read anything back

This is the same idea behind the sts:ExternalId change we shipped last month: don't rely on one layer, and make sure the cloud provider enforces the boundary, not just our code. The details are in how we strengthened Qovery's access to your AWS account.

4. Limiting lateral movement between our own services

The practices above assume a credential leaks. This one assumes one of our services is compromised and an attacker can run code inside it. To move from there, they have to pass two gates on every internal hop, one at the network level and one at the application level.

Network policies: deny by default, allow by name

Every service in our control plane runs with a Kubernetes NetworkPolicy that covers both directions:

  • Ingress is an allowlist of callers. A service only accepts connections from the specific services that need to call it, selected by name. Running in the same cluster or the same namespace grants no access. A compromised pod that is not on the list cannot open a connection.
  • Egress is an allowlist of destinations. A service can reach its own database, its cache, DNS, and the few internal services it depends on. It can reach the internet for the third-party APIs it uses, but not the private network ranges, so it cannot scan or pivot to the rest of our infrastructure that way.
  • The cloud metadata endpoint is blocked. 169.254.169.254 is explicitly excluded from egress. It is the first place an attacker goes after getting a shell in a cloud workload, because it hands out the credentials of the node. From our pods, it doesn't answer.

Every internal call carries a service JWT

A network policy decides who can open a connection, not what the caller can do once connected. So endpoints under /internal/ require authentication, exactly like our public API. The only exceptions are a handful of endpoints that return nothing sensitive, like the public keys used to verify tokens. Each internal service gets its own service account JWT:

  • One identity per service. The token's subject names the service, like slack-bot or webhook-receiver, and it is signed with a key pair dedicated to it. We verify it against the public key, so the verifying side holds nothing that can mint tokens.
  • Scoped to its own endpoints. A service's token is only accepted on the paths that service is supposed to call. The Slack bot's token opens the Slack bot's endpoints and nothing else, even though it is a perfectly valid token.
  • Revocable on its own. Each token has its own key ID. If one leaks, we revoke that key, and only that service is affected.
  • Deny by default. Any path that is not explicitly declared is rejected, whoever is asking.

A compromised slack-bot can reach the core API, but its service JWT only opens the Slack bot's own endpoints. Network policies block its connections to the core database, the webhook receiver and the cloud metadata endpoint
A compromised slack-bot can reach the core API, but its service JWT only opens the Slack bot's own endpoints. Network policies block its connections to the core database, the webhook receiver and the cloud metadata endpoint

With both gates in place, an attacker who compromises the Slack bot can reach the core API, because the network allows it, but can only call the Slack bot's endpoints, because the token does not open anything else. An attacker who compromises a service that is not on the list cannot even connect. Every step sideways needs a new, separate breach.

5. Pushing customers toward secrets we never hold

Everything above protects what Qovery stores. The stronger move is to store less of it in the first place, so we make the secure option the easy one and push customers toward it. For how we store the secrets we do hold, see how Qovery stores your secrets.

External Secrets Operator: secrets stay in your cluster

With Qovery's built-in secrets, a secret value goes through our API and storage layer before it reaches your cluster. It is encrypted, but it does transit through us.

With Secret Manager Access, Qovery installs External Secrets Operator in your cluster. Your services reference secrets stored in AWS Secrets Manager, AWS Parameter Store or GCP Secret Manager, and ESO fetches the values directly from your provider into your cluster. Qovery knows the name of the secret. It never sees the value.

With built-in secrets, the value goes through the Qovery API and Qovery storage before reaching your cluster. With External Secrets Operator, ESO in your cluster fetches the value from your own secret manager, so Qovery knows the secret name but never the value
With built-in secrets, the value goes through the Qovery API and Qovery storage before reaching your cluster. With External Secrets Operator, ESO in your cluster fetches the value from your own secret manager, so Qovery knows the secret name but never the value

You also get what your secret manager already gives you: versioning, native rotation, IAM policies and access logs, all in your own account.

AWS STS: credentials that expire on their own

A static access key is valid until someone remembers to rotate it, which in practice means until it leaks. So when you connect an AWS account, the recommended method is STS role assumption: a CloudFormation stack creates an IAM role, and Qovery requests short-lived credentials through AWS STS each time it needs to act. Nothing long-lived is stored on our side, and you can revoke access instantly by deleting the stack.

Inside the cluster, the same logic applies. The roles Qovery creates follow IRSA (IAM Roles for Service Accounts), so each component gets its own scoped, temporary credentials instead of sharing the node's role.

Static credentials are still supported, because some setups need them. But when a customer can use STS, we tell them to.

6. Reaching out when a CVE hits your stack

When a critical CVE comes out, we patch our own systems and post an update. A platform that deploys your workloads also knows which customers run the affected component. So when a CVE is likely to hurt our customers, we check who is exposed and contact them before they open a ticket.

The latest example is NGINX2Root, a set of nginx vulnerabilities that Xint and Wiz published on November 18, 2026. The most serious one, Nginx2Shell (CVE-2026-123007), is a heap memory corruption in NGINX's HTTP/2 flow control that lets an unauthenticated attacker run code. It affects nginx from 1.9.5 to 1.31.8 with HTTP/2 enabled and scores 9.2 on CVSS v4.0. A public proof of concept was out by November 19 (Help Net Security).

Envoy Gateway has been the default ingress on Qovery clusters since earlier this year, and it is not affected. But moving services to Envoy does not uninstall the legacy NGINX ingress controller. Wherever it was still installed, NGINX kept its own public load balancer, reachable from the internet even with no traffic going through it.

Before: traffic goes through Envoy Gateway but the legacy NGINX controller is still installed with its own public load balancer, so NGINX2Root can reach it. After setting k8s.remove_nginx and redeploying, NGINX and its load balancer are gone
Before: traffic goes through Envoy Gateway but the legacy NGINX controller is still installed with its own public load balancer, so NGINX2Root can reach it. After setting k8s.remove_nginx and redeploying, NGINX and its load balancer are gone

Here is what we did:

  1. Confirmed the exposure the same evening. Our team checked that the NGINX build we shipped (ingress-nginx controller 1.13, with HTTP/2 on) was in the affected range. The ingress-nginx project was archived in March 2026, so no patched controller release was coming.
  2. Listed every exposed cluster across all organizations, meaning every cluster where the NGINX controller was still installed.
  3. Contacted each affected team the next morning in its shared Slack channel, naming its clusters, explaining the fix (set the k8s.remove_nginx cluster setting and redeploy) and what it changes, and offering to check the clusters or do the change with them.

The full timeline and the checks to run before removing NGINX are in our NGINX2Root security advisory. For the wider context, see the runbook we published when ingress-nginx reached end of maintenance.

What ties it together

Each of these practices assumes that something else has already failed:

If this fails......this still holds
A secret slips past masking into a logGitleaks flags it, we fix the source and delete the log
A bug ships to a public endpointContinuous AI pentesting gives us a chance to find it first
A writer key leaksIt cannot read anything back
One of our services is breachedNetwork policies and per-service JWTs stop it from moving sideways
Qovery's storage is compromisedSecrets managed through ESO were never there, and STS credentials have already expired
A CVE hits a component on your clusterWe tell you which clusters are exposed, with the fix

What's coming next: two IAM roles, elevated access only when needed

The next thing we are shipping goes back to AWS access. STS makes credentials short-lived. It does not make them narrow. Today, the role Qovery assumes in your account carries every permission the platform might ever need, from creating a VPC to installing an add-on, even though most days we only use a small part of it.

So we are splitting it in two:

  • A maintenance role for day-to-day operations. This is the role Qovery assumes by default: deploying your services, scaling, upgrading what already exists, and keeping the cluster healthy. Its permissions are limited to that.
  • An elevated role for the rare operations that need more. Installing an add-on or changing the shape of your infrastructure requires broader permissions. Qovery only uses this role when such an operation is requested, and you decide when to grant it.

The result is the same split as in section 3, applied to your AWS account. If the day-to-day credentials were ever abused, the blast radius would be what maintenance can touch, not everything the platform could theoretically do.

This feature is in progress. We will announce it in the changelog when it ships, along with the updated CloudFormation template.

The red team is still at it, so expect this list to grow, and expect us to keep publishing what we find and fix.

If you want to see how this applies to your setup, talk to us. If you find a vulnerability, write to [email protected].

Romain Gerard
About the author
Romain Gerard

Romain is a staff engineer at Qovery working on the control plane and AI integrations. He writes about distributed systems, incident response, and MCP-based tooling.

Next step

Keep your secrets in your own cloud

Qovery deploys on your AWS, GCP, Azure or Scaleway account, with STS role assumption and External Secrets Operator built in. Start deploying in under 10 minutes.