consul/vendor/github.com/hashicorp
Matt Keeler 18b29c45c4
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
..
errwrap
go-checkpoint Updating go-checkpoint lib to have a fixed timeout (#3564) 2017-10-17 17:01:23 -07:00
go-cleanhttp Updates hashicorp/go-cleanhttp to pick up new sanitizer. 2017-12-20 13:48:49 -08:00
go-discover vendor k8s client lib 2018-09-05 14:59:02 -07:00
go-hclog Vendor the vault api 2018-06-25 12:26:10 -07:00
go-immutable-radix Govendor update go-memdb and go-immutable-radix to pick up changes for DeletePrefix 2017-07-25 17:28:43 -05:00
go-memdb New ACLs (#4791) 2018-10-19 12:04:07 -04:00
go-msgpack Cleans up go-msgpack vendoring. 2016-11-14 17:37:05 -08:00
go-multierror
go-plugin Vendor the vault api 2018-06-25 12:26:10 -07:00
go-retryablehttp Vendor the vault api 2018-06-25 12:26:10 -07:00
go-rootcerts Vendor the go-rootcerts lib for the client tls options 2017-04-14 13:46:19 -07:00
go-sockaddr vendor: update github.com/hashicorp/go-sockaddr (#3633) 2017-10-31 17:05:57 -07:00
go-syslog Updates hashicorp/go-syslog. 2016-08-09 17:24:40 -07:00
go-uuid Updates hashicorp/go-uuid. 2016-08-09 17:24:40 -07:00
go-version Add advanced autopilot features 2017-03-22 15:25:16 -07:00
golang-lru
hcl New ACLs (#4791) 2018-10-19 12:04:07 -04:00
hil Updates hashicorp/hcl and hashicorp/hil. 2016-08-09 17:24:13 -07:00
logutils Updates hashicorp/logutils. 2016-08-09 17:24:40 -07:00
memberlist Update Serf and memberlist (#4511) 2018-08-09 13:16:13 -04:00
net-rpc-msgpackrpc
raft Update Raft Vendoring (#4539) 2018-09-06 15:07:42 -04:00
raft-boltdb Updating vendor directory for raft address provider interface changes 2017-08-30 09:57:48 -05:00
scada-client/test vendor: remove github.com/hashicorp/scada-client 2017-05-22 11:07:46 +02:00
serf Update Serf and memberlist (#4511) 2018-08-09 13:16:13 -04:00
vault Remove build tags from vendored vault file to allow for this to merge properly into enterprise 2018-06-25 12:26:10 -07:00
yamux Update yamux vendoring 2018-06-04 16:02:50 -04:00