-
Notifications
You must be signed in to change notification settings - Fork 19
Description
We had a private discussion on discord with @uniyalabhishek and one of our users
looks like they are not sure how was the admin changed. @matevz what’s the command for changing/updating admin your app on ROFL? can’t find in docs
...I am not sure how the admin got changed as i only had a single account.Can you please tell me:
- How do the admin change? Using which command? Isnt deploy the function which changes the admin?
Looking for the answer in order to be cautions in future and changing it back to the orignal for now- I am able to check machine logs but not able to update, if the admin is changed then how am i able to access the logs?
(for context: this issue is being reported by a dev that joined the project recently and claims is sharing the account with other dev who is currently not fully available)
If someone wants to transfer ownership of a ROFL, it currently needs to:
- change
deployments.<deployment_name>.adminin ROFL manifest to a new account - run
oasis rofl update --account old_account
Suggestions:
-
Let's simplify this operation by introducing
oasis rofl set-admin <new_account>that:- reads ROFL manifest and temporarily changes admin to the new account
- submits the rofl update tx signed by the old account
- if transaction is successful, write down the new account to ROFL manifest file
-
Also add alias
oasis rofl change-adminfor consistency withoasis rofl machine change-admin(and add alias there forset-admintoo). -
There was also uncertainty regarding ROFL machine admins. Add a small remark to the CLI docs that ROFL admin (owns ROFL, transfer ownership, upgrades, removal) has nothing to do with ROFL machine admin (can just execute ROFL).