-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
x/authz completeness audit #9037
Comments
Below an audit which covers all parts of the checklist except the API notesmethod_name vs message_nameIn Cosmos we talk about Messages, not methods. Also, in ADR we rather define Messages than Methods.
Moreover the
We have same confusion in Proposal:
SendAuthorization
GetGrantAuthorizationThe Proposal: rename Events
Keeper
Authorization.AcceptThe implementation of this method is not in accordance to the ADR. ADR specifies it as:
but the
Moreover, in the ADR we read:
but the Suggestion:
And error should not be returned on "unauthorized" - this will allow for example to delete a grant, if it should be deleted when the authorization is not valid / exhausted already. Directory structure
|
I don't actually agree with this. In protobuf To be completely honest my preference would be to move away from Also, IMHO in |
@aaronc, yes, agree, these terms are overloaded and
Also see the comment above that field in the OP. If we have too much confusions here, then let's find another, completely different name. This is neither a method name nor message name. It's a name / id of authorized RPC. How about:
I would call it
In documentation and code we user "Message" term a lot (eg: |
I believe there's no confusion in using |
One more thing confusing is
|
Simulations audit report is here: https://hackmd.io/s/BkMemp4B_ |
How about renaming AuthorizationGrant -> |
Based on #9063, let's:
|
Fees and spam attack analysis
|
@robert-zaremba, I can think of one reason not to do this which is that it complicates calling |
Summary of changes
Protobuf
Keeper:
Events: use proto events instead of legacy events |
Summary
Related to: #8982
API x/authz Readiness Audit
Goal: provide summary of finding and overall recommendations.
For Admin Use
The text was updated successfully, but these errors were encountered: