-
Notifications
You must be signed in to change notification settings - Fork 79
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
Permissions are inaccurate #297
Comments
Short-term solution:#289 and #288 proposes we don't set permissions, possibly check the roles and throw when the app does not have any roles. This would be the safest and easiest, but not the nicest. This is already possible with the
This assumes you deployed the counter app previously:
The only problem with this is that you don't know the new instance address to set permissions.
Assuming you know the instance address, you can proceed:
Now the app shows in the dapp, with the main account I think the only improvement we can make here is finding the instance address easier. |
Long-term solution:Installing the app and setting the "correct" permissions: Current situation:
#287 proposes that we install apps with "open" permissions and no manager.
Even though this is very nice for developing, using this in production I suppose is undesirable as anyone has a short window of using the app in a malicious way. (is this why you preferred #289 @bingen ?) Suggestion:
E.g.: If you install the counter-app with entity X:
This is nice because if the app is installed by the Voting app, then increments/decrements would go through voting. This could be a bit more complicated to implement, or as easy as I would propose we merge #287 since it's an improvement and better than having the manager unchangeable. But this keep issue open ? 🤷♂️ |
If it's possible to retrieve the instance address from the CLI as a minor (and quick improvement), the fact that it is two separate steps is not a huge deal as it adds negligible complexity when scripting (or providing a user with a sequence of commands to run).
Since #287 could be merged now and would unblock the permissions issue (without needing to workaround the issue using etherscan), I agree we may as well merge. Optimizing the dev experience is more important than optimizing the main-net deployment experience, imo. Until there is a better solution, the best practice for a main-net deployment would be to use
Agree that this would be ideal! |
Wondering if we should use a safe default (
If you're scripting for development, you could simply use |
@sohkai awesome idea! One question though: are the role parameters something to be concerned about?
Are these set when creating permissions? |
Eventually, but right now I wouldn't worry about supporting them in a first go. The "interactive" mode (and maybe "installer") could both be extended to also ask for any parameter-based limitations for the permissions it assigns (see parameter docs). |
from @lkngtn:
After installing an app from the CLI the application’s permissions indicate both the applications Roles as having Any Entity set as their Allowed Entities and their Manager.
This is confusing (and inaccurate) as any entity cannot manage the role, and any entity cannot perform the action.
This will be fixed by #287 , #288 or #289
The text was updated successfully, but these errors were encountered: