question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Users can not update VM config

See original GitHub issue

Description When a regular user tries to update the VM’s config (for example, a context var), it gets the following error:

one.vm.updateconf result FAILURE [one.vm.updateconf] User [2] : Template includes a restricted attribute DISK.

The specific setting from oned.conf creating the issue is:

VM_RESTRICTED_ATTR = "DISK/ORIGINAL_SIZE"

The weird part is that this setting exists also in older versions (for example, 5.10.5), but this issue is non existent on that version.

To Reproduce Create a user (not belonging to oneadmin group), allow this user to use a specific vm (use permission, change owner, whatever). Try to update the VM’s context.

Details

  • Affected components: core
  • Version: 5.12.3

Additional context Add any other context about the problem here.

Progress Status

  • Branch created
  • Code committed to development branch
  • Testing - QA
  • Documentation
  • Release notes - resolved issues, compatibility, known issues
  • Code committed to upstream release/hotfix branches
  • Documentation committed to upstream release/hotfix branches

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
dfelschcommented, Dec 3, 2020

I also just stumbled upon this. Is there any workaround? Removing DISK/ORIGINAL_SIZE from the VM_RESTRICTED_ATTR list does not seem to be a good idea as this value directly ends in shell scripts and would possibly allow RCE, correct?

0reactions
tinovacommented, Jun 10, 2021

fixed in ba9983bd7dab47267ed77731fcd0d7ecdb1e9c04 and 7814dc597a3d16cb8274c5d4a5992cf2f7a9eac8

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to edit the settings of a virtual machine that is a ...
You cannot edit the settings of a virtual machine that is a member of a datastore cluster. Your user account does not have...
Read more >
Troubleshoot Azure Automation Update Management issues
This article tells how to troubleshoot and resolve issues with Azure Automation Update Management.
Read more >
Automatically apply VM configuration updates in a MIG
This document describes how to automatically apply configuration updates to the virtual machine (VM) instances in a managed instance group (MIG).
Read more >
5 Known Issues - Oracle Help Center
Setup Scripts for Active Domain Restrict Users to Verify for Root AD Forest and ... In this scenario, virtual machines did not migrate...
Read more >
User Management - Proxmox VE
This user cannot be deleted, but attributes can still be changed. ... Options: modify any other VM configuration. VM.Config.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found