Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for Consul 1.4 ACL system #5586

Merged
merged 16 commits into from
Nov 2, 2018
Merged

Adding support for Consul 1.4 ACL system #5586

merged 16 commits into from
Nov 2, 2018

Conversation

ncorrare
Copy link
Contributor

@ncorrare ncorrare commented Oct 23, 2018

Consul 1.4 has different ACL system, similar the Nomad one.
Policies are de-coupled from tokens, and as such roles need to store a list of policies, as oppose to policy documents.
The policies parameter was added while maintaining the previous parameters for backwards compatibility.
At this point, tests have not been written yet as I'm waiting for a 1.4.0-rc container to be released, but most of the previous tests are passing (which is expected, it shouldn't break compatibility with old Consul installs).

@ncorrare
Copy link
Contributor Author

All tests passing!

@chrishoffman chrishoffman changed the title [DNM] Adding support for Consul 1.4 ACL system Adding support for Consul 1.4 ACL system Oct 25, 2018
@chrishoffman chrishoffman added this to the 1.0 milestone Oct 25, 2018
Copy link
Contributor

@tyrannosaurus-becks tyrannosaurus-becks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me! Going to let one more approver take a pass before giving explicit approval.

builtin/logical/consul/path_roles.go Outdated Show resolved Hide resolved
builtin/logical/consul/backend_old_test.go Outdated Show resolved Hide resolved
builtin/logical/consul/backend_test.go Show resolved Hide resolved
builtin/logical/consul/backend_test.go Outdated Show resolved Hide resolved
builtin/logical/consul/path_roles.go Outdated Show resolved Hide resolved
builtin/logical/consul/path_roles.go Outdated Show resolved Hide resolved
builtin/logical/consul/path_roles.go Outdated Show resolved Hide resolved
builtin/logical/consul/path_roles.go Outdated Show resolved Hide resolved
builtin/logical/consul/path_token.go Show resolved Hide resolved
builtin/logical/consul/path_token.go Outdated Show resolved Hide resolved
builtin/logical/consul/backend_old_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@briankassouf briankassouf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few very minor things

builtin/logical/consul/path_token.go Outdated Show resolved Hide resolved
builtin/logical/consul/path_roles.go Outdated Show resolved Hide resolved
builtin/logical/consul/path_roles.go Outdated Show resolved Hide resolved
builtin/logical/consul/path_roles.go Outdated Show resolved Hide resolved
builtin/logical/consul/path_roles.go Show resolved Hide resolved
builtin/logical/consul/path_roles.go Show resolved Hide resolved
@chrishoffman chrishoffman merged commit 53ad302 into hashicorp:master Nov 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants