-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Extended permissions for module accounts #4679
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4679 +/- ##
=========================================
+ Coverage 54.05% 54.16% +0.1%
=========================================
Files 271 271
Lines 17281 17341 +60
=========================================
+ Hits 9342 9392 +50
- Misses 7257 7266 +9
- Partials 682 683 +1 |
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.
Idk if we want to add the option to register new types of permissions cc: @alexanderbez ?
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.
Looks good @colin-axner -- I left some initial feedback ☕️
Probably for another PR @fedekunze -- we need to think further on what that model/logic looks like. |
…mos/cosmos-sdk into colin/4652-extend-supply-permissions
So I updated supply to have two validate permission functions. One does basic syntax validation (we could add stricter checks but rn just checks permission isn't an empty string), the other is in Keeper and checks that the permission is contained in the mapping of allowed permissions for that module account. Not sure if we want sorted permissions in Permissions can be added removed from a ModuleAccount but not from a In short, upon initialization of |
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.
ACK pending CI and merge conflict fixes 👍
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.
LGTM. Only minor changes suggested.
We will need to update Gaia and the migration PR once this is merged
Extended permissions to allow ModuleAccounts to take in multiple permissions
addresses #4652
Targeted PR against correct branch (see CONTRIBUTING.md)
Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
Wrote tests
Updated relevant documentation (
docs/
)Added a relevant changelog entry:
clog add [section] [stanza] [message]
rereviewed
Files changed
in the github PR explorerFor Admin Use: