Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.
 
 
 
 
 
 
Go to file
hc-github-team-consul-core eb1c319774
Backport of agent: remove data race in agent config into release/1.15.x (#20201)
[1.15.x] agent: remove data race in agent config (#20200)

To fix an issue displaying the current reloaded config in the
v1/agent/self endpoint #18681 caused the agent's internal
config struct member to be deepcopied and replaced on reload.

This is not safe because the field is not protected by a lock, nor
should it be due to how it is accessed by the rest of the system.

This PR does the same deepcopy, but into a new field solely for
the point of capturing the current reloaded values for display
purposes. If there has been no reload then the original config is used.

Co-authored-by: R.B. Boyer <4903+rboyer@users.noreply.github.com>
2024-01-16 11:11:32 -06:00
.changelog Backport of [NET-4968] Upgrade Go to 1.21 into release/1.15.x (#20180) 2024-01-12 15:28:03 +00:00
.github Backport of compliance: license checker to enforce MPL pre-EOY 2023 no longer necessary into release/1.15.x (#20183) 2024-01-12 10:27:35 -06:00
.release
acl
agent Backport of agent: remove data race in agent config into release/1.15.x (#20201) 2024-01-16 11:11:32 -06:00
api Backport of [NET-4968] Upgrade Go to 1.21 into release/1.15.x (#20180) 2024-01-12 15:28:03 +00:00
bench
build-support Backport of ci: Single source of truth for Go version in CI and Dockerfile into release/1.15.x (#20162) 2024-01-11 15:49:08 -05:00
command Revert Envoy deprecation remediation changes (#20102) 2024-01-05 12:02:23 -07:00
connect
contributing
docs
envoyextensions
grafana
internal
ipaddr
lib
logging
proto
proto-public license: MPL'ify proto-public (manual backport for 1.15.x) (#20157) 2024-01-10 14:00:54 -06:00
sdk
sentinel
service_os
snapshot
test Revert Envoy deprecation remediation changes (#20102) 2024-01-05 12:02:23 -07:00
testrpc
tlsutil
tools/internal-grpc-proxy
troubleshoot license: MPL'ify proto-public (manual backport for 1.15.x) (#20157) 2024-01-10 14:00:54 -06:00
types
ui
version
website Backport of Fix broken link into release/1.15.x (#20153) 2024-01-10 15:04:09 -05:00
.copywrite.hcl
.dockerignore
.gitignore
.go-version Backport of [NET-4968] Upgrade Go to 1.21 into release/1.15.x (#20180) 2024-01-12 15:28:03 +00:00
.golangci.yml Backport of [NET-4968] Upgrade Go to 1.21 into release/1.15.x (#20180) 2024-01-12 15:28:03 +00:00
CHANGELOG.md
Dockerfile
GNUmakefile Backport of [NET-4968] Upgrade Go to 1.21 into release/1.15.x (#20180) 2024-01-12 15:28:03 +00:00
LICENSE
NOTICE.md
README.md
Vagrantfile
fixup_acl_move.sh
go.mod
go.sum
main.go
scan.hcl

README.md

Consul logo Consul

Docker Pulls Go Report Card

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.

  • 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.

  • Key/Value Storage - A flexible key/value store enables storing dynamic configuration, feature flagging, coordination, leader election and more. The simple HTTP API makes it easy to use anywhere.

Consul runs on Linux, macOS, FreeBSD, Solaris, and Windows and includes an optional browser based UI. A commercial version called Consul Enterprise is also available.

Please note: We take Consul's security and our users' trust very seriously. If you believe you have found a security issue in Consul, please responsibly disclose by contacting us at security@hashicorp.com.

Quick Start

A few quick start guides are available on the Consul website:

Documentation

Full, comprehensive documentation is available on the Consul website: https://consul.io/docs

Contributing

Thank you for your interest in contributing! Please refer to CONTRIBUTING.md for guidance. For contributions specifically to the browser based UI, please refer to the UI's README.md for guidance.