-
Notifications
You must be signed in to change notification settings - Fork 31
Add initial ACL support to consul-rs #58
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
base: main
Are you sure you want to change the base?
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
There is so much redundancy that can be solved by defining base structs with common fields then flattening( |
Hey @kushudai, Can you trigger the workflow once for this? |
Hello, I cannot unfortunately, you will need to resolve conflicts first 😅 EDIT: I went ahead and did that, hope you don't mind! |
Thanks, i saw what caused the ci failure. |
- Add ACLToken, ACLTokenPolicyLink and CreateACLTokenRequest types with proper serde derives - Implement list_acl_tokens() function with Consul API integration - Create example usage in examples/get_acl_tokens.rs
Updated workflows to build and test with feature flags. Updated the CI/CD workflow consul config file. Moved ACL-related types into a new acl_types.rs to make them easier to feature-gate.
9d039ae
to
cfe8e51
Compare
Hey @kushudai, I think this is ready for review now, let me know if you have any suggestions. |
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.
Hi @x0rw Apologies, I am on vacation for the next few weeks so I'm unable to find time to thoroughly review this but I took a cursory look.
I don't quite see the point of the acl feature. Any reason we'd want to gate this behind a feature?
Also, an output from cargo public api for such a large change would be appreciated!
At some point, I should just have github actions leave that output as a comment on all PRs
Alright, I will review the comments. Co-authored-by: Kushagra Udai <112903599+kushudai@users.noreply.github.com>
Hi @kushudai, Thank you for taking the time to look at this. The reason I added the acl behind a feature flag is to keep it opt-in for users who don't need ACL management, but if you think ACL is core enough to be enabled by default or not gated at all, I'm happy to remove the flag and integrate it directly. Enjoy the rest of your vacation. |
Hey 👋.
This PR Adds
Initial ACL support with:
(Future PRs will expand this with full token/policy/role management!)
Minor changes:
Use case:
Checks
Please check these off before promoting the pull request to non-draft status.