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

secure variables ACL policies #13294

Merged
merged 5 commits into from
Jun 20, 2022
Merged

secure variables ACL policies #13294

merged 5 commits into from
Jun 20, 2022

Conversation

tgross
Copy link
Member

@tgross tgross commented Jun 8, 2022

Adds a new policy block inside namespaces to control access to secure
variables on the basis of path, with support for globbing.

Adds a notion of implied policies for workload identities, where we'll
check for policies that might exist with particular well-known names,
and apply those policies to storage RPCs if they exist.

Refactors how we verify the token for the service registration RPCs so
that we can reuse the verification method. Best reviewed
commit-by-commit.

@tgross tgross added this to the 1.4.0 milestone Jun 8, 2022
@tgross tgross requested a review from angrycub June 10, 2022 14:38
@tgross tgross marked this pull request as ready for review June 10, 2022 14:38
@tgross tgross removed the request for review from angrycub June 13, 2022 19:39
@tgross tgross marked this pull request as draft June 13, 2022 19:39
@tgross tgross marked this pull request as ready for review June 14, 2022 15:27
@tgross tgross requested a review from angrycub June 14, 2022 15:27
nomad/acl.go Outdated Show resolved Hide resolved
Adds a new policy block inside namespaces to control access to secure
variables on the basis of path, with support for globbing.
The ServiceRegistration RPC only needs to be able to verify that a
claim is valid for some allocation in the store; it doesn't care about
implicit policies or capabilities. Split this out to its own method on
the server so that the SecureVariables RPC can reuse it as a separate
step from resolving policies (see next commit).
Copy link
Contributor

@angrycub angrycub left a comment

Choose a reason for hiding this comment

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

Read through it all, makes sense to me

@tgross tgross merged commit 0b36d43 into secure-variables Jun 20, 2022
@tgross tgross deleted the sv-acl-policy branch June 20, 2022 15:21
tgross added a commit that referenced this pull request Jul 8, 2022
Adds a new policy block inside namespaces to control access to secure
variables on the basis of path, with support for globbing.

Splits out VerifyClaim from ResolveClaim.
The ServiceRegistration RPC only needs to be able to verify that a
claim is valid for some allocation in the store; it doesn't care about
implicit policies or capabilities. Split this out to its own method on
the server so that the SecureVariables RPC can reuse it as a separate
step from resolving policies (see next commit).

Support implicit policies based on workload identity
tgross added a commit that referenced this pull request Jul 8, 2022
Adds a new policy block inside namespaces to control access to secure
variables on the basis of path, with support for globbing.

Splits out VerifyClaim from ResolveClaim.
The ServiceRegistration RPC only needs to be able to verify that a
claim is valid for some allocation in the store; it doesn't care about
implicit policies or capabilities. Split this out to its own method on
the server so that the SecureVariables RPC can reuse it as a separate
step from resolving policies (see next commit).

Support implicit policies based on workload identity
tgross added a commit that referenced this pull request Jul 11, 2022
Adds a new policy block inside namespaces to control access to secure
variables on the basis of path, with support for globbing.

Splits out VerifyClaim from ResolveClaim.
The ServiceRegistration RPC only needs to be able to verify that a
claim is valid for some allocation in the store; it doesn't care about
implicit policies or capabilities. Split this out to its own method on
the server so that the SecureVariables RPC can reuse it as a separate
step from resolving policies (see next commit).

Support implicit policies based on workload identity
ChaiWithJai pushed a commit that referenced this pull request Jul 13, 2022
Adds a new policy block inside namespaces to control access to secure
variables on the basis of path, with support for globbing.

Splits out VerifyClaim from ResolveClaim.
The ServiceRegistration RPC only needs to be able to verify that a
claim is valid for some allocation in the store; it doesn't care about
implicit policies or capabilities. Split this out to its own method on
the server so that the SecureVariables RPC can reuse it as a separate
step from resolving policies (see next commit).

Support implicit policies based on workload identity
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants