dappnode / DAppNode

General repository of the project dappnode
GNU General Public License v3.0
581 stars 99 forks source link

Cannot remove a VPN that is not assigned to 'admin' priviledges #302

Open MrBahama1 opened 3 years ago

MrBahama1 commented 3 years ago

Within the VPN tab of my.dappnode, I have two VPNs. One of which is the admin and the other that is not (per the green slider). I try to remove the name that is not tagged to 'Admin" (by clicking the trashbin icon) and I receive the following error:

Error: Cannot remove the main admin user at /usr/src/app/src/calls/removeDevice.ts:14:11 at Generator.next () at fulfilled (/usr/src/app/src/calls/removeDevice.js:5:58) Error: Cannot remove the main admin user at Object. (/usr/src/app/webpack:/admin-ui/src/common/transport/jsonRpc/index.ts:91:19) at Generator.next () at /usr/src/app/index.js:123531:71 at new Promise () at __awaiter (/usr/src/app/index.js:123527:12) at Object.parseRpcResponse (/usr/src/app/index.js:123616:12) at /usr/src/app/webpack:/src/api/vpnApiClient.ts:69:10 at Generator.next () at fulfilled (/usr/src/app/index.js:102865:58) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:97:5)

{ "id": "dappnode_admin" }

It would be great if I could remove this other VPN that is not tagged to admin as this is a security issue

┆Issue is synchronized with this Basecamp todo by Unito

pablomendezroyo commented 3 years ago

Within the VPN tab of my.dappnode, I have two VPNs. One of which is the admin and the other that is not (per the green slider). I try to remove the name that is not tagged to 'Admin" (by clicking the trashbin icon) and I receive the following error:

Error: Cannot remove the main admin user at /usr/src/app/src/calls/removeDevice.ts:14:11 at Generator.next () at fulfilled (/usr/src/app/src/calls/removeDevice.js:5:58) Error: Cannot remove the main admin user at Object. (/usr/src/app/webpack:/admin-ui/src/common/transport/jsonRpc/index.ts:91:19) at Generator.next () at /usr/src/app/index.js:123531:71 at new Promise () at __awaiter (/usr/src/app/index.js:123527:12) at Object.parseRpcResponse (/usr/src/app/index.js:123616:12) at /usr/src/app/webpack:/src/api/vpnApiClient.ts:69:10 at Generator.next () at fulfilled (/usr/src/app/index.js:102865:58) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:97:5)

{ "id": "dappnode_admin" }

It would be great if I could remove this other VPN that is not tagged to admin as this is a security issue

Hi there!

Thank you for your suggestion, I think is not a security issue to have always an admin user because:

MrBahama1 commented 3 years ago

@pablomendezroyo Thanks for your help. I am not trying to delete the VPN that is tagged to "admin" (per the green toggle button). I am trying to delete the other VPN that is not assigned to admin. When I click the trash button for the non-admin I receive the above error. See below. How do you navigate to "stop"?

Screen Shot 2021-06-17 at 8 29 37 AM

MrBahama1 commented 2 years ago

@pablomendezroyo any update here?