Hyperledger Besu node permissioning on Kubernetes

Node allowlists in Besu are keyed on IP addresses, which Kubernetes changes. This page explains how DNS names in enode URLs, the update option and dual address listing keep a permissioned network connected, and what to confirm before relying on them.

On this page

Why Besu node permissioning breaks on Kubernetes and how to fix it

A permissioned Besu network often restricts peer connections with a node allowlist that records each member node as an enode URL built from an IP address. On Kubernetes, that address can change every time a pod restarts, and a load balancer or NAT gateway in front of the node can present a different address from the one the node uses for outbound traffic. This section explains why the allowlist breaks in those setups, what Besu's local permissioning settings do about it, and how to decide between the DNS-based approach and static addressing. Local node permissioning, as the Besu docs describe it, gives each node a permissions configuration file that restricts connections to known participants. Each entry identifies a peer by its public key and address, and Besu only accepts connections from peers that appear on the list. Because the file is read locally by each node, every member must keep its own copy current, which is why address changes on one member's cluster can cut that member off from the rest of the network.

Static addressing works when a node's IP is fixed, for example a node on a dedicated host or a StatefulSet behind a stable address that the organization controls and documents. Teams should choose DNS-based entries when pod IPs change, when restarts are routine, or when a node is reachable through a load balancer whose address can move. The DNS option is an early access feature. Confirm the current status in the Besu local permissioning documentation before relying on it, and check that your environment meets the reverse lookup requirement described in the node keys documentation. Enode URLs can carry domain names only when the network is private and permissioned, so a public-facing configuration will not work. Before you change anything, inventory every node's ingress and egress addresses, decide which identity each allowlist entry must represent, and agree the change process with every consortium member, since a mismatch on one side is enough to break peering.

Choosing an addressing approach for allowlist entries

Writing the IP address directly into each enode URL is the most conventional form. Besu compares the address a peer connects from with the entry in the nodes allowlist, so the approach needs no extra flags and no DNS dependency. It works well when the address does not change, for example when a node runs on a host or VM with a stable interface. In Kubernetes, however, pod IPs are assigned by the cluster and change when a pod is rescheduled or restarted, so the entry can go stale without any change in the node's identity.

  • Fit: Stable hosts, bare-metal or VM validators, and small test networks where addresses rarely move.
  • Dependency: The pod or service address must be known in advance and must match what peers see on the wire.
  • Failure mode: A restarted pod with a new IP is rejected by peers until someone updates their allowlists.
  • Operational cost: Every address change becomes a coordinated edit across all members' permissions files.
  • Confirm in the cluster: Whether your network plugin assigns pod IPs from a range that is stable for your workloads, and how often nodes are rescheduled.

Before relying on IP entries, confirm with your platform team how pods are scheduled and whether any address is stable enough to put in a consortium-wide file.

Configuration options for DNS-based node permissioning

This table compares the four ways to identify a node in a Besu node allowlist on Kubernetes, from the DNS flags to fixed IP entries. Read each row for when the option fits and what it costs in reliability or operational effort. The main takeaway is that DNS names only work on private permissioned networks and remain an early access feature, so pair them with a tested fallback.

OptionSettingBest fitTrade-off
DNS names in enode URLs--Xdns-enabledPods whose IPs change on restart and whose hostnames resolve reliably inside the clusterEarly access feature; requires DNS reverse lookup to be configured and works only in private permissioned networks
Reconnect after container restart--Xdns-update-enabledKubernetes nodes where a restarted container gets a new IP but keeps the same DNS nameDepends on DNS records being updated promptly; confirm behavior with your DNS and Besu version before relying on it
Public key in the enode URLSame node public key, any addressKeeping identity fixed while the network address changes behind a load balancer or NATThe key is the stable identity, so protect the node key file; a leaked key lets an attacker impersonate the node
Dual ingress and egress entriesBoth addresses listed with the same public keyNodes whose inbound traffic arrives through a load balancer and outbound traffic leaves through a NAT gatewayEvery new address must be added to every peer's allowlist, so changes to either gateway need a coordinated update

Setting up DNS-based allowlists for Besu pods

This sequence turns a node allowlist that breaks when pod IPs change into one keyed on DNS names, and confirms that each node reconnects after a restart. It also covers the extra entries needed when ingress and egress addresses differ.

  1. Confirm cluster DNS and reverse lookup behavior

    The platform team checks that pods can resolve the DNS names they will use for peers, and that reverse lookups of the IP addresses behind those names return the expected names. Run a lookup from inside a Besu pod with nslookup or dig for each peer name, then run a reverse lookup on the addresses it returns. Enode URL domain name support needs DNS reverse lookup configured, and it works only in private permissioned networks, so confirm both points with your network owner before going further. The step is done when every peer name resolves from inside the cluster and reverse lookups return matching names for each address.

  2. Write enode URLs that use domain names

    Each node's entry in the nodes allowlist changes from an IP-based enode URL to one that carries a stable domain name, while keeping the node's public key. Ask the team that owns each member's node to confirm the public key and the DNS name that will represent it, since a mismatch will block peering without an obvious error. Store the resulting file in the same version control path used for genesis and configuration, so every consortium member reviews the same change. The step is done when each entry has a public key and a DNS name, and the file parses cleanly on a test node.

  3. Enable the DNS flags on each node

    Platform engineers add the early access DNS flag to each Besu node's startup configuration, and add the update flag for Kubernetes deployments so that Besu reconnects to a restarted container whose IP has changed. Because these are early access options, record the Besu version and confirm the flag names against the documentation for that release. Apply the change to one node at a time in a non-production network first. The step is done when the node logs show DNS support is active at startup and no configuration warnings are raised.

  4. Add ingress and egress addresses with the same key

    Where a node sends and receives traffic through different addresses, such as a Kubernetes load balancer for inbound connections and a NAT gateway for outbound connections, both addresses must appear in the allowlist with the same public key. Network engineers provide the address list for each node, and the platform team confirms it against the actual egress and ingress paths. Ask the network team to verify these addresses after any gateway or load balancer change, because a stale address is a common cause of silent peering failures. The step is done when each node has an entry for every address it uses, all sharing one public key.

  5. Roll the allowlist out to all consortium nodes

    The consortium change process distributes the updated allowlist to every member, so that each node accepts connections from the same set of peers. Each operator loads the file, restarts the node under its own change procedure, and records the version of the file it applied. Compare the loaded list against the shared file on each node before the next node is changed. The step is done when every operator confirms the same file version is loaded and no node reports a rejected entry.

  6. Restart a test pod and confirm peering

    The team restarts one Besu test pod so that it receives a new IP address, then checks that it reconnects to its peers using the domain names rather than the old addresses. Watch the peer count and the logs for the reconnection, and confirm that the pod keeps its public key and identity. Repeat the restart if the first test passes, to rule out a one-time result. The step is done when the restarted pod returns to its expected peer count after its IP changes and the logs show successful connections to named peers.

  7. Record the verification and set up ongoing checks

    Document the DNS names, flags, Besu version, and test results in the operations runbook so that future changes can be reviewed against a known baseline. Add an alert on peer count so that a drop after a restart or DNS change is noticed early, using the metrics exposed by Besu. Ask the operator who owns DNS and the load balancer to notify the Besu team before they change a record or address. The step is done when the runbook lists each node's DNS name and addresses, the peer count alert is active, and the change notification path is agreed.

How ingress and egress addresses reach an allowlisted peer

The diagram follows one Besu pod through two paths. Inbound peer connections arrive through a Kubernetes load balancer, while outbound connections leave through a NAT gateway and show up with a different source address. Both addresses must be listed against the same public key in the permissions allowlist, because a peer may only see one of them. The DNS lookup path shows where a domain name in an enode URL is resolved and reverse-checked, which only works when --Xdns-enabled is set and DNS reverse lookup is configured.

Inbound and outbound peer traffic reach an allowlisted Besu pod through different addresses.

Security risks of DNS-based and multi-address allowlists

Allowlists that rely on DNS names or several addresses per node are easier to keep running on Kubernetes, but each shortcut widens who can connect. The cards below cover the risks to review before go-live and the controls that keep the allowlist trustworthy across every member of the network.

Stale or hijackable DNS records

A domain name in an enode URL is only as trustworthy as the DNS record behind it. If a record still points to an old address after a node is decommissioned, or if someone can change the zone, an unintended peer may be admitted under a name that was approved for another node. Check who can edit the records for node hostnames, lock down reverse lookup, and review the zone whenever a member retires a node.

Local permissioning docs

Name resolution must be configured

Domain name support in enode URLs needs DNS reverse lookup configured, and the feature is an early access option enabled with --Xdns-enabled. If reverse lookup fails or resolves inconsistently inside a cluster, a node may be refused or admitted on the wrong basis. Confirm resolution from every pod and from outside the cluster before relying on names in the allowlist.

Node keys docs

Over-broad address entries

Listing a whole subnet, a NAT gateway range or a shared load balancer address can admit hosts that the member never intended to approve. Each address in the list should map to one specific node public key and one specific role. Review entries after every network change and remove any address that no longer belongs to an approved node.

Multiple addresses for one key

When ingress and egress use different addresses, both should be added with the same public key. That pairing is the control: an address listed without its key, or a key reused across unrelated nodes, weakens the mapping between identity and host. Record which address serves inbound and which serves outbound traffic so an auditor can trace each entry to its purpose.

Unencrypted node key files

Besu documentation states that the local node private key file is not encrypted. Anyone who reads that file, from a container image, a mounted volume or a backup, can impersonate the node on the permissioned network. Restrict file permissions, avoid baking keys into images, and consider a security module plugin such as the Besu HSM plugin, enabled with the --security-module option, where hardware-backed storage is required.

Node keys docs

Change process across members

An allowlist is only as strong as its weakest copy. If one member adds a DNS name or an extra address and others do not, nodes will disagree about who may connect and troubleshooting becomes guesswork. Agree on a change process that every operator follows, with the same entries, the same review and a shared record of who approved each change and when.

Questions teams ask before changing node allowlists on Kubernetes

How much effort does it take to switch a Besu node allowlist from IP addresses to DNS names?

The change itself is a small configuration edit, but the effort comes from checking every node, enode URL and load balancer path before the allowlist is changed. Effort rises with the number of enodes, the number of organizations that must update their own files, and how many ingress and egress addresses each node has. Teams should inventory every enode URL, confirm which IP addresses each node actually uses for inbound and outbound connections, and test peering in a non-production network first. Ask any partner to show the effort split between inventory, configuration, testing and rollout in a written scope.

Can our own platform team make these allowlist changes without a partner?

Yes, a team that already runs Besu on Kubernetes can usually make the change in-house, provided it has someone who understands enode URLs, Kubernetes services and the network path between nodes. The work needs access to every node's permissions configuration, DNS records for each node, and a way to coordinate changes with other consortium members, because their allowlists must match. Teams with little Besu or Kubernetes networking experience often hire a partner for the design review and the test plan, then carry out the rollout themselves. Confirm your skills against the steps in the Besu local permissioning documentation before deciding.

What does the team need to provide before a permissioning change starts?

The team needs a current list of nodes with their public keys, enode URLs, hostnames, Kubernetes service types and the public IP addresses used for ingress and egress. It also needs access to the Besu configuration for each node, the DNS zone that will hold the names, and a staging network that mirrors production topology. Named owners from each participating organization should be available for approval and for testing peer connections. Missing any of these items usually extends the timeline more than the configuration change does.

