Skip to content

oasis rofl set-admin #644

@matevz

Description

@matevz

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:

  1. 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
  2. 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:

  1. change deployments.<deployment_name>.admin in ROFL manifest to a new account
  2. run oasis rofl update --account old_account

Suggestions:

  • Let's simplify this operation by introducing oasis rofl set-admin <new_account> that:

    1. reads ROFL manifest and temporarily changes admin to the new account
    2. submits the rofl update tx signed by the old account
    3. if transaction is successful, write down the new account to ROFL manifest file
  • Also add alias oasis rofl change-admin for consistency with oasis rofl machine change-admin (and add alias there for set-admin too).

  • 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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    roflROFL related CLI issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions