mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 22:06:20 +00:00
e02ef16f02
* Persist HCP management token from server config We want to move away from injecting an initial management token into Consul clusters linked to HCP. The reasoning is that by using a separate class of token we can have more flexibility in terms of allowing HCP's token to co-exist with the user's management token. Down the line we can also more easily adjust the permissions attached to HCP's token to limit it's scope. With these changes, the cloud management token is like the initial management token in that iit has the same global management policy and if it is created it effectively bootstraps the ACL system. * Update SDK and mock HCP server The HCP management token will now be sent in a special field rather than as Consul's "initial management" token configuration. This commit also updates the mock HCP server to more accurately reflect the behavior of the CCM backend. * Refactor HCP bootstrapping logic and add tests We want to allow users to link Consul clusters that already exist to HCP. Existing clusters need care when bootstrapped by HCP, since we do not want to do things like change ACL/TLS settings for a running cluster. Additional changes: * Deconstruct MaybeBootstrap so that it can be tested. The HCP Go SDK requires HTTPS to fetch a token from the Auth URL, even if the backend server is mocked. By pulling the hcp.Client creation out we can modify its TLS configuration in tests while keeping the secure behavior in production code. * Add light validation for data received/loaded. * Sanitize initial_management token from received config, since HCP will only ever use the CloudConfig.MangementToken. * Add changelog entry
249 lines
12 KiB
Modula-2
249 lines
12 KiB
Modula-2
module github.com/hashicorp/consul
|
|
|
|
go 1.20
|
|
|
|
replace (
|
|
github.com/hashicorp/consul/api => ./api
|
|
github.com/hashicorp/consul/envoyextensions => ./envoyextensions
|
|
github.com/hashicorp/consul/proto-public => ./proto-public
|
|
github.com/hashicorp/consul/sdk => ./sdk
|
|
github.com/hashicorp/consul/troubleshoot => ./troubleshoot
|
|
)
|
|
|
|
exclude (
|
|
github.com/hashicorp/go-msgpack v1.1.5 // has breaking changes and must be avoided
|
|
github.com/hashicorp/go-msgpack v1.1.6 // contains retractions but same as v1.1.5
|
|
)
|
|
|
|
require (
|
|
github.com/NYTimes/gziphandler v1.0.1
|
|
github.com/aliyun/alibaba-cloud-sdk-go v1.62.156
|
|
github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e
|
|
github.com/armon/go-metrics v0.4.1
|
|
github.com/armon/go-radix v1.0.0
|
|
github.com/aws/aws-sdk-go v1.42.34
|
|
github.com/coredns/coredns v1.6.6
|
|
github.com/coreos/go-oidc v2.1.0+incompatible
|
|
github.com/docker/go-connections v0.3.0
|
|
github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1
|
|
github.com/fatih/color v1.13.0
|
|
github.com/fsnotify/fsnotify v1.5.1
|
|
github.com/go-openapi/runtime v0.25.0
|
|
github.com/go-openapi/strfmt v0.21.3
|
|
github.com/golang/protobuf v1.5.2
|
|
github.com/google/go-cmp v0.5.9
|
|
github.com/google/gofuzz v1.2.0
|
|
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1
|
|
github.com/google/tcpproxy v0.0.0-20180808230851-dfa16c61dad2
|
|
github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4
|
|
github.com/hashicorp/consul-awsauth v0.0.0-20220713182709-05ac1c5c2706
|
|
github.com/hashicorp/consul-net-rpc v0.0.0-20221205195236-156cfab66a69
|
|
github.com/hashicorp/consul/api v1.20.0
|
|
github.com/hashicorp/consul/envoyextensions v0.1.2
|
|
github.com/hashicorp/consul/proto-public v0.2.1
|
|
github.com/hashicorp/consul/sdk v0.13.1
|
|
github.com/hashicorp/consul/troubleshoot v0.1.2
|
|
github.com/hashicorp/go-bexpr v0.1.2
|
|
github.com/hashicorp/go-checkpoint v0.5.0
|
|
github.com/hashicorp/go-cleanhttp v0.5.2
|
|
github.com/hashicorp/go-connlimit v0.3.0
|
|
github.com/hashicorp/go-discover v0.0.0-20220714221025-1c234a67149a
|
|
github.com/hashicorp/go-hclog v1.5.0
|
|
github.com/hashicorp/go-immutable-radix v1.3.1
|
|
github.com/hashicorp/go-memdb v1.3.4
|
|
github.com/hashicorp/go-multierror v1.1.1
|
|
github.com/hashicorp/go-raftchunking v0.7.0
|
|
github.com/hashicorp/go-secure-stdlib/awsutil v0.1.6
|
|
github.com/hashicorp/go-sockaddr v1.0.2
|
|
github.com/hashicorp/go-syslog v1.0.0
|
|
github.com/hashicorp/go-uuid v1.0.3
|
|
github.com/hashicorp/go-version v1.2.1
|
|
github.com/hashicorp/golang-lru v0.5.4
|
|
github.com/hashicorp/hcl v1.0.0
|
|
github.com/hashicorp/hcp-scada-provider v0.2.3
|
|
github.com/hashicorp/hcp-sdk-go v0.40.1-0.20230404193545-846aea419cd1
|
|
github.com/hashicorp/hil v0.0.0-20200423225030-a18a1cd20038
|
|
github.com/hashicorp/memberlist v0.5.0
|
|
github.com/hashicorp/raft v1.5.0
|
|
github.com/hashicorp/raft-autopilot v0.1.6
|
|
github.com/hashicorp/raft-boltdb/v2 v2.2.2
|
|
github.com/hashicorp/raft-wal v0.3.0
|
|
github.com/hashicorp/serf v0.10.1
|
|
github.com/hashicorp/vault-plugin-auth-alicloud v0.14.0
|
|
github.com/hashicorp/vault/api v1.8.3
|
|
github.com/hashicorp/vault/api/auth/gcp v0.3.0
|
|
github.com/hashicorp/vault/sdk v0.7.0
|
|
github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87
|
|
github.com/imdario/mergo v0.3.13
|
|
github.com/kr/text v0.2.0
|
|
github.com/miekg/dns v1.1.41
|
|
github.com/mitchellh/cli v1.1.0
|
|
github.com/mitchellh/copystructure v1.2.0
|
|
github.com/mitchellh/go-testing-interface v1.14.0
|
|
github.com/mitchellh/hashstructure v0.0.0-20170609045927-2bca23e0e452
|
|
github.com/mitchellh/hashstructure/v2 v2.0.2
|
|
github.com/mitchellh/mapstructure v1.5.0
|
|
github.com/mitchellh/pointerstructure v1.2.1
|
|
github.com/mitchellh/reflectwalk v1.0.2
|
|
github.com/oklog/ulid/v2 v2.1.0
|
|
github.com/olekukonko/tablewriter v0.0.4
|
|
github.com/patrickmn/go-cache v2.1.0+incompatible
|
|
github.com/pkg/errors v0.9.1
|
|
github.com/prometheus/client_golang v1.14.0
|
|
github.com/rboyer/safeio v0.2.1
|
|
github.com/ryanuber/columnize v2.1.2+incompatible
|
|
github.com/shirou/gopsutil/v3 v3.22.8
|
|
github.com/stretchr/testify v1.8.2
|
|
go.etcd.io/bbolt v1.3.6
|
|
go.uber.org/goleak v1.1.10
|
|
golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d
|
|
golang.org/x/net v0.8.0
|
|
golang.org/x/oauth2 v0.6.0
|
|
golang.org/x/sync v0.1.0
|
|
golang.org/x/sys v0.6.0
|
|
golang.org/x/time v0.3.0
|
|
google.golang.org/genproto v0.0.0-20220921223823-23cae91e6737
|
|
google.golang.org/grpc v1.49.0
|
|
google.golang.org/protobuf v1.28.1
|
|
gopkg.in/square/go-jose.v2 v2.5.1
|
|
gotest.tools/v3 v3.0.3
|
|
k8s.io/api v0.18.2
|
|
k8s.io/apimachinery v0.18.2
|
|
k8s.io/client-go v0.18.2
|
|
)
|
|
|
|
require (
|
|
cloud.google.com/go v0.97.0 // indirect
|
|
github.com/Azure/azure-sdk-for-go v44.0.0+incompatible // indirect
|
|
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
|
|
github.com/Azure/go-autorest/autorest v0.11.18 // indirect
|
|
github.com/Azure/go-autorest/autorest/adal v0.9.13 // indirect
|
|
github.com/Azure/go-autorest/autorest/azure/auth v0.5.0 // indirect
|
|
github.com/Azure/go-autorest/autorest/azure/cli v0.4.0 // indirect
|
|
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
|
|
github.com/Azure/go-autorest/autorest/to v0.4.0 // indirect
|
|
github.com/Azure/go-autorest/autorest/validation v0.3.0 // indirect
|
|
github.com/Azure/go-autorest/logger v0.2.1 // indirect
|
|
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
|
|
github.com/DataDog/datadog-go v3.2.0+incompatible // indirect
|
|
github.com/Microsoft/go-winio v0.4.3 // indirect
|
|
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
|
|
github.com/benbjohnson/immutable v0.4.0 // indirect
|
|
github.com/beorn7/perks v1.0.1 // indirect
|
|
github.com/bgentry/speakeasy v0.1.0 // indirect
|
|
github.com/boltdb/bolt v1.3.1 // indirect
|
|
github.com/cenkalti/backoff/v3 v3.0.0 // indirect
|
|
github.com/census-instrumentation/opencensus-proto v0.2.1 // indirect
|
|
github.com/cespare/xxhash/v2 v2.1.2 // indirect
|
|
github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible // indirect
|
|
github.com/circonus-labs/circonusllhist v0.1.3 // indirect
|
|
github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1 // indirect
|
|
github.com/coreos/etcd v3.3.27+incompatible // indirect
|
|
github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf // indirect
|
|
github.com/coreos/pkg v0.0.0-20220810130054-c7d1c02cb6cf // indirect
|
|
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
|
|
github.com/denverdino/aliyungo v0.0.0-20170926055100-d3308649c661 // indirect
|
|
github.com/digitalocean/godo v1.10.0 // indirect
|
|
github.com/dimchansky/utfbom v1.1.0 // indirect
|
|
github.com/envoyproxy/protoc-gen-validate v0.1.0 // indirect
|
|
github.com/form3tech-oss/jwt-go v3.2.2+incompatible // indirect
|
|
github.com/go-logr/logr v1.2.3 // indirect
|
|
github.com/go-logr/stdr v1.2.2 // indirect
|
|
github.com/go-ole/go-ole v1.2.6 // indirect
|
|
github.com/go-openapi/analysis v0.21.4 // indirect
|
|
github.com/go-openapi/errors v0.20.3 // indirect
|
|
github.com/go-openapi/jsonpointer v0.19.5 // indirect
|
|
github.com/go-openapi/jsonreference v0.20.0 // indirect
|
|
github.com/go-openapi/loads v0.21.2 // indirect
|
|
github.com/go-openapi/spec v0.20.8 // indirect
|
|
github.com/go-openapi/swag v0.22.3 // indirect
|
|
github.com/go-openapi/validate v0.22.1 // indirect
|
|
github.com/go-ozzo/ozzo-validation v3.6.0+incompatible // indirect
|
|
github.com/gogo/protobuf v1.3.2 // indirect
|
|
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
|
|
github.com/golang/snappy v0.0.4 // indirect
|
|
github.com/google/btree v1.0.0 // indirect
|
|
github.com/google/go-querystring v1.0.0 // indirect
|
|
github.com/googleapis/gax-go/v2 v2.1.0 // indirect
|
|
github.com/googleapis/gnostic v0.2.0 // indirect
|
|
github.com/gophercloud/gophercloud v0.3.0 // indirect
|
|
github.com/hashicorp/errwrap v1.1.0 // indirect
|
|
github.com/hashicorp/go-msgpack v0.5.5 // indirect
|
|
github.com/hashicorp/go-msgpack/v2 v2.0.0 // indirect
|
|
github.com/hashicorp/go-plugin v1.4.5 // indirect
|
|
github.com/hashicorp/go-retryablehttp v0.6.7 // indirect
|
|
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
|
|
github.com/hashicorp/go-secure-stdlib/mlock v0.1.1 // indirect
|
|
github.com/hashicorp/go-secure-stdlib/parseutil v0.1.6 // indirect
|
|
github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 // indirect
|
|
github.com/hashicorp/mdns v1.0.4 // indirect
|
|
github.com/hashicorp/net-rpc-msgpackrpc/v2 v2.0.0 // indirect
|
|
github.com/hashicorp/vic v1.5.1-0.20190403131502-bbfe86ec9443 // indirect
|
|
github.com/jmespath/go-jmespath v0.4.0 // indirect
|
|
github.com/josharian/intern v1.0.0 // indirect
|
|
github.com/joyent/triton-go v1.7.1-0.20200416154420-6801d15b779f // indirect
|
|
github.com/json-iterator/go v1.1.12 // indirect
|
|
github.com/konsorten/go-windows-terminal-sequences v1.0.3 // indirect
|
|
github.com/linode/linodego v0.10.0 // indirect
|
|
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
|
|
github.com/mailru/easyjson v0.7.7 // indirect
|
|
github.com/mattn/go-colorable v0.1.12 // indirect
|
|
github.com/mattn/go-isatty v0.0.14 // indirect
|
|
github.com/mattn/go-runewidth v0.0.7 // indirect
|
|
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
|
|
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
|
|
github.com/mitchellh/go-homedir v1.1.0 // indirect
|
|
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
|
github.com/modern-go/reflect2 v1.0.2 // indirect
|
|
github.com/nicolai86/scaleway-sdk v1.10.2-0.20180628010248-798f60e20bb2 // indirect
|
|
github.com/oklog/run v1.0.0 // indirect
|
|
github.com/oklog/ulid v1.3.1 // indirect
|
|
github.com/opentracing/opentracing-go v1.2.1-0.20220228012449-10b1cf09e00b // indirect
|
|
github.com/packethost/packngo v0.1.1-0.20180711074735-b9cb5096f54c // indirect
|
|
github.com/pierrec/lz4 v2.5.2+incompatible // indirect
|
|
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
|
|
github.com/posener/complete v1.2.3 // indirect
|
|
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
|
|
github.com/pquerna/cachecontrol v0.0.0-20180517163645-1555304b9b35 // indirect
|
|
github.com/prometheus/client_model v0.3.0 // indirect
|
|
github.com/prometheus/common v0.37.0 // indirect
|
|
github.com/prometheus/procfs v0.8.0 // indirect
|
|
github.com/renier/xmlrpc v0.0.0-20170708154548-ce4a1a486c03 // indirect
|
|
github.com/ryanuber/go-glob v1.0.0 // indirect
|
|
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 // indirect
|
|
github.com/segmentio/fasthash v1.0.3 // indirect
|
|
github.com/sirupsen/logrus v1.6.0 // indirect
|
|
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 // indirect
|
|
github.com/softlayer/softlayer-go v0.0.0-20180806151055-260589d94c7d // indirect
|
|
github.com/spf13/pflag v1.0.5 // indirect
|
|
github.com/stretchr/objx v0.5.0 // indirect
|
|
github.com/tencentcloud/tencentcloud-sdk-go v1.0.162 // indirect
|
|
github.com/tklauser/go-sysconf v0.3.10 // indirect
|
|
github.com/tklauser/numcpus v0.4.0 // indirect
|
|
github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926 // indirect
|
|
github.com/vmware/govmomi v0.18.0 // indirect
|
|
github.com/yusufpapurcu/wmi v1.2.2 // indirect
|
|
go.mongodb.org/mongo-driver v1.11.0 // indirect
|
|
go.opencensus.io v0.23.0 // indirect
|
|
go.opentelemetry.io/otel v1.11.1 // indirect
|
|
go.opentelemetry.io/otel/trace v1.11.1 // indirect
|
|
go.opentelemetry.io/proto/otlp v0.7.0 // indirect
|
|
go.uber.org/atomic v1.9.0 // indirect
|
|
golang.org/x/exp v0.0.0-20230321023759-10a507213a29 // indirect
|
|
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect
|
|
golang.org/x/term v0.6.0 // indirect
|
|
golang.org/x/text v0.8.0 // indirect
|
|
golang.org/x/tools v0.6.0 // indirect
|
|
google.golang.org/api v0.57.0 // indirect
|
|
google.golang.org/appengine v1.6.7 // indirect
|
|
gopkg.in/inf.v0 v0.9.1 // indirect
|
|
gopkg.in/ini.v1 v1.66.2 // indirect
|
|
gopkg.in/resty.v1 v1.12.0 // indirect
|
|
gopkg.in/yaml.v2 v2.4.0 // indirect
|
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
|
k8s.io/klog v1.0.0 // indirect
|
|
k8s.io/utils v0.0.0-20200324210504-a9aa75ae1b89 // indirect
|
|
sigs.k8s.io/structured-merge-diff/v3 v3.0.0 // indirect
|
|
sigs.k8s.io/yaml v1.2.0 // indirect
|
|
)
|