open-consul/vendor/github.com
Matt Keeler 99e0a124cb
New ACLs (#4791)
This PR is almost a complete rewrite of the ACL system within Consul. It brings the features more in line with other HashiCorp products. Obviously there is quite a bit left to do here but most of it is related docs, testing and finishing the last few commands in the CLI. I will update the PR description and check off the todos as I finish them over the next few days/week.
Description

At a high level this PR is mainly to split ACL tokens from Policies and to split the concepts of Authorization from Identities. A lot of this PR is mostly just to support CRUD operations on ACLTokens and ACLPolicies. These in and of themselves are not particularly interesting. The bigger conceptual changes are in how tokens get resolved, how backwards compatibility is handled and the separation of policy from identity which could lead the way to allowing for alternative identity providers.

On the surface and with a new cluster the ACL system will look very similar to that of Nomads. Both have tokens and policies. Both have local tokens. The ACL management APIs for both are very similar. I even ripped off Nomad's ACL bootstrap resetting procedure. There are a few key differences though.

    Nomad requires token and policy replication where Consul only requires policy replication with token replication being opt-in. In Consul local tokens only work with token replication being enabled though.
    All policies in Nomad are globally applicable. In Consul all policies are stored and replicated globally but can be scoped to a subset of the datacenters. This allows for more granular access management.
    Unlike Nomad, Consul has legacy baggage in the form of the original ACL system. The ramifications of this are:
        A server running the new system must still support other clients using the legacy system.
        A client running the new system must be able to use the legacy RPCs when the servers in its datacenter are running the legacy system.
        The primary ACL DC's servers running in legacy mode needs to be a gate that keeps everything else in the entire multi-DC cluster running in legacy mode.

So not only does this PR implement the new ACL system but has a legacy mode built in for when the cluster isn't ready for new ACLs. Also detecting that new ACLs can be used is automatic and requires no configuration on the part of administrators. This process is detailed more in the "Transitioning from Legacy to New ACL Mode" section below.
2018-10-19 12:04:07 -04:00
..
Azure vendor k8s client lib 2018-09-05 14:59:02 -07:00
DataDog/datadog-go Updates DataDog/datadog-go. 2016-08-09 16:27:20 -07:00
Jeffail/gabs Vendor the vault api 2018-06-25 12:26:10 -07:00
Microsoft/go-winio agent: add dependencies for docker on windows 2017-07-19 12:03:59 +02:00
NYTimes/gziphandler Add support for compression in http api 2018-04-03 22:33:13 +02:00
SAP/go-hdb Vendor the vault api 2018-06-25 12:26:10 -07:00
SermoDigital/jose Vendor the vault api 2018-06-25 12:26:10 -07:00
Sirupsen/logrus Vendoring update for go-discover. (#4412) 2018-07-25 16:21:04 -07:00
StackExchange/wmi Add missing shirou/gopsutils vendor dependencies and files that were reverted 2017-02-01 10:26:00 -08:00
armon Bump github.com/armon/go-metrics to allow having prometheus support 2018-04-05 18:21:32 +02:00
asaskevich/govalidator Vendor the vault api 2018-06-25 12:26:10 -07:00
aws/aws-sdk-go Update go-discover vendor 2018-09-05 13:31:10 -07:00
beorn7/perks Added dependency github.com/prometheus/client_golang/prometheus/promhttp 2018-04-06 08:54:37 +02:00
bgentry/speakeasy Updates bgentry/speakeasy. 2016-08-09 16:31:32 -07:00
boltdb/bolt Updates BoltDB to 1.3.1. 2017-09-26 14:53:01 -07:00
circonus-labs revert to previous circonusllhist 2016-11-09 19:30:32 -05:00
coredns/coredns Add github.com/coredns/coredns/plugin/pkg/dnsutil files 2018-05-21 22:25:16 +02:00
davecgh/go-spew agent/consul/fsm: begin using testify/assert 2018-03-06 09:48:15 -08:00
denisenkom/go-mssqldb Vendor the vault api 2018-06-25 12:26:10 -07:00
denverdino/aliyungo vendor: pull in latest version of go-discover 2018-05-10 15:40:16 -07:00
dgrijalva/jwt-go vendor k8s client lib 2018-09-05 14:59:02 -07:00
digitalocean/godo Update go-discover vendor 2018-09-05 13:31:10 -07:00
docker/go-connections/sockets agent: add dependencies for docker on windows 2017-07-19 12:03:59 +02:00
elazarl/go-bindata-assetfs Updates elazarl/go-bindata-assetfs. 2016-08-09 16:36:07 -07:00
envoyproxy/go-control-plane xDS Server Implementation (#4731) 2018-10-10 16:55:34 +01:00
fatih/structs Vendor the vault api 2018-06-25 12:26:10 -07:00
ghodss/yaml vendor k8s client lib 2018-09-05 14:59:02 -07:00
go-ole/go-ole vendor: upgrade github.com/go-ole/go-ole 2017-06-01 16:05:24 +02:00
go-sql-driver/mysql Vendor the vault api 2018-06-25 12:26:10 -07:00
gocql/gocql Vendor the vault api 2018-06-25 12:26:10 -07:00
gogo xDS Server Implementation (#4731) 2018-10-10 16:55:34 +01:00
golang xDS Server Implementation (#4731) 2018-10-10 16:55:34 +01:00
google vendor k8s client lib 2018-09-05 14:59:02 -07:00
googleapis/gnostic vendor k8s client lib 2018-09-05 14:59:02 -07:00
gophercloud/gophercloud vendor k8s client lib 2018-09-05 14:59:02 -07:00
gregjones/httpcache vendor k8s client lib 2018-09-05 14:59:02 -07:00
hailocab/go-hostpool Vendor the vault api 2018-06-25 12:26:10 -07:00
hashicorp New ACLs (#4791) 2018-10-19 12:04:07 -04:00
imdario/mergo vendor k8s client lib 2018-09-05 14:59:02 -07:00
jefferai/jsonx Vendor the vault api 2018-06-25 12:26:10 -07:00
joyent/triton-go vendor: pull in latest version of go-discover 2018-05-10 15:40:16 -07:00
json-iterator/go vendor k8s client lib 2018-09-05 14:59:02 -07:00
keybase/go-crypto Vendor the vault api 2018-06-25 12:26:10 -07:00
kr/text replace old fork of text package (#4501) 2018-08-14 12:23:18 -07:00
lib/pq Vendor the vault api 2018-06-25 12:26:10 -07:00
lyft/protoc-gen-validate xDS Server Implementation (#4731) 2018-10-10 16:55:34 +01:00
mattn/go-isatty Updates mattn/go-isatty and mitchellh/cli. 2016-08-09 17:26:11 -07:00
matttproud/golang_protobuf_extensions Added dependency github.com/prometheus/client_golang/prometheus/promhttp 2018-04-06 08:54:37 +02:00
miekg/dns Bump DNS lib to 1.0.7 with 14bits Len() fix 2018-05-16 10:52:51 +02:00
mitchellh vendor: update mapstructure to v1.1.0 2018-09-30 19:15:40 -07:00
modern-go vendor k8s client lib 2018-09-05 14:59:02 -07:00
nicolai86/scaleway-sdk vendor: pull in latest version of go-discover 2018-05-10 15:40:16 -07:00
oklog/run Vendor the vault api 2018-06-25 12:26:10 -07:00
packethost/packngo Vendoring update for go-discover. (#4412) 2018-07-25 16:21:04 -07:00
pascaldekloe/goe/verify vendor: add github.com/pascaldekloe/goe/verify 2017-04-28 15:00:08 -07:00
patrickmn/go-cache Vendor the vault api 2018-06-25 12:26:10 -07:00
peterbourgon/diskv vendor k8s client lib 2018-09-05 14:59:02 -07:00
pkg/errors Add pkg/errors 2017-03-23 18:41:20 -04:00
pmezard/go-difflib agent/consul/fsm: begin using testify/assert 2018-03-06 09:48:15 -08:00
posener/complete vendor: update complete version to v1.1 2017-11-08 06:45:56 +02:00
prometheus Added dependency github.com/prometheus/client_golang/prometheus/promhttp 2018-04-06 08:54:37 +02:00
ryanuber Vendor the vault api 2018-06-25 12:26:10 -07:00
sean-/seed Updates memberlist and Serf (and adds new dependencies). 2017-02-08 13:56:07 -08:00
shirou New command: consul debug (#4754) 2018-10-19 08:41:03 -07:00
softlayer/softlayer-go vendor: pull in latest version of go-discover 2018-05-10 15:40:16 -07:00
spf13/pflag vendor k8s client lib 2018-09-05 14:59:02 -07:00
stretchr Add missing vendor dep github.com/stretchr/objx 2018-06-14 09:42:13 -07:00
vmware Vendoring update for go-discover. (#4412) 2018-07-25 16:21:04 -07:00