A distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.
Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.
Consul provides several key features:
- Multi-Datacenter - Consul is built to be datacenter aware, and can support any number of regions without complex configuration.
- Service Mesh - Consul Service Mesh enables secure service-to-service communication with automatic TLS encryption and identity-based authorization. Applications can use sidecar proxies in a service mesh configuration to establish TLS connections for inbound and outbound connections with Transparent Proxy.
- API Gateway - Consul API Gateway manages access to services within Consul Service Mesh, allow users to define traffic and authorization policies to services deployed within the mesh.
- Service Discovery - Consul makes it simple for services to register themselves and to discover other services via a DNS or HTTP interface. External services such as SaaS providers can be registered as well.
- Health Checking - Health Checking enables Consul to quickly alert operators about any issues in a cluster. The integration with service discovery prevents routing traffic to unhealthy hosts and enables service level circuit breakers.
- Dynamic App Configuration - An HTTP API that allows users to store indexed objects within Consul, for storing configuration parameters and application metadata.
Migrate from github.com/go-jose/go-jose/v3 to github.com/go-jose/go-jose/v4 v4.1.6 to address GHSA-mgcc-cww5-fp2q, GHSA-vvm8-gf78-28g4 and GHSA-4w3g-jfj2-cw2q. [GH-24135]
Update golang.org/x/net to v0.62.0 to address GO-2026-6860 and GO-2026-6866.
Also update golang.org/x/crypto to v0.58.0, golang.org/x/sys to v0.49.0, golang.org/x/sync to v0.24.0, golang.org/x/text to v0.43.0, golang.org/x/term to v0.47.0 and golang.org/x/tools to v0.51.0.
Migrate from github.com/go-jose/go-jose/v3 to github.com/go-jose/go-jose/v4 v4.1.6 and update github.com/hashicorp/cap to v0.16.0, removing the dependency on go-jose/v3 to address GHSA-4w3g-jfj2-cw2q, GHSA-mgcc-cww5-fp2q and GHSA-vvm8-gf78-28g4. [GH-24149]
Upgrade go.opentelemetry.io/otel to v1.47.0 to fix a bypass of AttributeValueLengthLimit truncation by attribute values made of U+FFFD runes. [GH-24166]
agent: Explicitly set the Content-Type header to text/plain on the invalid max_stale error response to mitigate XSS. [GH-24071]
IMPROVEMENTS:
gateway: Apply envoy_listener_tracing_json from proxy defaults to API Gateway HTTP listeners and Mesh Gateway HTTP filter chains for exported services, allowing configured sampling rates and upstream span creation to take effect. [GH-24119]
upgrade go version to v1.26.11 [GH-24199]
agent: apply block_endpoints and allow_write_http_from to /api resource endpoints [GH-24191]
build: bump consul sub-packages to latest patch releases: consul/api to v1.35.1, consul/sdk to v0.19.1, consul/proto-public to v0.9.1, consul/envoyextensions to v0.11.2 and consul/troubleshoot to v0.10.2 [GH-24190]
ci: Re-enable the Compatibility Integration Tests and fix the consul-container test library for the upgraded runners (testcontainers v0.42, Docker 28): agents now advertise their bridge network IP explicitly, container logs are captured again, and the troubleshoot and gateway health tests tolerate slow startup. [GH-24036]
cli: The consul resource apply-grpc, read-grpc, list-grpc, and delete-grpc commands now verify the server's certificate when using TLS and require TLS 1.2 or later. Previously, certificate verification was skipped unless CONSUL_GRPC_TLS_VERIFY=true was set. If the server's certificate is not signed by a system-trusted CA, provide the CA with -ca-file or CONSUL_GRPC_CACERT. Use the new -tls-server-name flag or CONSUL_GRPC_TLS_SERVER_NAME to set the expected server name, for example when connecting by IP address. Verification can be disabled with the new -grpc-tls-verify=false flag or CONSUL_GRPC_TLS_VERIFY=false. [GH-24198]
connect: Writing ECDHCurves in the mesh config entry is rejected while any server in any WAN-federated datacenter runs a version older than 2.1.0. Servers log a warning listing agents in the entry's admin partition that are older than 2.1.0 and ignore the setting, and the leader reports their count in the consul.mesh.pqc_outdated_agents gauge. [GH-24083]
connect: Writing a mesh config entry whose new or changed TLS.Outgoing.ECDHCurves omits P-256 while TLS 1.2 can be negotiated is rejected, because service mesh certificates use ECDSA P-256 keys and such handshakes fail with WRONG_CURVE. Incoming lists and unchanged stored or bootstrapped entries produce a warning instead. [GH-24083]
rpc: tighten validation of operations submitted to the Txn endpoint. [GH-24194]
ui: finish migrating the yadda/Gherkin acceptance tests to native QUnit and remove the yadda test toolchain [GH-24183]
ui: migrate the remaining top-level yadda/Gherkin acceptance tests to native QUnit, restore namespace coverage and assertions lost in earlier migrated tests, and remove orphaned yadda step files [GH-24179]
BUG FIXES:
acl: node:write and service:write rules no longer apply to peer-imported nodes and services. [GH-24185]
agent: Apply default_query_time and max_query_time to cache-backed blocking queries so they no longer outlive http_config.write_timeout. This fixes the periodic connect_roots watch error in the built-in consul connect proxy. [GH-24084]
agent: Blocking queries are no longer reset by http_config.write_timeout on long-lived HTTP/2 connections. The write deadline is now set per blocking-query request based on max_query_time, instead of relying on the global per-connection write_timeout. [GH-24042]
agent: fix catalog write throughput collapse by using per-node write lock stripes instead of a single shared stripe. [GH-24111]
api-gateway: Fix an issue where creating, updating, or deleting a file-system-certificate config entry did not cause gateways referencing it to be reconciled, leaving stale InvalidCertificates/InvalidCertificateRef status until the gateway was re-applied. [GH-24154]
api: Fix an invalid value for the CONSUL_HTTP_SSL_VERIFY environment variable, such as yes or a typo, disabling TLS certificate verification. Only false or 0 now disables verification, and a warning is logged for invalid values. [GH-24198]
api: Fix an invalid value for the CONSUL_HTTP_SSL environment variable, such as yes or a typo, falling back to plain HTTP. Only false or 0 now selects HTTP, and a warning is logged for invalid values. [GH-24198]
connect: The automatically injected post-quantum key-exchange list for TLS 1.3 is now X25519MLKEM768, X25519, P-256 for Envoy and agent TLS, so peers that only support P-256 keep working after an upgrade. Explicitly configured ECDHCurves and tls_ecdh_curves are unchanged. [GH-24083]
connect: When the mesh TLSMinVersion is TLSv1_3 and TLSMaxVersion is unset or TLS_AUTO, Consul now sets the Envoy maximum TLS version to TLS 1.3. Previously, Envoy upstream connections defaulted to a TLS 1.2 maximum and every handshake failed with NO_SUPPORTED_VERSIONS_ENABLED. [GH-24083]
dns: Preserve the EDNS OPT record, including EDNS Client Subnet data, when DNS responses are trimmed to fit UDP or TCP size limits. [GH-24177]
peering: Fix a bug where a dialing cluster kept using the peer's previous CA roots when reconnecting after the accepting cluster rotated its Connect CA. Reconnects failed with x509: certificate signed by unknown authority until the dialing cluster's leader changed. [GH-24163]
peering: Fix a bug where a rejected duplicate peering stream, or a stream that had already been replaced, could mark the active stream as disconnected. The peering then reported FAILING and consul.peering.healthy dropped to 0 while the stream was still replicating. [GH-24163]
peering: Fix a deadlock where cluster peering streams could stall indefinitely after a server restart when both peers export many services. The peering remained ACTIVE but stopped replicating services and heartbeats. [GH-24094]
peering: Fix an overflow in the peering stream retry backoff that removed the delay between reconnect attempts after a peering had been failing for about an hour, causing a tight reconnect loop on the dialing cluster's leader. [GH-24163]
streaming: Fix a deadlock between a server restoring its state from a raft snapshot and a streaming Subscribe call that could stop the server from applying raft logs and leave streaming subscriptions on that server silent, so clients kept serving a frozen view and a stale X-Consul-Index without any error. [GH-24139]
txn: Node, service, and check write operations in /v1/txn with a non-default PeerName are now rejected, consistent with the catalog register and deregister endpoints. Peer-imported catalog entries are managed by peering replication and cannot be modified through the transaction API. [GH-24185]