Kudurru
Kudurru is the cluster settings singleton named default.
| API version | kudurru.io/v1alpha1 |
| Kind | Kudurru |
| Scope | Cluster |
| Resource | kudurrus.kudurru.io |
| Subresources | status |
Spec
KudurruSpec owns cluster configuration. The generator replaces Settings' generic Go carrier with the strict nested schema from config.Schema.
| Field | Type | Description |
|---|---|---|
spec.settings | object | |
spec.settings.auth | object | |
spec.settings.auth.localLogin | string | Whether 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, disabledLength: at most 8192 |
spec.settings.auth.session | object | |
spec.settings.auth.session.idleTimeout | string | Sign 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.lifetime | string | Longest 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.secure | string | Whether 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, neverLength: at most 8192 |
spec.settings.auth.tokens | object | |
spec.settings.auth.tokens.maxLifetime | string | Longest 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.blockPage | object | |
spec.settings.blockPage.contact | string | How 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.dashboardURL | string | Address 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.enabled | boolean | Show 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.ipv4 | string | Address 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.ipv6 | string | IPv6 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.message | string | Text 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.rateLimit | integer | Most 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: int64Range: 0 to 100000 |
spec.settings.blockPage.showDetails | boolean | Show 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.title | string | Heading of the block page, e.g. This site is blocked (plain text, at most 200 characters). Length: at most 8192 |
spec.settings.blocking | object | |
spec.settings.blocking.allowDegraded | boolean | Answer 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.blockTTL | string | How 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.catalogue | object | |
spec.settings.blocking.catalogue.adguardServicesURL | string | Off 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.refreshInterval | string | How 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.url | string | Leave 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.customIP | object | |
spec.settings.blocking.customIP.v4 | string | IPv4 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.v6 | string | IPv6 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.defaultResponse | string | What 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, blockPageLength: at most 8192 |
spec.settings.blocking.enabled | boolean | Block 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.initStrategy | string | What 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, failOnErrorLength: at most 8192 |
spec.settings.blocking.refreshInterval | string | How 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.branding | object | |
spec.settings.branding.accentColor | string | Six-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.favicon | string | Static 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.logoDark | string | Static 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.logoLight | string | Static 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.name | string | Public 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.cache | object | |
spec.settings.cache.maxEntries | integer | How 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: int64Range: at least 0 |
spec.settings.cache.maxTTL | string | Longest 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.minTTL | string | Shortest 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.negativeTTL | string | Longest 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.prefetch | object | |
spec.settings.cache.prefetch.threshold | integer | Refresh 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: int64Range: at least 0 |
spec.settings.cache.prefetch.window | string | Time over which the hits for cache.prefetch.threshold are counted, e.g. 2h. Length: at most 8192 |
spec.settings.cache.serveStale | object | |
spec.settings.cache.serveStale.answerTTL | string | TTL 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.maxWait | string | How 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.ttl | string | When 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.control | object | |
spec.settings.control.allowedNetworks | []string | Client 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 | []string | DNS 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.database | object | |
spec.settings.database.querylog | object | |
spec.settings.database.querylog.facts | boolean | Copy 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.retention | object | |
spec.settings.database.querylog.retention.raw | string | How 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.ship | boolean | With 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.dnssec | object | |
spec.settings.dnssec.enabled | boolean | Validate 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 | []object | Temporary 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[].domain | string | Required. Domain whose signatures temporarily cannot be checked, e.g. broken.example; includes its descendants. Length: at most 8192 |
spec.settings.dnssec.negativeTrustAnchors[].expiresAt | string | Required. 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[].reason | string | Required. 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 | []string | Additional 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.useBuiltinAnchors | boolean | Trust 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.querylog | object | |
spec.settings.querylog.anonymize | string | How 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, pseudonymLength: at most 8192 |
spec.settings.querylog.enabled | boolean | Record 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.exclude | object | |
spec.settings.querylog.exclude.clients | []string | Clients 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 | []string | Names 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.sudn | boolean | Leave 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.privacy | string | How 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, nothingLength: at most 8192 |
spec.settings.querylog.retention | object | |
spec.settings.querylog.retention.maxDBBytes | string | Largest 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.raw | string | How 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.sink | string | Where 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, slogLength: at most 8192 |
spec.settings.querylog.sinks | []object | Additional 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[].attempts | integer | How 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: int64Range: 1 to 10 |
spec.settings.querylog.sinks[].batchSize | integer | Largest number of queries sent in one write, 1 to 10000 and no more than queueSize (default 1000, or queueSize when that is smaller). Format: int64Range: 1 to 10000 |
spec.settings.querylog.sinks[].clickhouse | object | Destination of a sink of type clickhouse; required for that type and refused for any other. |
spec.settings.querylog.sinks[].clickhouse.caRef | object | Where 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.env | string | Name 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.file | string | Absolute 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.secretRef | object | Kubernetes 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.key | string | Required. Key inside the Secret, e.g. password. Length: at most 8192 |
spec.settings.querylog.sinks[].clickhouse.caRef.secretRef.name | string | Required. Name of the Secret, e.g. query-log-export. Length: at most 8192 |
spec.settings.querylog.sinks[].clickhouse.compression | string | gzip (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, noneLength: at most 8192 |
spec.settings.querylog.sinks[].clickhouse.database | string | Database of the table (default kudurru): letters, digits and underscores. Length: at most 8192 |
spec.settings.querylog.sinks[].clickhouse.passwordRef | object | Where 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.env | string | Name 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.file | string | Absolute 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.secretRef | object | Kubernetes 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.key | string | Required. Key inside the Secret, e.g. password. Length: at most 8192 |
spec.settings.querylog.sinks[].clickhouse.passwordRef.secretRef.name | string | Required. Name of the Secret, e.g. query-log-export. Length: at most 8192 |
spec.settings.querylog.sinks[].clickhouse.table | string | Table 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.url | string | Required. 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.username | string | ClickHouse user that may insert into the table, e.g. kudurru; empty sends no credentials. Length: at most 8192 |
spec.settings.querylog.sinks[].dnstap | object | Destination of a sink of type dnstap; required for that type and refused for any other. |
spec.settings.querylog.sinks[].dnstap.caRef | object | For 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.env | string | Name 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.file | string | Absolute 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.secretRef | object | Kubernetes 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.key | string | Required. Key inside the Secret, e.g. password. Length: at most 8192 |
spec.settings.querylog.sinks[].dnstap.caRef.secretRef.name | string | Required. Name of the Secret, e.g. query-log-export. Length: at most 8192 |
spec.settings.querylog.sinks[].dnstap.certRef | object | For 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.env | string | Name 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.file | string | Absolute 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.secretRef | object | Kubernetes 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.key | string | Required. Key inside the Secret, e.g. password. Length: at most 8192 |
spec.settings.querylog.sinks[].dnstap.certRef.secretRef.name | string | Required. Name of the Secret, e.g. query-log-export. Length: at most 8192 |
spec.settings.querylog.sinks[].dnstap.identity | string | dnstap 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.keyRef | object | Where 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.env | string | Name 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.file | string | Absolute 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.secretRef | object | Kubernetes 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.key | string | Required. Key inside the Secret, e.g. password. Length: at most 8192 |
spec.settings.querylog.sinks[].dnstap.keyRef.secretRef.name | string | Required. Name of the Secret, e.g. query-log-export. Length: at most 8192 |
spec.settings.querylog.sinks[].dnstap.raw | boolean | false (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.serverName | string | Name 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.target | string | Required. 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 | []string | Which 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[].flushInterval | string | Longest 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[].loki | object | Destination of a sink of type loki; required for that type and refused for any other. |
spec.settings.querylog.sinks[].loki.bearerTokenRef | object | Where 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.env | string | Name 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.file | string | Absolute 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.secretRef | object | Kubernetes 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.key | string | Required. Key inside the Secret, e.g. password. Length: at most 8192 |
spec.settings.querylog.sinks[].loki.bearerTokenRef.secretRef.name | string | Required. Name of the Secret, e.g. query-log-export. Length: at most 8192 |
spec.settings.querylog.sinks[].loki.caRef | object | Where 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.env | string | Name 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.file | string | Absolute 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.secretRef | object | Kubernetes 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.key | string | Required. Key inside the Secret, e.g. password. Length: at most 8192 |
spec.settings.querylog.sinks[].loki.caRef.secretRef.name | string | Required. Name of the Secret, e.g. query-log-export. Length: at most 8192 |
spec.settings.querylog.sinks[].loki.compression | string | gzip (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, noneLength: at most 8192 |
spec.settings.querylog.sinks[].loki.labels | map[string]string | Fixed 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.passwordRef | object | Where 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.env | string | Name 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.file | string | Absolute 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.secretRef | object | Kubernetes 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.key | string | Required. Key inside the Secret, e.g. password. Length: at most 8192 |
spec.settings.querylog.sinks[].loki.passwordRef.secretRef.name | string | Required. Name of the Secret, e.g. query-log-export. Length: at most 8192 |
spec.settings.querylog.sinks[].loki.structuredMetadata | boolean | Attach 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.tenant | string | Tenant ID sent as X-Scope-OrgID, e.g. home; empty for a single-tenant Loki. Length: at most 8192 |
spec.settings.querylog.sinks[].loki.url | string | Required. 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.username | string | User name for HTTP basic authentication, e.g. the instance ID of Grafana Cloud; needs passwordRef. Length: at most 8192 |
spec.settings.querylog.sinks[].name | string | Required. 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[].queueSize | integer | How 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: int64Range: 100 to 100000 |
spec.settings.querylog.sinks[].retryBackoff | string | Wait 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[].timeout | string | How 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[].type | string | Required. What kind of destination this is. One of: slog, clickhouse, loki, dnstapLength: at most 8192 |
spec.settings.ratelimit | object | |
spec.settings.ratelimit.enabled | boolean | Limit 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 | []string | Addresses 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.ipv4 | map[string]integer | Queries 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.ipv6 | map[string]integer | Queries 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.maxBuckets | integer | Most 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: int64Range: at least 0 |
spec.settings.ratelimit.slip | integer | Share 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: int64Range: 0 to 100 |
spec.settings.response | object | |
spec.settings.response.bogusNXDOMAIN | []string | Return 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.dns64 | object | |
spec.settings.response.dns64.excludeDomains | []string | Domains 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 | []string | IPv4 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.prefix | string | Synthesize 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.filterAAAA | boolean | Remove 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 | []string | Replace 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 | []string | Replace 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.rebinding | object | |
spec.settings.response.rebinding.bypassNetworks | []string | Client 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.enabled | boolean | Refuse 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 | []string | Domains 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.ttl | integer | Lifetime 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: int64Range: 1 to 86400 |
spec.settings.unblockRequests | object | |
spec.settings.unblockRequests.enabled | boolean | Let 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.maxPending | integer | Most 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: int64Range: 1 to 10000 |
spec.settings.unblockRequests.pendingExpiry | string | Undecided unblock requests expire after this long, e.g. 336h (14 days); at least 1h. Length: at most 8192 |
spec.settings.unblockRequests.rateLimit | integer | Most 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: int64Range: 1 to 100 |
spec.settings.unblockRequests.retention | string | How 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.upstreams | object | |
spec.settings.upstreams.bootstrap | []string | Plain 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.conditional | map[string]string | Send 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.ecs | object | |
spec.settings.upstreams.ecs.ipv4Prefix | integer | How 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: int64Range: 0 to 32 |
spec.settings.upstreams.ecs.ipv6Prefix | integer | How 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: int64Range: 0 to 128 |
spec.settings.upstreams.ecs.mode | string | Whether 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, addLength: at most 8192 |
spec.settings.upstreams.groups | map[string]object | The 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>.cache | boolean | Cache 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>.mode | string | forward (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, recursiveLength: at most 8192 |
spec.settings.upstreams.groups.<key>.servers | []string | DNS 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>.strategy | string | How the servers are picked for each query; parallel_best suits most setups. Forward mode only. One of: parallel_best, strict, random, rtt_weightedLength: at most 8192 |
spec.settings.upstreams.groups.<key>.timeout | string | How 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>.tracePropagation | boolean | false (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.recursion | object | |
spec.settings.upstreams.recursion.anchorMode | string | Static 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, managedLength: at most 8192 |
spec.settings.upstreams.recursion.dnssec | boolean | Check 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.ipv6 | string | Whether 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, offLength: at most 8192 |
spec.settings.upstreams.recursion.negativeTrustAnchors | []object | Temporary 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[].domain | string | Required. Domain and descendants allowed to resolve without DNSSEC authentication; aliases outside it still validate. Length: at most 8192 |
spec.settings.upstreams.recursion.negativeTrustAnchors[].expiresAt | string | Required. 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[].reason | string | Required. Why this exception is needed and where repair is tracked; from 1 to 256 bytes. Length: at most 8192 |
spec.settings.upstreams.recursion.qnameMinimization | boolean | Send 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 | []string | Numeric 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 | []string | Root 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.
| Field | Type | Description |
|---|---|---|
status.blocking | object | BlockingStatus is replicated absolute-time state, never a node-local timer. Validation: disabledUntil requires disabled ( !has(self.disabledUntil) || self.disabled) |
status.blocking.disabled | boolean | Required. |
status.blocking.disabledUntil | string | DisabledUntil is absent for an indefinite disable. Expiry enables blocking without waiting for another write or renewing on restart. Format: date-time |
status.conditions | []Condition | List type: map, keyed by type |
status.observedGeneration | integer | Format: 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