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

ACL Node Identities #7970

Merged
merged 1 commit into from
Jun 16, 2020
Merged

ACL Node Identities #7970

merged 1 commit into from
Jun 16, 2020

Conversation

mkeeler
Copy link
Member

@mkeeler mkeeler commented May 28, 2020

A Node Identity is very similar to a service identity. Its main targeted use is to allow creating tokens for use by Consul agents that will grant the necessary permissions for all the typical agent operations (node registration, coordinate updates, anti-entropy).

Half of the changes in this PR are for golden file based tests of the acl token and role cli output. Another big updates was to refactor many of the tests in agent/consul/acl_endpoint_test.go to use the same style of tests and the same helpers. Besides being less boiler plate in the tests it also uses a common way of starting a test server with ACLs that should operate without any warnings regarding deprecated non-uuid master tokens etc.

There is also a second commit in this PR to address some arm build issues where Gos builtin linker was having trouble linking Consul when CGO is enabled. We might be able to get rid of CGO now that a bug causing a crash on ARM was fixed in go 1.14. For the time being though, setting -linkmode=external will cause Go to use the systems linker which is more robust and can handle our binary perfectly well.

@mkeeler mkeeler force-pushed the feature/acl-node-identity branch 6 times, most recently from 243348f to dfe90f3 Compare June 2, 2020 16:31
Copy link
Member

@rboyer rboyer left a comment

Choose a reason for hiding this comment

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

LGTM

@mkeeler mkeeler force-pushed the feature/acl-node-identity branch 2 times, most recently from ce40ebb to 1ad948a Compare June 3, 2020 16:41
A Node Identity is very similar to a service identity. Its main targeted use is to allow creating tokens for use by Consul agents that will grant the necessary permissions for all the typical agent operations (node registration, coordinate updates, anti-entropy).

Half of this commit is for golden file based tests of the acl token and role cli output. Another big updates was to refactor many of the tests in agent/consul/acl_endpoint_test.go to use the same style of tests and the same helpers. Besides being less boiler plate in the tests it also uses a common way of starting a test server with ACLs that should operate without any warnings regarding deprecated non-uuid master tokens etc.
@mkeeler mkeeler force-pushed the feature/acl-node-identity branch from 1ad948a to 937deb7 Compare June 10, 2020 20:57
@mkeeler mkeeler merged commit d3881dd into master Jun 16, 2020
@mkeeler mkeeler deleted the feature/acl-node-identity branch June 16, 2020 16:54
hashicorp-ci pushed a commit that referenced this pull request Jun 16, 2020
A Node Identity is very similar to a service identity. Its main targeted use is to allow creating tokens for use by Consul agents that will grant the necessary permissions for all the typical agent operations (node registration, coordinate updates, anti-entropy).

Half of this commit is for golden file based tests of the acl token and role cli output. Another big updates was to refactor many of the tests in agent/consul/acl_endpoint_test.go to use the same style of tests and the same helpers. Besides being less boiler plate in the tests it also uses a common way of starting a test server with ACLs that should operate without any warnings regarding deprecated non-uuid master tokens etc.
freddygv added a commit that referenced this pull request Jun 18, 2020
blake added a commit that referenced this pull request Sep 12, 2020
Document `-node-identity` option which was added in #7970 for
`acl token <create|update>` and `acl role <create|update>` commands.
blake added a commit that referenced this pull request Sep 15, 2020
Document `-node-identity` option which was added in #7970 for
`acl token <create|update>` and `acl role <create|update>` commands.
hashicorp-ci pushed a commit that referenced this pull request Sep 15, 2020
Document `-node-identity` option which was added in #7970 for
`acl token <create|update>` and `acl role <create|update>` commands.
hashicorp-ci pushed a commit that referenced this pull request Sep 15, 2020
Document `-node-identity` option which was added in #7970 for
`acl token <create|update>` and `acl role <create|update>` commands.
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.

2 participants