Usage limits and quotas for Zitadel virtual instances

How to meter, limit and block tenants on a self-hosted Zitadel, what each control does, and what to confirm in the docs for your release before you rely on it.

On this page

Why SaaS teams set Zitadel usage limits per virtual instance

Usage limits and quotas on a Zitadel virtual instance let a SaaS operator meter each tenant's consumption of platform capacity and stop one tenant from degrading the service or inflating shared running costs for everyone else. In a multi-tenant setup where several customers share one self-hosted Zitadel, that control is what keeps a single customer's login bursts, API traffic or automation from becoming everyone's problem. Zitadel organizes tenants as instances, virtual tenants with full data isolation, and organizations sit inside instances where projects and users live. The instance is therefore the natural unit to meter, because it is the boundary at which settings and data are already separated.

Limits are a separate operational control from the tenant boundary. Isolation decides whose data and configuration a tenant can see; quotas decide how much of the shared platform a tenant can use and what happens when it reaches that ceiling. Keeping the two apart matters because a tenant can be perfectly isolated and still exhaust the database connections, request throughput or audit storage that the whole deployment depends on. Before designing any quota, confirm the exact limit controls, their names, their units and whether they apply per instance or per organization against the Zitadel documentation for the release you run, since this area changes between versions. The Zitadel releases page is the place to check which release notes mention changes to these controls.

The practical decision is which tenants need metering, which signals you will alert on, and what action you accept at each threshold. A quota that only produces a notification needs a named owner who responds, while a quota that blocks an instance needs an agreed customer communication and a way to restore service. Ask your Zitadel vendor or your own platform team to confirm the exact figures and behavior for your release in writing before you put any tenant on a plan. Those answers define the controls you can rely on, and they should be settled before you draft customer terms that reference them.

Which Zitadel quota control fits which problem

This table compares five quota and limit controls for self-hosted Zitadel virtual instances. For each one, it shows the problem the control addresses, the operator decision it supports and the main trade-off. Where exact behavior is not confirmed, the cell names the question to put to Zitadel before you depend on it.

ControlProblem it addressesOperator decisionMain trade-off
Request per second quotaStopping one tenant's traffic spike from degrading shared API and login capacitySet a ceiling on requests per second for each instanceTight limits can throttle legitimate bursts. Confirm how throttled requests are reported to clients.
Action run second quotaLimiting time-heavy actions, such as custom scripts, that one tenant runs repeatedlyDecide which tenants get a ceiling on action execution timeProtects other tenants but can slow customer workflows. Confirm the unit of measure and reset behavior.
Usage notification webhooksWarning operators and tenant admins before a limit is reachedChoose the usage levels that trigger alerts, billing review or outreachAlerts are only useful if your receiver is monitored. Confirm the payload format and which levels fire.
Instance blockingStopping a tenant that exceeds its agreement or abuses the platformDecide when to block, who approves it and how the customer is toldBlocking cuts off all access for that tenant. Plan a reversal path and confirm what happens to stored data.
Audit trail age limitsControlling how long each tenant's event history is keptSet retention to match customer contracts and your compliance dutiesShorter retention lowers storage but can remove evidence. Confirm whether old events are deleted or archived.
WAF cookies for blocked trafficMarking and stopping abusive clients at the edge before they reach ZitadelDecide whether blocking is enforced at your proxy or WAF layerDepends on your edge stack. Confirm the cookie name, lifetime and how it interacts with your WAF rules.

How a tenant request meets a quota, a webhook or a block

The flow starts with a tenant's browser or API client reaching the edge proxy or WAF, which is where a block cookie can stop traffic before it reaches Zitadel. Allowed requests pass to the Zitadel API, where the quota check decides whether to allow, send a usage notification to the operator's webhook, or block the instance. Each decision should leave an audit record in PostgreSQL. Validate every branch against the Zitadel release you run, since limit settings and webhook events differ by version.

Illustrative design flow for usage limits on a self-hosted Zitadel, to be validated against your release.

How to set up quotas for one tenant instance

