Go to file
Daniel Nephin 4f0d092c95 testing: remove unnecessary calls to freeport
Previously we believe it was necessary for all code that required ports
to use freeport to prevent conflicts.

https://github.com/dnephin/freeport-test shows that it is actually save
to use port 0 (`127.0.0.1:0`) as long as it is passed directly to
`net.Listen`, and the listener holds the port for as long as it is
needed.

This works because freeport explicitly avoids the ephemeral port range,
and port 0 always uses that range. As you can see from the test output
of https://github.com/dnephin/freeport-test, the two systems never use
overlapping ports.

This commit converts all uses of freeport that were being passed
directly to a net.Listen to use port 0 instead. This allows us to remove
a bit of wrapping we had around httptest, in a couple places.
2021-11-29 12:19:43 -05:00
.changelog ui: Add `Service.Namespace` variable to dashboard URL templates (#11640) 2021-11-25 10:47:07 +00:00
.circleci build: switch to 'go install' over 'go get' (#11582) 2021-11-16 12:04:49 -06:00
.github ci: update triggers for main branch 2021-11-22 09:25:32 -08:00
.release Update .release/ci.hcl 2021-11-09 01:46:34 -08:00
acl re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
agent testing: remove unnecessary calls to freeport 2021-11-29 12:19:43 -05:00
api api: ensure new partition fields are omit empty for back compat (#11585) 2021-11-16 12:28:34 -06:00
bench
build-support build-support: remove test-flake machinery 2021-10-21 17:16:25 -04:00
command testing: remove unnecessary calls to freeport 2021-11-29 12:19:43 -05:00
connect testing: remove unnecessary calls to freeport 2021-11-29 12:19:43 -05:00
contributing Move contributing to docs 2021-08-30 16:17:09 -04:00
demo
docs Move contributing to docs 2021-08-30 16:17:09 -04:00
grafana
internal testing: remove unnecessary calls to freeport 2021-11-29 12:19:43 -05:00
ipaddr
lib testing: remove unnecessary calls to freeport 2021-11-29 12:19:43 -05:00
logging
proto re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
sdk testing: use httptest with freeport 2021-11-29 12:01:29 -05:00
sentinel re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
service_os re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
snapshot
terraform
test re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
testrpc Support Check-And-Set deletion of config entries (#11419) 2021-11-01 16:42:01 +00:00
tlsutil regenerate expired certs (#11462) 2021-11-01 11:40:16 -04:00
types
ui ui: Add `Service.Namespace` variable to dashboard URL templates (#11640) 2021-11-25 10:47:07 +00:00
version Putting source back into Dev Mode 2021-09-22 10:09:18 -05:00
website Merge pull request #11468 from hashicorp/dnephin/acl-docs-namespace-rules 2021-11-26 14:00:30 -05:00
.dockerignore
.gitattributes
.gitignore
.golangci.yml
CHANGELOG.md add 1.11.x beta1/beta2 changelog entries (#11587) 2021-11-16 14:31:04 -06:00
Dockerfile add dumb-init package to Dockerfile 2021-11-18 08:36:59 -08:00
GNUmakefile build: switch to 'go install' over 'go get' (#11582) 2021-11-16 12:04:49 -06:00
INTERNALS.md Move contributing to docs 2021-08-30 16:17:09 -04:00
LICENSE
NOTICE.md
README.md docs: Call out the UI in README and include details for contributing to it (#11187) 2021-09-30 13:34:28 +01:00
Vagrantfile
codecov.yml
go.mod deps: update gopsutil to fix Windows ARM and macOS non-Apple LLVM builds (#11586) 2021-11-16 15:40:11 -05:00
go.sum deps: update gopsutil to fix Windows ARM and macOS non-Apple LLVM builds (#11586) 2021-11-16 15:40:11 -05:00
main.go
main_test.go
package-lock.json

README.md

Consul CircleCI Discuss

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/Service Segmentation - Consul Connect 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 without being aware of Connect at all.

  • 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://www.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.