module github . com / hashicorp / consul
go 1.13
replace github . com / hashicorp / consul / api = > . / api
replace github . com / hashicorp / consul / sdk = > . / sdk
replace launchpad . net / gocheck = > github . com / go - check / check v0 . 0.0 - 20140225173054 - eb6ee6f84d0a
require (
github . com / Microsoft / go - winio v0 . 4.3 / / indirect
github . com / NYTimes / gziphandler v1 . 0.1
github . com / StackExchange / wmi v0 . 0.0 - 20180116203802 - 5 d049714c4a6 / / indirect
github . com / armon / circbuf v0 . 0.0 - 20150827004946 - bbbad097214e
github . com / armon / go - metrics v0 . 3.5 - 0.20200914211745 - 2 bc64ebd2914
github . com / armon / go - radix v1 . 0.0
github . com / aws / aws - sdk - go v1 . 25.41
github . com / coredns / coredns v1 . 1.2
github . com / coreos / go - oidc v2 . 1.0 + incompatible
github . com / digitalocean / godo v1 . 10.0 / / indirect
github . com / docker / go - connections v0 . 3.0
github . com / elazarl / go - bindata - assetfs v0 . 0.0 - 20160803192304 - e1a2a7ec64b0
github . com / envoyproxy / go - control - plane v0 . 9.5
github . com / frankban / quicktest v1 . 11.0 / / indirect
github . com / go - ole / go - ole v1 . 2.1 / / indirect
github . com / gogo / protobuf v1 . 2.2 - 0.20190723190241 - 65 acae22fc9d
github . com / golang / protobuf v1 . 3.5
github . com / google / go - cmp v0 . 5.2
github . com / google / go - querystring v1 . 0.0 / / indirect
github . com / google / gofuzz v1 . 2.0
github . com / google / tcpproxy v0 . 0.0 - 20180808230851 - dfa16c61dad2
github . com / hashicorp / consul / api v1 . 7.0
github . com / hashicorp / consul / sdk v0 . 6.0
github . com / hashicorp / errwrap v1 . 0.0
github . com / hashicorp / go - bexpr v0 . 1.2
github . com / hashicorp / go - checkpoint v0 . 0.0 - 20171009173528 - 1545 e56e46de
github . com / hashicorp / go - cleanhttp v0 . 5.1
github . com / hashicorp / go - connlimit v0 . 3.0
github . com / hashicorp / go - discover v0 . 0.0 - 20200501174627 - ad1e96bde088
github . com / hashicorp / go - hclog v0 . 12.0
github . com / hashicorp / go - immutable - radix v1 . 2.0 / / indirect
github . com / hashicorp / go - memdb v1 . 1.0
github . com / hashicorp / go - msgpack v0 . 5.5
github . com / hashicorp / go - multierror v1 . 1.0
github . com / hashicorp / go - raftchunking v0 . 6.1
github . com / hashicorp / go - retryablehttp v0 . 6.7 / / indirect
github . com / hashicorp / go - sockaddr v1 . 0.2
github . com / hashicorp / go - syslog v1 . 0.0
github . com / hashicorp / go - uuid v1 . 0.2
github . com / hashicorp / go - version v1 . 2.0
github . com / hashicorp / golang - lru v0 . 5.4
github . com / hashicorp / hcl v1 . 0.0
github . com / hashicorp / hil v0 . 0.0 - 20160711231837 - 1 e86c6b523c5
github . com / hashicorp / memberlist v0 . 2.2
github . com / hashicorp / net - rpc - msgpackrpc v0 . 0.0 - 20151116020338 - a14192a58a69
github . com / hashicorp / raft v1 . 1.2
github . com / hashicorp / raft - boltdb v0 . 0.0 - 20171010151810 - 6 e5ba93211ea
add primary keys to list keyring (#8522)
During gossip encryption key rotation it would be nice to be able to see if all nodes are using the same key. This PR adds another field to the json response from `GET v1/operator/keyring` which lists the primary keys in use per dc. That way an operator can tell when a key was successfully setup as primary key.
Based on https://github.com/hashicorp/serf/pull/611 to add primary key to list keyring output:
```json
[
{
"WAN": true,
"Datacenter": "dc2",
"Segment": "",
"Keys": {
"0OuM4oC3Os18OblWiBbZUaHA7Hk+tNs/6nhNYtaNduM=": 6,
"SINm887hKTzmMWeBNKTJReaTLX3mBEJKriDyt88Ad+g=": 6
},
"PrimaryKeys": {
"SINm887hKTzmMWeBNKTJReaTLX3mBEJKriDyt88Ad+g=": 6
},
"NumNodes": 6
},
{
"WAN": false,
"Datacenter": "dc2",
"Segment": "",
"Keys": {
"0OuM4oC3Os18OblWiBbZUaHA7Hk+tNs/6nhNYtaNduM=": 8,
"SINm887hKTzmMWeBNKTJReaTLX3mBEJKriDyt88Ad+g=": 8
},
"PrimaryKeys": {
"SINm887hKTzmMWeBNKTJReaTLX3mBEJKriDyt88Ad+g=": 8
},
"NumNodes": 8
},
{
"WAN": false,
"Datacenter": "dc1",
"Segment": "",
"Keys": {
"0OuM4oC3Os18OblWiBbZUaHA7Hk+tNs/6nhNYtaNduM=": 3,
"SINm887hKTzmMWeBNKTJReaTLX3mBEJKriDyt88Ad+g=": 8
},
"PrimaryKeys": {
"SINm887hKTzmMWeBNKTJReaTLX3mBEJKriDyt88Ad+g=": 8
},
"NumNodes": 8
}
]
```
I intentionally did not change the CLI output because I didn't find a good way of displaying this information. There are a couple of options that we could implement later:
* add a flag to show the primary keys
* add a flag to show json output
Fixes #3393.
4 years ago
github . com / hashicorp / serf v0 . 9.4
github . com / hashicorp / vault / api v1 . 0.5 - 0.20200717191844 - f687267c8086
github . com / hashicorp / yamux v0 . 0.0 - 20181012175058 - 2 f1d1f20f75d
github . com / imdario / mergo v0 . 3.6
github . com / joyent / triton - go v1 . 7.1 - 0.20200416154420 - 6801 d15b779f / / indirect
github . com / konsorten / go - windows - terminal - sequences v1 . 0.2 / / indirect
github . com / kr / text v0 . 1.0
github . com / miekg / dns v1 . 1.26
github . com / mitchellh / cli v1 . 1.0
github . com / mitchellh / copystructure v1 . 0.0
github . com / mitchellh / go - testing - interface v1 . 14.0
github . com / mitchellh / hashstructure v0 . 0.0 - 20170609045927 - 2 bca23e0e452
github . com / mitchellh / mapstructure v1 . 3.3
github . com / mitchellh / pointerstructure v1 . 0.0
github . com / mitchellh / reflectwalk v1 . 0.1
github . com / patrickmn / go - cache v2 . 1.0 + incompatible
github . com / pierrec / lz4 v2 . 5.2 + incompatible / / indirect
github . com / pkg / errors v0 . 8.1
github . com / pquerna / cachecontrol v0 . 0.0 - 20180517163645 - 1555304 b9b35 / / indirect
github . com / prometheus / client_golang v1 . 4.0
github . com / rboyer / safeio v0 . 2.1
github . com / ryanuber / columnize v2 . 1.0 + incompatible
github . com / shirou / gopsutil v2 . 20.9 + incompatible
github . com / stretchr / testify v1 . 5.1
go . opencensus . io v0 . 22.0 / / indirect
go . uber . org / goleak v1 . 0.0
golang . org / x / crypto v0 . 0.0 - 20200820211705 - 5 c72a883971a
golang . org / x / net v0 . 0.0 - 20200904194848 - 62 affa334b73
golang . org / x / oauth2 v0 . 0.0 - 20190604053449 - 0 f29369cfe45
golang . org / x / sync v0 . 0.0 - 20200317015054 - 43 a5402ce75a
golang . org / x / sys v0 . 0.0 - 20201007082116 - 8445 cc04cbdf
golang . org / x / text v0 . 3.3 / / indirect
golang . org / x / time v0 . 0.0 - 20200630173020 - 3 af7569d3a1e
golang . org / x / tools v0 . 0.0 - 20200513154647 - 78 b527d18275 / / indirect
google . golang . org / api v0 . 9.0 / / indirect
google . golang . org / appengine v1 . 6.0 / / indirect
google . golang . org / grpc v1 . 25.1
gopkg . in / square / go - jose . v2 v2 . 5.1
k8s . io / api v0 . 16.9
k8s . io / apimachinery v0 . 16.9
k8s . io / client - go v0 . 16.9
)
replace istio . io / gogo - genproto v0 . 0.0 - 20190124151557 - 6 d926a6e6feb = > github . com / istio / gogo - genproto v0 . 0.0 - 20190124151557 - 6 d926a6e6feb