Kudurru

Kudurru is the cluster settings singleton named default.

API versionkudurru.io/v1alpha1
KindKudurru
ScopeCluster
Resourcekudurrus.kudurru.io
Subresourcesstatus

Spec

KudurruSpec owns cluster configuration. The generator replaces Settings' generic Go carrier with the strict nested schema from config.Schema.

FieldTypeDescription
spec.settingsobject
spec.settings.authobject
spec.settings.auth.localLoginstringWhether people can sign in to the dashboard with a username and password: enabled for everyone, admins-only for builtin admins, or disabled (identity providers only). kudurru admin on the server's admin socket always works, so you cannot lock yourself out. Gates POST /api/v1/auth/login.
One of: enabled, admins-only, disabled
Length: at most 8192
spec.settings.auth.sessionobject
spec.settings.auth.session.idleTimeoutstringSign a dashboard user out after this long without activity, e.g. 30m; at least 1m. Every request starts the time again.
Length: at most 8192
spec.settings.auth.session.lifetimestringLongest a dashboard sign-in lasts however active it is, e.g. 12h; then the user signs in again and their roles are looked up afresh. At least auth.session.idleTimeout.
Length: at most 8192
spec.settings.auth.session.securestringWhether browsers send the session cookie only over HTTPS (the cookie's Secure attribute). auto (default) decides per request and suits most setups; always is for a proxy that terminates TLS without telling kudurru; never is only for plain HTTP on a network you trust.
One of: auto, always, never
Length: at most 8192
spec.settings.auth.tokensobject
spec.settings.auth.tokens.maxLifetimestringLongest lifetime of a new API token, e.g. 2160h (90 days); a token created without an expiry gets this one. 0 (default) allows tokens that never expire.
Length: at most 8192
spec.settings.blockPageobject
spec.settings.blockPage.contactstringHow people reach you, shown as "Ask your administrator": an email address, e.g. admin@home.example, or a link, e.g. https://wiki.home.example/dns. Empty leaves the line out.
Length: at most 8192
spec.settings.blockPage.dashboardURLstringAddress of the dashboard the block page links administrators to, e.g. https://192.168.1.10:8080; the link opens /queries?domain=... there. Empty builds it from the block page address and listeners.api; set it when the dashboard is reached under another name or through a reverse proxy.
Length: at most 8192
spec.settings.blockPage.enabledbooleanShow browsers a page that explains why a site was blocked, instead of a connection error. Turning it on starts the block page listener (listeners.blockPage) and allows the blockPage block response; choose that response in blocking.defaultResponse or a Policy. Blocked A and AAAA queries then point at blockPage.ipv4 and blockPage.ipv6; other types get NODATA.
spec.settings.blockPage.ipv4stringAddress browsers are sent to for the block page, e.g. 192.168.1.10: this server's LAN address, or a VIP or load balancer in front of the block page. Blocked A queries are answered with it under the blockPage response. Empty picks the first specific address of listeners.blockPage, else of listeners.dns; when every listener binds all addresses (0.0.0.0, ::) there is none, and blockPage.enabled is refused.
Length: at most 8192
spec.settings.blockPage.ipv6stringIPv6 address browsers are sent to for the block page, e.g. fd00::10; blocked AAAA queries are answered with it under the blockPage response. When blockPage.ipv4 is empty too, one is picked from the listeners as for IPv4; without an IPv6 address, AAAA queries get NODATA and browsers use IPv4.
Length: at most 8192
spec.settings.blockPage.messagestringText under the heading that tells people why the site is blocked and what they can do (plain text, at most 2000 characters; HTML is shown as text).
Length: at most 8192
spec.settings.blockPage.rateLimitintegerMost block page requests one client address may make per minute, e.g. 120, with bursts up to the same number; beyond it the page answers 429 Too Many Requests. 0 removes the limit.
Format: int64
Range: 0 to 100000
spec.settings.blockPage.showDetailsbooleanShow what blocked the name (the list, rule, blocked service, safe search or policy), looked up in the recent query log. Off shows only the domain, the client, the node and the time, which keeps your list choices private.
spec.settings.blockPage.titlestringHeading of the block page, e.g. This site is blocked (plain text, at most 200 characters).
Length: at most 8192
spec.settings.blockingobject
spec.settings.blocking.allowDegradedbooleanAnswer queries and report ready while blocklists are still loading, e.g. right after a restart; queries are filtered by the lists already loaded. Off, the node reports not ready until every referenced list is loaded, so load balancers keep traffic away.
spec.settings.blocking.blockTTLstringHow long devices may remember a block answer, e.g. 10m, unless the Policy sets blockTTL. Keep it short: after you allow a name, devices keep the cached block until it expires.
Length: at most 8192
spec.settings.blocking.catalogueobject
spec.settings.blocking.catalogue.adguardServicesURLstringOff when empty. Opt-in: a URL of AdGuard's HostlistsRegistry blocked-services file, e.g. https://raw.githubusercontent.com/AdguardTeam/HostlistsRegistry/main/assets/services.json, adds its services (about 140) to the catalogue next to kudurru's own; kudurru's entries win when both have an ID. That data is GPL-3.0 licensed: kudurru does not ship it, your instance downloads it (the leader, on the catalogue refresh interval; the other nodes copy the leader's), and the dashboard marks those services as from AdGuard (GPL-3.0). Check that the licence suits how you use and share the data. docs/deploy/blocked-services.md.
Length: at most 8192
spec.settings.blocking.catalogue.refreshIntervalstringHow often the catalogue at blocking.catalogue.url and the AdGuard services at blocking.catalogue.adguardServicesURL are checked for a new version, e.g. 24h; at least 1m. A conditional GET, so an unchanged document is not downloaded again.
Length: at most 8192
spec.settings.blocking.catalogue.urlstringLeave empty to use the blocked-services and safe-search catalogue built into kudurru. A URL, e.g. https://example.com/kudurru-catalogue.json, replaces it with your own document (schema version 2, or 1, docs/deploy/blocked-services.md). The leader downloads it and the other nodes copy the leader's; a document that fails validation leaves the current catalogue in service.
Length: at most 8192
spec.settings.blocking.customIPobject
spec.settings.blocking.customIP.v4stringIPv4 address blocked A queries are answered with when the block response is customIP, e.g. 192.168.1.10 for a server of yours that shows a notice. Empty answers NODATA.
Length: at most 8192
spec.settings.blocking.customIP.v6stringIPv6 address blocked AAAA queries are answered with when the block response is customIP, e.g. fd00::10. Empty answers NODATA.
Length: at most 8192
spec.settings.blocking.defaultResponsestringWhat a blocked query is answered with, unless the client's Policy (blockMode) or the BlockList (response) chooses otherwise. zeroIP (default) makes the connection fail at once and suits most networks; blockPage shows browsers a page that explains the block; refused is discouraged, because devices then ask another DNS server.
One of: zeroIP, nxdomain, customIP, refused, blockPage
Length: at most 8192
spec.settings.blocking.enabledbooleanBlock ads, trackers and other listed names for the whole network; off answers every query unfiltered. To pause blocking for a while, use the temporary disable on the dashboard instead (a runtime toggle, not this key). Applies to forwarded queries, not to your own zones.
spec.settings.blocking.initStrategystringWhat happens at start while blocklists load: fast (default) serves at once using the copies saved on disk; blocking waits until every list is loaded; failOnError also exits when a list cannot be loaded.
One of: fast, blocking, failOnError
Length: at most 8192
spec.settings.blocking.refreshIntervalstringHow often blocklists are downloaded again when a list sets no refreshInterval of its own, e.g. 24h; at least 1m. In a cluster the leader downloads and the other nodes copy its result by digest.
Length: at most 8192
spec.settings.brandingobject
spec.settings.branding.accentColorstringSix-digit hexadecimal accent color, e.g. #2457A6, for the dashboard and block page. Enterprise only. Accessible text and interaction colors are derived from it; empty keeps the selected theme's accent.
Length: at most 8192
spec.settings.branding.faviconstringStatic PNG data URL for the browser icon, at most 64 KiB decoded and 256 pixels per dimension. Enterprise only. Empty uses the built-in icon. Upload through the Branding editor.
Length: at most 87406
spec.settings.branding.logoDarkstringStatic PNG data URL for dark surfaces, at most 64 KiB decoded and 1024 pixels per dimension. Enterprise only. Empty uses the light logo if supplied, otherwise built-in artwork. Upload through the Branding editor; remote URLs and SVG are not accepted.
Length: at most 87406
spec.settings.branding.logoLightstringStatic PNG data URL for light surfaces, at most 64 KiB decoded and 1024 pixels per dimension. Enterprise only. Empty uses the dark logo if supplied, otherwise built-in artwork. Upload through the Branding editor; remote URLs and SVG are not accepted.
Length: at most 87406
spec.settings.branding.namestringPublic display name on the dashboard, sign-in and block page. Enterprise only. At most 80 characters; empty uses kudurru. Saved branding is retained when the license no longer permits it.
Length: at most 8192
spec.settings.cacheobject
spec.settings.cache.maxEntriesintegerHow many answers the cache holds, e.g. 200000; when it is full the least recently used answer is dropped. More entries mean more cache hits and more memory; 0 turns the cache off.
Format: int64
Range: at least 0
spec.settings.cache.maxTTLstringLongest time an answer stays cached, even when its record asks for more, e.g. 24h; lower it so changed addresses show up sooner. 0 sets no upper limit.
Length: at most 8192
spec.settings.cache.minTTLstringShortest time an answer stays cached, even when its record asks for less, e.g. 5s. Raising it saves upstream queries but keeps changed addresses longer; 0 honors every record's TTL.
Length: at most 8192
spec.settings.cache.negativeTTLstringLongest time a "does not exist" answer (NXDOMAIN or NODATA) stays cached, e.g. 5m; shorter lets a newly created name resolve sooner. Below it the zone's SOA minimum applies (RFC 2308).
Length: at most 8192
spec.settings.cache.prefetchobject
spec.settings.cache.prefetch.thresholdintegerRefresh popular answers shortly before they expire, so nobody waits for the upstream: an answer asked for this many times within cache.prefetch.window counts as popular, e.g. 5. 0 turns prefetching off.
Format: int64
Range: at least 0
spec.settings.cache.prefetch.windowstringTime over which the hits for cache.prefetch.threshold are counted, e.g. 2h.
Length: at most 8192
spec.settings.cache.serveStaleobject
spec.settings.cache.serveStale.answerTTLstringTTL given to an expired answer served this way, e.g. 30s, so clients ask again soon; after a failed refresh, queries for the entry also stop waiting for the upstream for this long. 0 means 30s (RFC 8767).
Length: at most 8192
spec.settings.cache.serveStale.maxWaitstringHow long a query for an expired entry waits for a fresh upstream answer before the expired one is sent, e.g. 1800ms; 0 means 1800ms (RFC 8767 client response timer).
Length: at most 8192
spec.settings.cache.serveStale.ttlstringWhen every upstream server fails, keep answering from expired cache entries for up to this long after they expired, e.g. 72h, so names you already use keep working through an outage. 0 turns it off (RFC 8767 serve-stale).
Length: at most 8192
spec.settings.controlobject
spec.settings.control.allowedNetworks[]stringClient networks allowed to query DNS, for example 192.168.1.0/24 or fd00::/64. Empty allows all clients; loopback always passes this network check. Other clients receive REFUSED before local, cached or upstream answers. At most 1024 IPv4 or IPv6 CIDRs; changes take effect without restart.
Items: at most 10000
spec.settings.control.blockedQTypes[]stringDNS query types refused for every client, including loopback, for example ANY or HINFO. Empty blocks none. At most 256 case-insensitive DNS mnemonics or explicit TYPE1 through TYPE65535 values; changes take effect before local, cached or upstream answers without restart. Malformed queries still drop silently.
Items: at most 10000
spec.settings.databaseobject
spec.settings.database.querylogobject
spec.settings.database.querylog.factsbooleanCopy the individual queries, not only the statistics. At 1000 queries per second that is about 25 GB a day before retention; off keeps the cluster-wide charts, totals and top lists but the All nodes query log is empty.
spec.settings.database.querylog.retentionobject
spec.settings.database.querylog.retention.rawstringHow long individual queries are kept in the central database, e.g. 168h (7 days); whole days are dropped. 0 keeps them. Statistics are kept like on the nodes: per minute 35 days, per hour 400 days, per day forever.
Length: at most 8192
spec.settings.database.querylog.shipbooleanWith database.dsn set, every node copies its query log and statistics into the central database, so the dashboard's All nodes view shows every node's queries and totals whichever node serves it. Each node keeps its own querylog.db too. Needs querylog.sink sqlite.
spec.settings.dnssecobject
spec.settings.dnssec.enabledbooleanValidate forwarded DNS answers against the configured trust anchors. Invalid or incomplete proofs return SERVFAIL with an extended DNS error; unsigned delegations still work. Off by default for compatibility. A forward zone can override this default with spec.forward.dnssecValidation.
spec.settings.dnssec.negativeTrustAnchors[]objectTemporary exceptions for broken signed domains (RFC 7646); at most 128. Every exception needs a reason and an absolute expiry no more than seven days away. It covers the domain and descendants, never sets AD, and stops applying at expiry even on cache hits. Reload and restart do not extend it.
Items: at most 10000
spec.settings.dnssec.negativeTrustAnchors[].domainstringRequired. Domain whose signatures temporarily cannot be checked, e.g. broken.example; includes its descendants.
Length: at most 8192
spec.settings.dnssec.negativeTrustAnchors[].expiresAtstringRequired. Absolute RFC3339 expiry, e.g. 2026-10-15T12:00:00Z; no more than seven days from now. Expired entries are harmless and can be removed.
Length: at most 8192
spec.settings.dnssec.negativeTrustAnchors[].reasonstringRequired. Why validation is temporarily bypassed, in at most 256 characters; record the incident or repair being tracked.
Length: at most 8192
spec.settings.dnssec.trustAnchors[]stringAdditional trusted DS or DNSKEY records in DNS presentation format, e.g. a complete DS record for a private signed zone. At most 64. With useBuiltinAnchors off these replace the shipped root anchors, and at least one is required. Changes invalidate the old validation cache context immediately.
Items: at most 10000
spec.settings.dnssec.useBuiltinAnchorsbooleanTrust the IANA root DS records shipped with this version. Software upgrades or an operator change maintain these anchors; no keys are trusted automatically from upstream responses. Turn off only when dnssec.trustAnchors supplies all trust roots you need.
spec.settings.querylogobject
spec.settings.querylog.anonymizestringHow client addresses are hidden under the anonymize_client privacy mode: prefix keeps only the network (IPv4 /24, IPv6 /48), so devices in one network look alike; pseudonym replaces each address with a code that is stable for a day and cannot be reversed.
One of: prefix, pseudonym
Length: at most 8192
spec.settings.querylog.enabledbooleanRecord the queries each node answers, for the dashboard's query log, statistics and charts; off stops new recording and preserves earlier local history. Each node keeps its own log (querylog.db with rollups, the stats API).
spec.settings.querylog.excludeobject
spec.settings.querylog.exclude.clients[]stringClients whose queries are never logged, e.g. 192.168.1.20, 10.0.0.0/8 or a client name such as nas: IP addresses, CIDR prefixes or client names.
Items: at most 10000
spec.settings.querylog.exclude.domains[]stringNames that are never logged, e.g. *.home.arpa or connectivitycheck.gstatic.com: exact names, *.suffix for a domain and everything below it, or /regex/.
Items: at most 10000
spec.settings.querylog.exclude.sudnbooleanLeave out names that never leave the local network, which keeps local discovery noise out of the log: localhost, .local, .home.arpa and private and link-local reverse zones (special-use names, RFC 6761).
spec.settings.querylog.privacystringHow much of each query is kept: full keeps everything; the other modes hide client addresses, query names or both, and nothing keeps only per-minute totals. Applied once when the query is recorded, so it cannot be undone for queries already logged. Only full stores the answer summary.
One of: full, anonymize_client, hide_domains, hide_domains_clients, nothing
Length: at most 8192
spec.settings.querylog.retentionobject
spec.settings.querylog.retention.maxDBBytesstringLargest size of the query log database on each node, e.g. 10GiB; when it is exceeded the oldest queries are deleted first. 0 removes the cap.
Length: at most 8192
spec.settings.querylog.retention.rawstringHow long individual queries are kept, e.g. 720h (30 days); 0 keeps them until querylog.retention.maxDBBytes is reached. The totals behind the charts are kept longer: per minute for 35 days, per hour for 400 days, per day forever.
Length: at most 8192
spec.settings.querylog.sinkstringWhere queries are recorded: sqlite (default) keeps them in a database the dashboard reads; slog writes one JSON log line per query without adding database rows, for an external log system.
One of: sqlite, slog
Length: at most 8192
spec.settings.querylog.sinks[]objectAdditional destinations that receive every recorded query next to querylog.sink, e.g. a ClickHouse table, Grafana Loki, a dnstap collector or log lines for a log pipeline while the dashboard keeps its database; at most 8. Each has its own bounded queue: a slow or failing destination loses only its own queries, which are counted, and never delays DNS answers, the local database or the live view. Queries arrive with the privacy mode and exclusions already applied, nothing under the nothing mode, and nothing while querylog.enabled is off; only a dnstap sink with raw: true, which an administrator sets, receives queries as they were, never excluded ones. Changes apply without a restart: an unchanged entry keeps running, a removed one finishes what it holds, and a new one starts with new queries only.
Items: at most 10000
spec.settings.querylog.sinks[].attemptsintegerHow many times one batch is sent when the destination reports that it was not stored and may be sent again, 1 to 10 (default 3); 1 never retries. A batch whose outcome is unknown is never sent twice; after the last attempt the batch is dropped and counted.
Format: int64
Range: 1 to 10
spec.settings.querylog.sinks[].batchSizeintegerLargest number of queries sent in one write, 1 to 10000 and no more than queueSize (default 1000, or queueSize when that is smaller).
Format: int64
Range: 1 to 10000
spec.settings.querylog.sinks[].clickhouseobjectDestination of a sink of type clickhouse; required for that type and refused for any other.
spec.settings.querylog.sinks[].clickhouse.caRefobjectWhere the CA certificates (PEM) that sign the server's certificate are read from, for a private CA; empty trusts the system's certificate authorities. Set exactly one of secretRef, file or env; the value itself never enters the settings.
spec.settings.querylog.sinks[].clickhouse.caRef.envstringName of an environment variable that holds the value, e.g. QUERY_LOG_EXPORT_PASSWORD. It is read only on nodes that list it in credentials.allowedEnvironment.
Length: at most 8192
spec.settings.querylog.sinks[].clickhouse.caRef.filestringAbsolute path of a file that holds only the value, e.g. /run/secrets/query-log-export. It is read only on nodes that list this exact path in credentials.allowedFiles.
Length: at most 8192
spec.settings.querylog.sinks[].clickhouse.caRef.secretRefobjectKubernetes only: one key of a Secret in the namespace kudurru runs in, as {name, key}, e.g. {name: query-log-export, key: password}. The Secret must carry the label kudurru.io/query-log-sink: "true".
spec.settings.querylog.sinks[].clickhouse.caRef.secretRef.keystringRequired. Key inside the Secret, e.g. password.
Length: at most 8192
spec.settings.querylog.sinks[].clickhouse.caRef.secretRef.namestringRequired. Name of the Secret, e.g. query-log-export.
Length: at most 8192
spec.settings.querylog.sinks[].clickhouse.compressionstringgzip (default) compresses each batch before it is sent; none sends it as it is, for a proxy that cannot pass compressed requests.
One of: gzip, none
Length: at most 8192
spec.settings.querylog.sinks[].clickhouse.databasestringDatabase of the table (default kudurru): letters, digits and underscores.
Length: at most 8192
spec.settings.querylog.sinks[].clickhouse.passwordRefobjectWhere the password of username is read from. Set exactly one of secretRef, file or env; the value itself never enters the settings.
spec.settings.querylog.sinks[].clickhouse.passwordRef.envstringName of an environment variable that holds the value, e.g. QUERY_LOG_EXPORT_PASSWORD. It is read only on nodes that list it in credentials.allowedEnvironment.
Length: at most 8192
spec.settings.querylog.sinks[].clickhouse.passwordRef.filestringAbsolute path of a file that holds only the value, e.g. /run/secrets/query-log-export. It is read only on nodes that list this exact path in credentials.allowedFiles.
Length: at most 8192
spec.settings.querylog.sinks[].clickhouse.passwordRef.secretRefobjectKubernetes only: one key of a Secret in the namespace kudurru runs in, as {name, key}, e.g. {name: query-log-export, key: password}. The Secret must carry the label kudurru.io/query-log-sink: "true".
spec.settings.querylog.sinks[].clickhouse.passwordRef.secretRef.keystringRequired. Key inside the Secret, e.g. password.
Length: at most 8192
spec.settings.querylog.sinks[].clickhouse.passwordRef.secretRef.namestringRequired. Name of the Secret, e.g. query-log-export.
Length: at most 8192
spec.settings.querylog.sinks[].clickhouse.tablestringTable the queries are inserted into (default queries): letters, digits and underscores. Create it first; kudurru does not.
Length: at most 8192
spec.settings.querylog.sinks[].clickhouse.urlstringRequired. Base URL of the ClickHouse HTTP interface, e.g. https://clickhouse.example:8443 or http://clickhouse:8123. No user name, password or query in the URL. Over http the password and the queries cross the network unencrypted.
Length: at most 8192
spec.settings.querylog.sinks[].clickhouse.usernamestringClickHouse user that may insert into the table, e.g. kudurru; empty sends no credentials.
Length: at most 8192
spec.settings.querylog.sinks[].dnstapobjectDestination of a sink of type dnstap; required for that type and refused for any other.
spec.settings.querylog.sinks[].dnstap.caRefobjectFor a tls: target, where the CA certificates (PEM) that sign the collector's certificate are read from; empty trusts the system's certificate authorities. Set exactly one of secretRef, file or env; the value itself never enters the settings.
spec.settings.querylog.sinks[].dnstap.caRef.envstringName of an environment variable that holds the value, e.g. QUERY_LOG_EXPORT_PASSWORD. It is read only on nodes that list it in credentials.allowedEnvironment.
Length: at most 8192
spec.settings.querylog.sinks[].dnstap.caRef.filestringAbsolute path of a file that holds only the value, e.g. /run/secrets/query-log-export. It is read only on nodes that list this exact path in credentials.allowedFiles.
Length: at most 8192
spec.settings.querylog.sinks[].dnstap.caRef.secretRefobjectKubernetes only: one key of a Secret in the namespace kudurru runs in, as {name, key}, e.g. {name: query-log-export, key: password}. The Secret must carry the label kudurru.io/query-log-sink: "true".
spec.settings.querylog.sinks[].dnstap.caRef.secretRef.keystringRequired. Key inside the Secret, e.g. password.
Length: at most 8192
spec.settings.querylog.sinks[].dnstap.caRef.secretRef.namestringRequired. Name of the Secret, e.g. query-log-export.
Length: at most 8192
spec.settings.querylog.sinks[].dnstap.certRefobjectFor a tls: target that requires mutual TLS, where the client certificate (PEM) is read from; needs keyRef. Set exactly one of secretRef, file or env; the value itself never enters the settings.
spec.settings.querylog.sinks[].dnstap.certRef.envstringName of an environment variable that holds the value, e.g. QUERY_LOG_EXPORT_PASSWORD. It is read only on nodes that list it in credentials.allowedEnvironment.
Length: at most 8192
spec.settings.querylog.sinks[].dnstap.certRef.filestringAbsolute path of a file that holds only the value, e.g. /run/secrets/query-log-export. It is read only on nodes that list this exact path in credentials.allowedFiles.
Length: at most 8192
spec.settings.querylog.sinks[].dnstap.certRef.secretRefobjectKubernetes only: one key of a Secret in the namespace kudurru runs in, as {name, key}, e.g. {name: query-log-export, key: password}. The Secret must carry the label kudurru.io/query-log-sink: "true".
spec.settings.querylog.sinks[].dnstap.certRef.secretRef.keystringRequired. Key inside the Secret, e.g. password.
Length: at most 8192
spec.settings.querylog.sinks[].dnstap.certRef.secretRef.namestringRequired. Name of the Secret, e.g. query-log-export.
Length: at most 8192
spec.settings.querylog.sinks[].dnstap.identitystringdnstap identity of every message, e.g. dns1.home.example; empty sends node.name. At most 255 characters.
Length: at most 8192
spec.settings.querylog.sinks[].dnstap.keyRefobjectWhere the private key (PEM) of certRef is read from. Set exactly one of secretRef, file or env; the value itself never enters the settings.
spec.settings.querylog.sinks[].dnstap.keyRef.envstringName of an environment variable that holds the value, e.g. QUERY_LOG_EXPORT_PASSWORD. It is read only on nodes that list it in credentials.allowedEnvironment.
Length: at most 8192
spec.settings.querylog.sinks[].dnstap.keyRef.filestringAbsolute path of a file that holds only the value, e.g. /run/secrets/query-log-export. It is read only on nodes that list this exact path in credentials.allowedFiles.
Length: at most 8192
spec.settings.querylog.sinks[].dnstap.keyRef.secretRefobjectKubernetes only: one key of a Secret in the namespace kudurru runs in, as {name, key}, e.g. {name: query-log-export, key: password}. The Secret must carry the label kudurru.io/query-log-sink: "true".
spec.settings.querylog.sinks[].dnstap.keyRef.secretRef.keystringRequired. Key inside the Secret, e.g. password.
Length: at most 8192
spec.settings.querylog.sinks[].dnstap.keyRef.secretRef.namestringRequired. Name of the Secret, e.g. query-log-export.
Length: at most 8192
spec.settings.querylog.sinks[].dnstap.rawbooleanfalse (default): every message follows querylog.privacy, as the local query log does: the question and the response code only, rebuilt from the logged query, with the client address truncated or left out and the name replaced by hidden where the mode says so, and nothing under nothing. true sends the DNS messages exactly as received and answered with the real client address and port, whatever querylog.privacy says, also under nothing. Only an administrator (querylog.raw) can save a change of querylog.sinks or querylog.exclude while a raw sink is in place, the change is audited, and each node records an audit event before it sends the first raw message. Excluded clients and domains (querylog.exclude) are never sent, raw or not.
spec.settings.querylog.sinks[].dnstap.serverNamestringName the collector's certificate must carry, for a tls: target; empty uses the host of target.
Length: at most 8192
spec.settings.querylog.sinks[].dnstap.targetstringRequired. Where the collector listens: unix:/run/dnstap/dnstap.sock, tcp:collector.example:6000 or tls:collector.example:6000. kudurru connects, completes the bidirectional Frame Streams handshake and reconnects after a failure. Over tcp the queries cross the network unencrypted.
Length: at most 8192
spec.settings.querylog.sinks[].dnstap.types[]stringWhich dnstap messages are sent; empty sends client_query, client_response, auth_query and auth_response. A local zone's answer is sent as AUTH_*, every other answer as CLIENT_*.
Items: at most 10000
spec.settings.querylog.sinks[].flushIntervalstringLongest time a query waits for its batch to fill before it is sent, 100ms to 1m (default 1s).
Length: at most 8192
spec.settings.querylog.sinks[].lokiobjectDestination of a sink of type loki; required for that type and refused for any other.
spec.settings.querylog.sinks[].loki.bearerTokenRefobjectWhere a bearer token is read from, instead of username and passwordRef. Set exactly one of secretRef, file or env; the value itself never enters the settings.
spec.settings.querylog.sinks[].loki.bearerTokenRef.envstringName of an environment variable that holds the value, e.g. QUERY_LOG_EXPORT_PASSWORD. It is read only on nodes that list it in credentials.allowedEnvironment.
Length: at most 8192
spec.settings.querylog.sinks[].loki.bearerTokenRef.filestringAbsolute path of a file that holds only the value, e.g. /run/secrets/query-log-export. It is read only on nodes that list this exact path in credentials.allowedFiles.
Length: at most 8192
spec.settings.querylog.sinks[].loki.bearerTokenRef.secretRefobjectKubernetes only: one key of a Secret in the namespace kudurru runs in, as {name, key}, e.g. {name: query-log-export, key: password}. The Secret must carry the label kudurru.io/query-log-sink: "true".
spec.settings.querylog.sinks[].loki.bearerTokenRef.secretRef.keystringRequired. Key inside the Secret, e.g. password.
Length: at most 8192
spec.settings.querylog.sinks[].loki.bearerTokenRef.secretRef.namestringRequired. Name of the Secret, e.g. query-log-export.
Length: at most 8192
spec.settings.querylog.sinks[].loki.caRefobjectWhere the CA certificates (PEM) that sign the server's certificate are read from, for a private CA; empty trusts the system's certificate authorities. Set exactly one of secretRef, file or env; the value itself never enters the settings.
spec.settings.querylog.sinks[].loki.caRef.envstringName of an environment variable that holds the value, e.g. QUERY_LOG_EXPORT_PASSWORD. It is read only on nodes that list it in credentials.allowedEnvironment.
Length: at most 8192
spec.settings.querylog.sinks[].loki.caRef.filestringAbsolute path of a file that holds only the value, e.g. /run/secrets/query-log-export. It is read only on nodes that list this exact path in credentials.allowedFiles.
Length: at most 8192
spec.settings.querylog.sinks[].loki.caRef.secretRefobjectKubernetes only: one key of a Secret in the namespace kudurru runs in, as {name, key}, e.g. {name: query-log-export, key: password}. The Secret must carry the label kudurru.io/query-log-sink: "true".
spec.settings.querylog.sinks[].loki.caRef.secretRef.keystringRequired. Key inside the Secret, e.g. password.
Length: at most 8192
spec.settings.querylog.sinks[].loki.caRef.secretRef.namestringRequired. Name of the Secret, e.g. query-log-export.
Length: at most 8192
spec.settings.querylog.sinks[].loki.compressionstringgzip (default) compresses each batch before it is sent; none sends it as it is, for a proxy that cannot pass compressed requests.
One of: gzip, none
Length: at most 8192
spec.settings.querylog.sinks[].loki.labelsmap[string]stringFixed labels on every stream, e.g. {job: kudurru, site: home}; empty means job=kudurru, at most 16. The sink adds node and status_class itself. Keep labels few and constant: per-query values such as the client and the domain travel as structured metadata.
Properties: at most 10000
spec.settings.querylog.sinks[].loki.passwordRefobjectWhere the password of username is read from. Set exactly one of secretRef, file or env; the value itself never enters the settings.
spec.settings.querylog.sinks[].loki.passwordRef.envstringName of an environment variable that holds the value, e.g. QUERY_LOG_EXPORT_PASSWORD. It is read only on nodes that list it in credentials.allowedEnvironment.
Length: at most 8192
spec.settings.querylog.sinks[].loki.passwordRef.filestringAbsolute path of a file that holds only the value, e.g. /run/secrets/query-log-export. It is read only on nodes that list this exact path in credentials.allowedFiles.
Length: at most 8192
spec.settings.querylog.sinks[].loki.passwordRef.secretRefobjectKubernetes only: one key of a Secret in the namespace kudurru runs in, as {name, key}, e.g. {name: query-log-export, key: password}. The Secret must carry the label kudurru.io/query-log-sink: "true".
spec.settings.querylog.sinks[].loki.passwordRef.secretRef.keystringRequired. Key inside the Secret, e.g. password.
Length: at most 8192
spec.settings.querylog.sinks[].loki.passwordRef.secretRef.namestringRequired. Name of the Secret, e.g. query-log-export.
Length: at most 8192
spec.settings.querylog.sinks[].loki.structuredMetadatabooleanAttach client, client_name, domain, qtype, status and trace_id to each line as structured metadata (default true; needs Loki 3.0 or newer with it allowed). false sends them in the JSON line only.
spec.settings.querylog.sinks[].loki.tenantstringTenant ID sent as X-Scope-OrgID, e.g. home; empty for a single-tenant Loki.
Length: at most 8192
spec.settings.querylog.sinks[].loki.urlstringRequired. Base URL of Loki or its gateway, e.g. https://loki.example:3100; /loki/api/v1/push is added. No user name, password or query in the URL. Over http the credentials and the queries cross the network unencrypted.
Length: at most 8192
spec.settings.querylog.sinks[].loki.usernamestringUser name for HTTP basic authentication, e.g. the instance ID of Grafana Cloud; needs passwordRef.
Length: at most 8192
spec.settings.querylog.sinks[].namestringRequired. Short name of this sink, e.g. log-lines: lowercase letters, digits and hyphens, at most 32 characters, unique in the list. It labels the sink's metrics and log messages; sqlite and slog are taken by querylog.sink.
Length: at most 8192
spec.settings.querylog.sinks[].queueSizeintegerHow many queries may wait for this destination, 100 to 100000 (default 10000). When it is full, new queries are dropped for this sink only and counted in kudurru_querylog_dropped_total{stage="sink"}.
Format: int64
Range: 100 to 100000
spec.settings.querylog.sinks[].retryBackoffstringWait before the second attempt, 100ms to 1m (default 1s); it doubles with every further attempt up to 30s.
Length: at most 8192
spec.settings.querylog.sinks[].timeoutstringHow long opening the destination and each write may take before the attempt is abandoned, 1s to 2m (default 10s).
Length: at most 8192
spec.settings.querylog.sinks[].typestringRequired. What kind of destination this is.
One of: slog, clickhouse, loki, dnstap
Length: at most 8192
spec.settings.ratelimitobject
spec.settings.ratelimit.enabledbooleanLimit how many queries per minute one address or network may send over UDP, which blunts floods and reflection attacks. TCP, DoT, DoH, DoQ and DoH3 are never limited, nor loopback clients and the health name.
spec.settings.ratelimit.exempt[]stringAddresses or networks that are never rate limited, e.g. 192.168.1.0/24 for your LAN or the address of a busy resolver that forwards to kudurru. Loopback always is.
Items: at most 10000
spec.settings.ratelimit.ipv4map[string]integerQueries per minute allowed per IPv4 address or network, by prefix length: 32 is one address (default 600), 24 a /24 network (default 6000). Entries merge with the defaults key by key, and 0 turns a level off. Each prefix has a token bucket holding one minute's allowance.
Properties: at most 10000
spec.settings.ratelimit.ipv6map[string]integerQueries per minute allowed per IPv6 address or network, by prefix length: 128 is one address (default 600), 64 a /64 network (6000), 56 a /56 (12000). Entries merge with the defaults key by key, and 0 turns a level off.
Properties: at most 10000
spec.settings.ratelimit.maxBucketsintegerMost addresses and networks tracked at once, e.g. 65536 (0 means 65536); the least recently seen is forgotten first and starts again with a full allowance.
Format: int64
Range: at least 0
spec.settings.ratelimit.slipintegerShare of over-limit queries, in percent from 0 to 100, answered with an empty truncated reply (TC=1) instead of being dropped, e.g. 50; real clients then retry over TCP, which is not limited. 0 drops them all, 100 answers them all.
Format: int64
Range: 0 to 100
spec.settings.responseobject
spec.settings.response.bogusNXDOMAIN[]stringReturn NXDOMAIN when a forwarded answer contains an address in one of these networks, for upstreams that redirect missing domains to a search page. At most 256 canonical IPv4 or IPv6 CIDRs. This result is never immediately changed by the NXDOMAIN replacement settings.
Items: at most 10000
spec.settings.response.dns64object
spec.settings.response.dns64.excludeDomains[]stringDomains and descendants excluded from DNS64, e.g. internal.example. At most 256. Both the question and the final alias target are checked.
Items: at most 10000
spec.settings.response.dns64.excludeIPv4[]stringIPv4 networks excluded from DNS64, e.g. 192.168.0.0/16. At most 256 canonical CIDRs. Excluded addresses never become synthetic IPv6 answers.
Items: at most 10000
spec.settings.response.dns64.prefixstringSynthesize IPv6 answers from IPv4 for a NAT64 network. Empty disables DNS64. Use your router's IPv6 /32, /40, /48, /56, /64 or /96 translation prefix, e.g. 64:ff9b::/96. Only AAAA NODATA answers are synthesized; queries requesting DNSSEC proofs keep the original response. A Policy can override this for selected clients.
Length: at most 8192
spec.settings.response.filterAAAAbooleanRemove IPv6 addresses and IPv6 service hints from forwarded responses. AAAA answers become NODATA. This takes precedence over DNS64 and clears DNSSEC authenticity on changed answers. A Policy can override this for selected clients; owned authoritative zones are unaffected.
spec.settings.response.nxdomainIPv4[]stringReplace upstream NXDOMAIN for A questions with these IPv4 addresses. Empty preserves NXDOMAIN. At most 16 addresses. This deliberately changes validated negative answers and clears AD; rebinding protection still applies to the replacement.
Items: at most 10000
spec.settings.response.nxdomainIPv6[]stringReplace upstream NXDOMAIN for AAAA questions with these IPv6 addresses. Empty preserves NXDOMAIN. At most 16 addresses. Disabled for clients with IPv6 filtering enabled; rebinding protection still applies.
Items: at most 10000
spec.settings.response.rebindingobject
spec.settings.response.rebinding.bypassNetworks[]stringClient networks exempt from rebinding protection. At most 256 canonical IPv4 or IPv6 CIDRs. Empty protects all clients; an explicit /0 disables protection for that address family.
Items: at most 10000
spec.settings.response.rebinding.enabledbooleanRefuse forwarded or rewritten answers containing private, loopback, link-local, unspecified or multicast addresses, including service hints. Configure private-domain exceptions for internal forwarding. Owned authoritative answers and explicit block responses are exempt. An inspection budget overflow also refuses the response.
spec.settings.response.rebinding.privateDomains[]stringDomains allowed to return private addresses, including descendants. At most 256. Both the original question and the address record's owner must be in an allowed domain, so an alias cannot silently escape the exception.
Items: at most 10000
spec.settings.response.ttlintegerLifetime in seconds for configured rewrites and NXDOMAIN replacements, from 1 to 86400. Also caps DNS64 answers, which cannot outlive their IPv4 answer or the original negative SOA TTL.
Format: int64
Range: 1 to 86400
spec.settings.unblockRequestsobject
spec.settings.unblockRequests.enabledbooleanLet people ask for a blocked site to be unblocked: the block page shows a Request access form, and requests appear on the dashboard's Requests page for an administrator to approve or deny. Needs blockPage.enabled.
spec.settings.unblockRequests.maxPendingintegerMost undecided unblock requests kept across the cluster, e.g. 1000. When reached, the block page says requests are paused until an administrator decides some.
Format: int64
Range: 1 to 10000
spec.settings.unblockRequests.pendingExpirystringUndecided unblock requests expire after this long, e.g. 336h (14 days); at least 1h.
Length: at most 8192
spec.settings.unblockRequests.rateLimitintegerMost unblock requests one client may send per hour, e.g. 5; IPv6 clients are counted per /64. Asking again for the same name updates the pending request instead of adding one.
Format: int64
Range: 1 to 100
spec.settings.unblockRequests.retentionstringHow long decided and expired unblock requests stay on the Requests page, counted from the decision, e.g. 720h (30 days); at least 1h. A time-limited approval is kept until it ends.
Length: at most 8192
spec.settings.upstreamsobject
spec.settings.upstreams.bootstrap[]stringPlain DNS servers used only to look up the host names of upstream servers, such as dns.quad9.net in tls://dns.quad9.net, e.g. 1.1.1.1:53 or 9.9.9.9. Never asked for client queries.
Items: at most 10000
spec.settings.upstreams.conditionalmap[string]stringSend queries for some domains to a chosen upstream group, e.g. home.lan to a group holding your router, so local device names resolve. Each entry maps a domain suffix to a group name; the longest matching suffix wins, and a key may list several suffixes in dnsmasq form, "[/corp.example/10.in-addr.arpa/]". Non-default groups skip the response cache unless that group enables cache; default always uses the cache.
Properties: at most 10000
spec.settings.upstreams.ecsobject
spec.settings.upstreams.ecs.ipv4PrefixintegerHow much of an IPv4 client address EDNS Client Subnet may reveal, as a prefix length from 0 to 32: with 24 (default) only the network, e.g. 203.0.113.0/24, is sent. Used only when upstreams.ecs.mode is forward or add.
Format: int64
Range: 0 to 32
spec.settings.upstreams.ecs.ipv6PrefixintegerHow much of an IPv6 client address EDNS Client Subnet may reveal, as a prefix length from 0 to 128: with 56 (default) only the /56 network is sent. Used only when upstreams.ecs.mode is forward or add.
Format: int64
Range: 0 to 128
spec.settings.upstreams.ecs.modestringWhether upstream servers learn which network a query came from (EDNS Client Subnet). strip (default) never tells them, the private choice; forward and add can get answers from servers nearer the client, at the cost of revealing part of its address.
One of: strip, forward, add
Length: at most 8192
spec.settings.upstreams.groupsmap[string]objectThe DNS servers kudurru asks for names it does not answer itself, in named groups; the group named default gets every query nothing else routes. Each group lists servers (e.g. 1.1.1.1, tls://dns.quad9.net), a strategy that picks among them and a timeout per server. Conditional forwarding, forward zones and policies send queries to other groups by name.
Properties: at most 10000
spec.settings.upstreams.groups.<key>.cachebooleanCache answers from this group using the normal TTL, prefetch and serve-stale settings. Non-default groups skip the response cache unless enabled. The default group always uses the cache; this option has no effect on it. Answers stay isolated by group and routing configuration.
spec.settings.upstreams.groups.<key>.modestringforward (default) sends queries to the servers below; recursive resolves names itself from the root servers, so no single provider sees every name, and validates DNSSEC (see upstreams.recursion).
One of: forward, recursive
Length: at most 8192
spec.settings.upstreams.groups.<key>.servers[]stringDNS servers this group forwards to, e.g. 1.1.1.1, tls://dns.quad9.net or https://dns.google/dns-query. A bare address uses plain DNS on port 53; tls://, https://, quic://, h3:// and sdns:// stamps encrypt the queries. Prefix a display name with name=, e.g. cloudflare=tls://1.1.1.1. Required in forward mode; a recursive group has none.
Items: at most 10000
spec.settings.upstreams.groups.<key>.strategystringHow the servers are picked for each query; parallel_best suits most setups. Forward mode only.
One of: parallel_best, strict, random, rtt_weighted
Length: at most 8192
spec.settings.upstreams.groups.<key>.timeoutstringHow long to wait for one server's answer before trying another, e.g. 2s (the default); raise it for slow or distant servers. In recursive mode it bounds the whole lookup of a name instead (default 4s).
Length: at most 8192
spec.settings.upstreams.groups.<key>.tracePropagationbooleanfalse (default): these servers never learn trace ids. true adds the EDNS TRACEPARENT option to the queries sent to them for a sampled trace (tracing.sampleRate, or a continued edge trace), so a downstream kudurru, PowerDNS Recursor or dnsdist continues the same trace. The receiver takes the option's presence as the decision to trace, so a query traced only because it later failed or was slow carries none. Only for servers you run; never for a public resolver. Forward mode only.
spec.settings.upstreams.recursionobject
spec.settings.upstreams.recursion.anchorModestringStatic uses the configured roots or shipped defaults. Managed requires explicit root DS seeds and DNSSEC, retains accepted rollover history and revocations, and refuses static fallback after initialization. Applies only to recursive groups. Managed requires the SQLite store driver; the Kubernetes driver refuses it.
One of: static, managed
Length: at most 8192
spec.settings.upstreams.recursion.dnssecbooleanCheck DNSSEC signatures on answers from recursive groups, from the root trust anchors down. Forged or broken answers in signed zones become SERVFAIL (status dnssec_bogus) instead of reaching devices; unsigned zones still resolve. Clients that set the CD bit get the data anyway.
spec.settings.upstreams.recursion.ipv6stringWhether recursive groups ask name servers over IPv6. auto (default) does when this host has an IPv6 route to the root servers.
One of: auto, on, off
Length: at most 8192
spec.settings.upstreams.recursion.negativeTrustAnchors[]objectTemporary validation exceptions for recursive groups only (RFC 7646); independent of dnssec.negativeTrustAnchors for forwarders. At most 128 domains, each with a reason and absolute expiry no more than seven days away. Covers descendants, never sets AD, and expires on cache hits without reload. Restart or restore never renews it.
Items: at most 10000
spec.settings.upstreams.recursion.negativeTrustAnchors[].domainstringRequired. Domain and descendants allowed to resolve without DNSSEC authentication; aliases outside it still validate.
Length: at most 8192
spec.settings.upstreams.recursion.negativeTrustAnchors[].expiresAtstringRequired. Absolute RFC3339 timestamp in UTC, for example 2026-10-31T12:00:00Z. Choose the actual incident deadline.
Length: at most 8192
spec.settings.upstreams.recursion.negativeTrustAnchors[].reasonstringRequired. Why this exception is needed and where repair is tracked; from 1 to 256 bytes.
Length: at most 8192
spec.settings.upstreams.recursion.qnameMinimizationbooleanSend each name server only as much of the name as it needs (QNAME minimization, RFC 9156): the root servers learn com, not www.example.com. Recursive groups only.
spec.settings.upstreams.recursion.rootHints[]stringNumeric addresses of the root servers recursive groups start from, e.g. 198.41.0.4 or 192.0.2.53:5353; empty (the default) uses the built-in IANA list. Only for a private root or a lab: with custom hints, name servers on private and link-local addresses are asked too, which the public tree never allows.
Items: at most 10000
spec.settings.upstreams.recursion.trustAnchors[]stringRoot DS records DNSSEC validation trusts, e.g. 20326 8 2 E06D44B8...; empty (the default) uses the built-in KSK-2017 and KSK-2024 anchors from IANA. Only for a root key rollover the built-in list does not know yet, or for a private root.
Items: at most 10000

Status

KudurruStatus records runtime state and observed cluster configuration.

FieldTypeDescription
status.blockingobjectBlockingStatus is replicated absolute-time state, never a node-local timer.
Validation: disabledUntil requires disabled (!has(self.disabledUntil) || self.disabled)
status.blocking.disabledbooleanRequired.
status.blocking.disabledUntilstringDisabledUntil is absent for an indefinite disable. Expiry enables blocking without waiting for another write or renewing on restart.
Format: date-time
status.conditions[]ConditionList type: map, keyed by type
status.observedGenerationintegerFormat: int64

Example

deploy/kustomize/samples/kudurru.io_v1alpha1_kudurru.yaml:

apiVersion: kudurru.io/v1alpha1
kind: Kudurru
metadata:
  name: default
spec:
  settings:
    cache:
      maxEntries: 100000
    blocking:
      defaultResponse: nxdomain
    response:
      filterAAAA: false

Source: docs-site/content/reference/crds/kudurru.md