Which Besu flags are needed to enable DNS names in the allowlist?

The Besu local permissioning documentation describes --Xdns-enabled to allow domain names in enode URLs, and --Xdns-update-enabled so that a node can reconnect to a restarted container whose IP address has changed. The feature is an early access option, so teams should confirm its status against the Besu release they run before relying on it. Enode URL domain name support also needs DNS reverse lookup configured and applies only to private permissioned networks. Check the flag names and behavior against the release notes for your version before rollout.

What goes wrong when a node has different ingress and egress addresses?

A node behind a Kubernetes load balancer and a NAT gateway can appear to peers with an address that differs from the one it uses to connect out, so a peer may reject the connection even though the public key is correct. The fix described in the Besu documentation is to add both addresses to the allowlist with the same public key. Teams should trace each direction of traffic with their cloud provider's networking tools before editing allowlists, because an incomplete list causes peers to fail intermittently rather than all at once. Confirm the address set with a test from each side of the connection.

Does changing allowlists require a coordinated change across all members?

Yes, in a consortium each organization runs its own permissions file, so a node that is removed from one list but still present in another can keep connecting through the members that have not updated. Changes should follow an agreed sequence, with all members adding new entries before any old entries are removed, and with a rollback plan. The Besu documentation covers the mechanics of each node's file, but the change calendar and approval process belong to the consortium. Ask every participant to confirm their file content and check peering after each step.

Should we review the DNS and allowlist design before the Besu network goes live?

Yes, if the design uses Kubernetes pods, services or load balancers, because the choice between IP addresses and DNS names affects how nodes recover after restarts and rescheduling. A design review should check the DNS records, the reverse lookup configuration, the flag settings and the test plan for pod restarts and address changes. It should also confirm that the release in use supports the chosen options and that a backup exists before any upgrade, since the Besu 26.10.0 release notes say the Bonsai database auto-upgrades on first start and older versions cannot open it. Use the review to set the acceptance criteria before work starts.

How DeployOpen scopes Besu permissioning work on Kubernetes

The scope of a Besu permissioning engagement on Kubernetes is agreed in writing before any work starts, because the amount of effort depends on facts the client must supply: how many nodes and organizations are in the allowlists, which clusters and namespaces host them, how traffic leaves and enters each cluster, and whether the node set changes often. DeployOpen starts with a discovery pass over those facts. The written scope then names the Besu versions in use, the --Xdns-enabled and --Xdns-update-enabled settings each node will receive, the ingress and NAT addresses that must appear in each allowlist, the peer checks to run, and the documents to hand over. Ask for a quote built from that scope, and confirm whether your team or a DeployOpen engineer will own each item in the list.

Implementation happens inside the client's own cluster, cloud accounts and change process. DeployOpen works through the Kubernetes manifests or Helm values, Service and load balancer configuration, DNS zones and reverse lookup records, and the permissions files that each node reads, applying changes through the pipelines your organization already uses. Changes are rolled out one node at a time so a bad allowlist entry cannot cut the network in one step. Confirm early who holds cluster admin rights, who approves changes to shared allowlists, and whether the client's policy requires a change record for each update, because those answers set the pace of the work more than the technical steps do.

Peering is tested before the engagement closes. The test plan covers every enode pair that should connect, every pair that should be refused, a restart of at least one pod per node to confirm the DNS update path reconnects, and a check that the ingress and egress addresses both match the expected public key. Results are recorded against the agreed scope, and failures are fixed and retested. Handover includes the allowlist change procedure, the list of DNS names and addresses per node, runbooks for a pod restart and a NAT or load balancer change, and the test scripts so your team can rerun them. Ongoing support, upgrades and continuous checks can be added as a retainer once the scope is closed, and that cost is quoted separately from the fixed-scope work.

Sources and further reading

Talk to our team.

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

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