-
Notifications
You must be signed in to change notification settings - Fork 929
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
Authorization refactor in preparation for fine-grained authorization #12313
Merged
tomponline
merged 55 commits into
canonical:main
from
markylaing:authorization-refactor
Oct 25, 2023
Merged
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
5017205
lxd/auth: Adds entitlement, object, and permission types and constants.
markylaing 3ea15d2
lxd/auth: Adds functions for creating auth objects.
markylaing a52e978
lxd/auth: Adds tests for authorization objects.
markylaing 1ec0160
lxd/auth: Extends the authorizer interface.
markylaing cfa3b77
lxd/auth: Update common authorizer for Authorizer interface extension.
markylaing 9123f14
lxd/auth: Implement Authorizer for TLS driver.
markylaing 822af45
lxd/auth: Implement Authorizer for RBAC driver.
markylaing a39a702
lxd: Do not set user access data in request context.
markylaing c2c5840
lxd: Update calls to auth package.
markylaing dbad9e2
lxd: Only allow missing access handler when AllowUntrusted is true.
markylaing 7b250a6
lxd: Update allowPermission function.
markylaing fd9d911
lxd: Updates allowAuthenticated function.
markylaing d428bc7
lxd/db/operationtype: Updates Permission method.
markylaing 67d9725
lxd/operations: Updates operation permissions.
markylaing 154c204
lxd/db/cluster: Renames constants.go file.
markylaing 1fb2633
lxd/db/cluster: Add storage bucket entity type.
markylaing 7362589
lxd/db/cluster: Adds URLToEntityType function.
markylaing 1e22bcb
lxd/db/cluster: Adds a unit test for the URLToEntityType function.
markylaing 3abd114
lxd/project: Updates permission handling for projects.
markylaing 8975800
lxd/project: Updates permissions tests.
markylaing f0b0dcc
lxd/events: Pass an auth.PermissionChecker into the event listener.
markylaing fbd635b
lxd-agent: Update call to AddListener for the LXD Agent.
markylaing 74aa566
lxd: Update authorization for the /1.0 endpoint.
markylaing 2db6fe5
lxd: Update authorization for cluster endpoints.
markylaing aa061f8
lxd: Update authorization for internal endpoints.
markylaing 9306e35
lxd/metrics: Adds method to filter metrics with a permission checker.
markylaing ae092f4
lxd: Update authorization for metrics.
markylaing 4cb57a1
lxd: Update authorization for projects API.
markylaing 535c040
lxd: Updates authorization for certificates API.
markylaing f1bb54a
lxd: Updates authorization for events API.
markylaing 0cc2aa3
lxd: Updates authorization for image API.
markylaing 73a9ce3
lxd: Add/remove images and image aliases from authorizer.
markylaing 46698f1
lxd: Update authorization for instances.
markylaing 146f36c
lxd/instance/drivers: Add/remove/rename instances in authorizer.
markylaing cacb832
lxd: Update authorization for network ACL API.
markylaing 8b494ab
lxd: Update network ACLs in the authorizer.
markylaing 721e31a
lxd: Update authorization for network allocations.
markylaing 444692e
lxd: Update authorization for network forwards.
markylaing c2ef675
lxd: Update authorization for network load balancers.
markylaing 3147031
lxd: Update authorization for network peers.
markylaing 92408de
lxd: Update authorization for network zones.
markylaing cb5919f
lxd: Update network zones in the authorizer.
markylaing ca20445
lxd: Update authorization for the networks API.
markylaing 31df5be
lxd: Update networks in the authorizer.
markylaing 8ee727e
lxd: Update authorization for operations.
markylaing d9322ff
lxd: Update authorization for profiles.
markylaing 6000337
lxd: Update profiles in authorizer.
markylaing cac36ee
lxd: Update authorization for resources.
markylaing 2d3a73c
lxd: Update authorization for storage buckets.
markylaing 0c43e90
lxd: Update storage buckets in authorizer.
markylaing 27d6fe4
lxd: Update authorization for storage pools.
markylaing 2ff65b0
lxd: Update storage pools in authorizer.
markylaing cb9da5d
lxd: Update authorization for storage volumes.
markylaing 3371cf9
lxd/storage: Add/Remove/Rename storage volumes in authorizer.
markylaing 7c9f699
lxd: Update authorization for warnings.
markylaing File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So if you can view all metrics with
auth.EntitlementCanViewMetrics
why cant you also do filtering?