This sequence takes one Zitadel virtual instance from a test tenant to a verified quota setup, with thresholds, notifications, blocking and audit retention each confirmed before the settings reach production.

  1. Create a test instance

    The platform team creates a dedicated virtual instance in a staging Zitadel deployment, using the same release and configuration as production. Use a test domain and a test organization with a few sample users and one application so that metered actions can be generated. Confirm the instance appears in the Console or admin API for the chosen release and that its issuer and login pages load. Keep the instance separate from any real customer tenant so that threshold tests do not affect live data.

  2. Record baseline usage

    Run a representative set of logins, token requests and admin actions against the test instance and record the request and action volumes the platform reports for each metered category. Repeat the run at normal and peak load shapes you expect from a customer of each tier. Confirm that the recorded baseline matches what your load tool sent, within the tolerance you accept. Store the figures with the release version so later threshold choices can be traced back to measured behavior.

  3. Define thresholds per tier

    Product and platform owners set request and action rate limits and the usage levels that trigger notifications for each commercial tier, based on the baseline. Write each threshold as a named value with its tier, metric, window and owner. Ask your Zitadel contact or check the quota documentation for the chosen release to confirm which metrics are supported and how the per-second windows are applied. The output is a reviewed table that engineering can apply without interpretation.

  4. Configure notification webhooks

    The platform team points the usage-level notifications at an endpoint you operate, such as a billing or customer success service, and sets one notification per threshold level. Confirm in the docs for the release which events are sent, how they are signed and how retries work, and build the receiver to validate signatures and ignore duplicates. Verify by pushing the instance past its first warning level and confirming that exactly one event arrives with the expected instance and threshold values.

  5. Configure blocking and the blocked-traffic response

    Set the action taken when a tenant reaches its hard limit, which may be blocking the instance or throttling requests. Decide how blocked traffic is answered at the edge, including any WAF rule and the cookie or challenge it issues, and confirm the exact behavior in the release documentation before relying on it. Verify by exceeding the hard limit in staging and checking that legitimate tenants in other instances still log in, that the blocked instance returns the documented response, and that the block lifts when usage falls back under the limit.

  6. Set audit retention

    Configure how long audit trail entries are kept for each instance, based on your contractual and regulatory obligations for tenant activity. Confirm the retention setting and whether it is applied per instance or globally in the docs for your release, and check how entries are exported before older ones are removed. Verify by creating test events, advancing the retention window in staging or waiting for the configured cleanup, and confirming that entries inside the window remain queryable while older ones are removed as documented.

  7. Test each threshold in staging

    Run one test per threshold level, per tier, and per blocking path, and record the observed notification, throttling and block behavior against the table from the threshold step. Include a test where two instances reach limits at the same time to confirm isolation. Confirm that every expected event, response and audit entry matches the plan before applying the same settings to production, and keep the test results with the release version as the evidence for the change.

Security risks in quota and blocking design

Quotas and blocking rules protect your platform and your other tenants, but they also create new attack surface. The risks below cover how a tenant might evade a limit, how a block can hit your own team, and how metering data, cookies, audit records and notifications can leak or be abused.

Bypass through a second instance

A tenant that hits its limit may create another instance, rotate to a new domain, or use a second organization to get a fresh quota. Quotas keyed only to one instance or one domain then stop meaning much. Mitigation: key limits to the billing or contract entity your team controls, and review instance creation through your own onboarding path. Test: as a test tenant, try to create a second instance or domain after hitting a limit and confirm the limit still applies to the account.

Blocking that locks out operators

A block rule written for a tenant can also catch your own administrators if they sign in through a shared path, share an IP range with the tenant, or use the same domain. A blocked instance then stops your support staff from fixing it. Mitigation: define an operator break-glass path that the block rules exclude and keep it documented outside the platform. Test: block a test instance and confirm that your platform administrators can still reach its settings and unblock it.

WAF cookies leaking across domains

Cookies set by a web application firewall to mark or challenge blocked traffic can be scoped too broadly, for example to a parent domain shared by all tenants. One tenant's block state or challenge token then reaches other tenants' sessions. Mitigation: scope every WAF cookie to the narrowest host, set the Secure and HttpOnly flags, and keep cookies off shared parent domains. Test: trigger a block on one tenant host and inspect the Set-Cookie headers and their domain attributes on a sibling tenant host.

Webhooks exposing tenant usage

Usage webhooks that fire at threshold levels send tenant-level data to whatever endpoint is configured. If the endpoint is unauthenticated, misrouted or shared with another tenant's integration, usage patterns and customer names can leak. Mitigation: sign webhook payloads, verify signatures at the receiver, restrict receiver addresses, and send only the fields the handler needs. Test: send a test threshold event to a receiver without the correct secret and confirm it is rejected, then confirm the payload contains no fields beyond the agreed set.

Audit records expiring too early

Audit trail retention that is short by default can delete the evidence an investigation needs, especially for abuse that unfolds slowly or is discovered after a customer dispute. Retention is often set once and forgotten. Mitigation: set audit retention from your incident response and contract needs, export audit data to storage you control, and record who can change retention. Test: pick an event older than your retention target, confirm it is still retrievable from the export, and confirm that retention changes are logged.

Notification paths used for flooding

Usage and block notifications sent by email or chat can be triggered repeatedly by a tenant that crosses thresholds on purpose, or by someone who can change a contact address. The operator's inbox and on-call channel then fill with noise that hides real alerts. Mitigation: deduplicate notifications per threshold, rate-limit recipients, and require verified addresses for alert contacts. Test: push a tenant back and forth across a threshold and confirm the notification count stays within the agreed limit and that the on-call channel still receives the highest-severity alerts.

How limits differ by tenant model

Most B2B SaaS products place every customer as an organization inside a single Zitadel instance. Your usage is then measured across that one instance, so the quota boundary is the whole product rather than any single customer. A limit set at instance level protects the platform as a whole, but it does not by itself stop one noisy customer from consuming the shared allowance. Usage alerts go to whoever operates the instance, usually your platform team, and a block at that level affects every organization at once.

  • Quota boundary: the instance, so per-customer fairness needs your own metering on top of platform limits.
  • Alert audience: platform or SRE owners, with customer success rarely in the loop unless you route alerts to them.
  • Block impact: a block at instance level stops sign-in for all customers, so thresholds need generous headroom and a staged response.
  • Operations growth: one set of settings, one audit trail and one backup target, so operational work grows with features more than with customer count.

Confirm with Zitadel's current documentation which limit and notification settings apply at instance level and which, if any, can be scoped to an organization. Then confirm how many organizations you expect in the first year and how many daily active users that implies for your plan and hosting capacity.

What to confirm before you depend on quotas

Quota features in a self-hosted Zitadel depend on the release you run, how your edge is built, and how your database behaves under failure. Each item below is a confirmation step with a named owner, so the answers are settled before a quota becomes a customer-facing commitment.

Quota dimensions in your release

Confirm which quota dimensions your exact Zitadel release exposes, such as request rate and action run rate per second, and which usage levels can trigger notification webhooks. Ask the Zitadel product team or read the release notes for the version you plan to run, since a dimension you assume exists may be absent or named differently. Record the answer against the version you will pin in production, and revisit it at every upgrade.

Zitadel releases

Per instance or per organization scope

Confirm whether each limit applies to a whole virtual instance or to a single organization inside it. The answer decides whether one noisy customer can exhaust a shared budget for every other tenant on the same instance. Platform engineering should test this with two organizations on one instance and confirm the counters separate as the design assumes.

Blocking and administrator recovery

Confirm what a blocked instance still allows, especially whether instance administrators, the platform operators and the Console can sign in to lift the block. A block that also locks out the people who must remove it turns a usage incident into an outage. The security team and the platform owner should write a recovery runbook and rehearse it in staging before relying on blocking.

Audit trail retention enforcement

Confirm how audit trail age limits are configured, what the default retention is, and whether deletion runs automatically or must be triggered. Compliance and security owners should compare the setting with the retention period their customer contracts and assessment controls require, then confirm that records are not removed before an investigation or an audit window closes. Keep evidence that the setting was applied in production.

WAF cookie support at the edge

Confirm whether your load balancer, ingress or web application firewall can set and honor the cookies used to mark and block traffic, and whether the cookie behavior matches Zitadel's blocking decisions. Network or edge engineers should test this with real blocked and allowed traffic, since a rule that works in a lab may fail behind a second proxy or a CDN.

Limit behavior during database failover

Confirm how request counters, action run counts and block state are stored and recovered when PostgreSQL fails over. If counters reset or lag after a switch, limits may be briefly lenient or wrongly strict. Database and platform engineers should check the supported PostgreSQL versions for your Zitadel release and run a failover test that records quota behavior before and after the switch.

Zitadel database docs

Measuring tenant usage before you set thresholds

Set thresholds from measured usage for each tenant, not from estimates. A limit chosen before you have data either blocks paying customers during a normal busy period or sits so high that it never protects the platform. Start by collecting baseline request volumes and daily active users over a period that includes your normal business cycles, such as month-end reporting, customer onboarding waves and any scheduled batch logins. A few quiet days will understate peaks, and a single launch week will overstate the typical load. Record the baseline per virtual instance, because one large tenant can dominate aggregate numbers and hide the behavior of the rest.

Separate tenant traffic from operator traffic before you read any numbers. Requests from your own administrators, automation that provisions organizations, health probes, and monitoring checks all reach the same instance and can look like tenant load. Identify which service accounts, client identifiers and source networks belong to your operations team, and exclude them from the tenant baseline while keeping them in a separate series. Confirm with your own environment and your Zitadel operations documentation which request paths and identities your proxy and logs can distinguish, since you cannot meter what your logs do not record.

Keep the cost model in view. Zitadel Cloud plans are priced on daily active users, and the Zitadel pricing page is a useful reference for that metric when you compare options. Treat it as a reference for how the metric is defined only. A self-hosted deployment has no cloud invoice, so the metering approach, the counting method and the way a usage level triggers a notification or a block must be confirmed separately against the features your Zitadel version provides. Ask your Zitadel contact or review the release notes for your target version before you assume any counter exists.

Questions teams ask about Zitadel usage limits

What drives the effort to implement quotas on a self-hosted Zitadel?

The effort is driven mainly by how many tenant boundaries you run and how many limits you need to enforce. Each limit type (request and action run rates, usage-level notifications, blocking, audit trail retention, and WAF handling for blocked traffic) needs a defined threshold, an owner, a notification path and a test. Multi-tenant models that use virtual instances add more settings to manage per tenant than models that use organizations inside one instance. Your metering source also matters: if you already export usage data from your product, the work is mostly wiring. If you must build the usage signal first, that adds scope. Ask any partner to list each limit type it will configure, the tenant model it assumes, and how it will test a blocked tenant end to end.

Can an internal platform team set up Zitadel quotas without outside help?

Often yes, if the team already runs Zitadel in production and has someone who understands its instance and organization model. The work touches the identity layer, the edge proxy and your billing or product metering, so the skills needed span identity administration, Kubernetes or infrastructure operations and application engineering. Teams without experience in all three usually take longer and tend to find gaps during the first customer incident rather than during design. A useful self-check is whether your team can answer three questions without research: which component enforces each limit, what a blocked tenant sees, and how you restore access. If not, an outside partner can design and test the limits while your team keeps ownership of them.

How long does quota work take and what sets that time?

No duration is given here because the supplied facts do not include one. Time depends on the number of tenant types, the limits you need, how many environments must be kept in step (development, staging and production), and whether usage notifications feed systems you already run. Test coverage for blocked and restored tenants usually takes as long as the configuration itself. Ask for a written schedule with milestones for design sign-off, configuration in a non-production environment, load and failure testing, and production cutover. A fixed-scope agreement should state which limits are covered and what counts as done.

What does the quota work need from our platform and security teams?

Platform teams need to provide the environment where Zitadel runs, access to the PostgreSQL database and any caching or proxy layers, and a place to apply configuration changes in a controlled way. Security teams should review who can change limits, how blocked-traffic cookies and WAF rules are scoped, and how long audit trail records are kept and where they go. Product and billing teams must agree on the usage levels that trigger notifications and what happens at each level. Confirm early which team approves changes to live limits, because a quota change can lock out paying customers. Document these responsibilities in the scope before work starts.

Can we change quotas later without breaking tenants?

Usually yes, if limits are managed as configuration rather than hard-coded into your application, and if each change is tested in staging first. Lowering a limit can block active customers, so changes should be staged with notification thresholds that warn tenants before enforcement applies. Raising limits is lower risk but can affect shared capacity in your database and network. Keep a change log that records each limit, its old and new value, and the approver. Confirm with your Zitadel version and vendor documentation how each setting takes effect and whether it applies immediately to running instances. Check the current release notes on GitHub before any upgrade that touches these settings.

How is cost split between one-time design and recurring operation?

One-time costs cover discovery of your tenant model, design of each limit and notification threshold, initial configuration, and testing of blocked and restored states. Recurring costs cover monitoring usage data, reviewing thresholds as your customer base grows, handling tenant escalations, applying Zitadel upgrades, and keeping audit trail retention aligned with your policy. Infrastructure and licensing costs depend on your deployment choice. Self-hosted Zitadel is available under AGPL 3.0 for the core, Console and hosted login, as noted in the vendor's licensing post, so review license terms with your legal team before you build on it. Ask any quote to separate design, build, testing and ongoing support so you can see which parts recur.

How DeployOpen scopes and supports Zitadel quota designs

DeployOpen plans, builds, documents and supports quota designs for virtual instances on a self-hosted Zitadel, inside the infrastructure you control. The work starts with the tenant model and the limits your product needs, then turns them into tested settings, alerts and runbooks your own team can operate.

How we scope

  • Written scope lists which tenants, metered actions, usage levels and blocking rules the engagement covers, agreed before work starts.
  • Scope records the Zitadel version, PostgreSQL version and deployment method in use, so limits are designed for your actual environment.
  • Scope names who owns each decision: product sets limits, platform sets enforcement, and support handles customer notices.

How we build

  • Configuration of request and action run second quotas, usage webhooks and instance blocking is applied in a non-production environment first.
  • Notification webhook receivers and alert routing are built and tested against simulated usage levels for each tenant tier.
  • Audit trail age limits and WAF cookie rules for blocked traffic are reviewed against your retention and security requirements.

How we hand over

  • Deliverables include the quota configuration as code, a tested runbook for blocking and unblocking an instance, and an operator guide.
  • Handover covers how to raise or lower a tenant limit, how to read usage data, and which changes need a review.
  • Documentation maps each limit to the business rule it enforces, so auditors and compliance leads can trace how tenant usage is controlled.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, including review of quota settings after each Zitadel release.
  • A retest of quota behavior can follow configuration changes, so limits keep working after upgrades or tenant model changes.
  • Ask for a written quote that lists scope, deliverables, handover items and any retainer terms before committing to the work.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.