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: Add HostVolume ACLs #6014

Merged
merged 2 commits into from
Aug 12, 2019
Merged

acl: Add HostVolume ACLs #6014

merged 2 commits into from
Aug 12, 2019

Conversation

endocrimes
Copy link
Contributor

This adds an initial implementation of ACLs for HostVolumes.

Because HostVolumes are a cluster-wide resource, they cannot be tied to
a namespace, thus here we allow similar wildcard definitions based on
their names, tied to a set of capabilities.

Initially, the only available capabilities are deny, or mount. These
will be extended to allow read-fs, mount-readonly and
similar capabilities.

@endocrimes endocrimes force-pushed the dani/rfc-host-volumes branch 2 times, most recently from d5ce4d7 to 4888b4c Compare July 25, 2019 14:14
@endocrimes endocrimes force-pushed the dani/f-host-volume-acls branch 2 times, most recently from afb334d to bacd83c Compare July 25, 2019 14:32
@endocrimes endocrimes force-pushed the dani/rfc-host-volumes branch 2 times, most recently from 5935e7a to 4a1d99c Compare July 25, 2019 14:49
@endocrimes endocrimes added this to the 0.10.0 milestone Jul 25, 2019
@endocrimes endocrimes changed the base branch from dani/rfc-host-volumes to f-host-volumes August 9, 2019 10:53
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

LGTM except for the one question. There's a lot of logic repeated from the namespace ACLs, but I feel like it's the right move not to try and abstract it yet. 👍

acl/acl.go Outdated Show resolved Hide resolved
@@ -238,19 +347,19 @@ func (a *ACL) findClosestMatchingGlob(ns string) (capabilitySet, bool) {
return matchingGlobs[0].capabilitySet, true
}

func (a *ACL) findAllMatchingWildcards(ns string) []matchingGlob {
func findAllMatchingWildcards(radix *iradix.Tree, name string) []matchingGlob {
Copy link
Member

Choose a reason for hiding this comment

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

👍 for removing the unnecessary mutability here.

This adds an initial implementation of ACLs for HostVolumes.

Because HostVolumes are a cluster-wide resource, they cannot be tied to
a namespace, thus here we allow similar wildcard definitions based on
their names, tied to a set of capabilities.

Initially, the only available capabilities are deny, or mount. These
may be extended in the future to allow read-fs, mount-readonly and
similar capabilities.
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

LGTM!

@endocrimes endocrimes merged commit 0ecaecf into f-host-volumes Aug 12, 2019
@endocrimes endocrimes deleted the dani/f-host-volume-acls branch August 12, 2019 13:31
@github-actions
Copy link

github-actions bot commented Feb 5, 2023

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 Feb 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants