Skip to content

auth: Add entitlements to LXD entities (part 2: Enrich LXD resources with entitlements) #14748

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

Merged

Conversation

gabrielmougard
Copy link
Contributor

@gabrielmougard gabrielmougard commented Jan 6, 2025

This is the second part of a group of three stacked PRs.

@gabrielmougard gabrielmougard force-pushed the feat/auth-dry-run-check-part3 branch 2 times, most recently from e653ad9 to 7f5457a Compare January 8, 2025 21:09
@gabrielmougard gabrielmougard marked this pull request as ready for review January 8, 2025 21:09
@gabrielmougard gabrielmougard force-pushed the feat/auth-dry-run-check-part3 branch 2 times, most recently from 171b326 to 1a09849 Compare January 9, 2025 13:09
@gabrielmougard gabrielmougard force-pushed the feat/auth-dry-run-check-part3 branch from 1a09849 to e18b874 Compare January 10, 2025 08:44
@gabrielmougard
Copy link
Contributor Author

@minaelee thanks for the feedbacks. Fixing that right now

@gabrielmougard gabrielmougard force-pushed the feat/auth-dry-run-check-part3 branch 4 times, most recently from 6f763e7 to c793358 Compare January 10, 2025 14:28
Copy link
Contributor

@edlerd edlerd left a comment

Choose a reason for hiding this comment

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

Approach and format seems all right from my point of view. Left some comments below.

…alization

This comes from golangci-lint: "Consider preallocating [filterDBBuckets] (prealloc)"
But since we use 'continue' statement in the loop, we can't really forecast a preallocation size,
so instead we use `make([]*db.StorageBucket, 0)` which is the same as `var .. []*db.StorageBucket`
but it stops the linter from complaining...

Signed-off-by: Gabriel Mougard <[email protected]>
@gabrielmougard gabrielmougard force-pushed the feat/auth-dry-run-check-part3 branch from ced5d8b to 970b227 Compare January 28, 2025 15:41
tomponline
tomponline previously approved these changes Jan 28, 2025
Copy link
Member

@tomponline tomponline left a comment

Choose a reason for hiding this comment

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

LGTM thanks!

@gabrielmougard
Copy link
Contributor Author

gabrielmougard commented Jan 28, 2025

@tomponline auth test passed (it was a simple formatting error with jq in the test since we now use sort | @csv). Let's wait for the rest.

@tomponline tomponline merged commit 7c7aabf into canonical:main Jan 28, 2025
29 checks passed
@tomponline
Copy link
Member

@gabrielmougard thanks, please update your jira task and epic to reflect this is done now.

hamistao pushed a commit to hamistao/lxd that referenced this pull request Jan 31, 2025
…with entitlements) (canonical#14748)

This is the second part of a group of three stacked PRs.

* First part: canonical#14745

Signed-off-by: hamistao <[email protected]>
tomponline added a commit that referenced this pull request Jan 31, 2025
This should fix the issues discussed here:
https://chat.canonical.com/canonical/pl/c3bjkis1g3nmbytao6q5gcaxuc

This also add entitlement enrichment for API entities that weren't added
as part as #14748
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Changes to the REST API Documentation Documentation needs updating
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants