Skip to content

Conversation

@lukaw3d
Copy link
Member

@lukaw3d lukaw3d commented Dec 23, 2025

Part of #367
Closes #370

Limitations:

  • grants permission on one machine
  • machine restarts after
Screenshot from 2025-12-23 02-45-59 Screenshot from 2025-12-23 02-46-07

@lukaw3d lukaw3d requested review from buberdds and lubej December 23, 2025 01:54
@github-actions
Copy link

github-actions bot commented Dec 23, 2025

Deployed to Cloudflare Pages

Latest commit: 183b44804e84ed901aefc3393ee0e76c85795a48
Status:✅ Deploy successful!
Preview URL: https://ebfa7f6b.rofl-app.pages.dev
Alias: https://pr-391.rofl-app.pages.dev

<DialogTrigger asChild>
<Button variant="outline" className="w-full md:w-auto" disabled={disabled}>
<FileText />
Grant logs permission
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit misleading, after I granted logs permissions, I am suddenly able to restart/top-up the machine on the granted account - I would not expect this to happen. I am also able to modify the secrets of the app, even though it fails - here it would be nice that UI would be hidden, for actions I can not complete.

And then recursively I am able to grant logs permissions, on the "log permissioned account", which means, that that account can add another account. But on that account I am only able to top up and restart the machine. And not able to actually see the logs.

Not sure what about this is expected or not.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure. Should discuss on slack

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe restart machine failed but frontend didn't check and alert you. I think topup foreign machine is always allowed. And maybe recursively granting failed, but you switched accounts but stayed on the URL, but View Logs button wouldn't appear (e.g. I can open Peter's https://dev.rofl.app/dashboard/machines/oasis1qzc8pldvm8vm3duvdrj63wgvkw34y9ucfcxzetqr/instances/000000000000006e and click things)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can confirm that it works as expected. I am pretty sure I was able to restart the machine, but unable to reproduce anymore. Anyway, looks ok now. UX would need some work - to disable all machine and app functionality you can't interact with.

@lukaw3d lukaw3d requested a review from lubej January 6, 2026 21:25
<GrantLogsPermissionDialog
disabled={isMachineRemoved(machine)}
onConfirm={async evmAddress => {
await grantLogsPermission.mutateAsync({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some kind of loader would be nice, so that you are aware that you need to confirm the tx. And subsequently that you can't trigger another grant logs dialog, until previous action is completed.

<DialogTrigger asChild>
<Button variant="outline" className="w-full md:w-auto" disabled={disabled}>
<FileText />
Grant logs permission
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can confirm that it works as expected. I am pretty sure I was able to restart the machine, but unable to reproduce anymore. Anyway, looks ok now. UX would need some work - to disable all machine and app functionality you can't interact with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants