Hi,
we currently try to deploy several lxc containers that require a
basically everything is working as long as we are using the
due to security reasons we'd like to avoid using the root user for automated 'actions'.
so, right now we patch
in an older post (that i couldn't find anymore) i already read that this is actually a 'security feature' of proxmox
so, my actual question: are there plans to change this? maybe some configurable user/group that is allowed or can be granted for these currently 'root only' features?
or is there any other way to 'work around' this limitation?
as the hookscript is only required to add an
thanks for your great product and merry christmas
Sebastian
we currently try to deploy several lxc containers that require a
hookscript
via API (using salt-cloud).basically everything is working as long as we are using the
root@pam
user. due to security reasons we'd like to avoid using the root user for automated 'actions'.
so, right now we patch
/usr/share/perl5/PVE/LXC.pm
to also allow an additional 'technical user' to add a hookscript (and basically more...):
Code:
--- LXC.pm.orig 2021-12-02 11:10:47.522600770 +0100
+++ LXC.pm 2021-12-02 11:10:58.438891661 +0100
@@ -1212,7 +1212,7 @@
sub check_ct_modify_config_perm {
my ($rpcenv, $authuser, $vmid, $pool, $newconf, $delete) = @_;
- return 1 if $authuser eq 'root@pam';
+ return 1 if ($authuser eq 'root@pam' || $authuser eq 'someuser@pve');
my $storage_cfg = PVE::Storage::config();
my $check = sub {
in an older post (that i couldn't find anymore) i already read that this is actually a 'security feature' of proxmox
so, my actual question: are there plans to change this? maybe some configurable user/group that is allowed or can be granted for these currently 'root only' features?
or is there any other way to 'work around' this limitation?
as the hookscript is only required to add an
openssh-server
to the default rockylinux
image, alternatively the question could be: is there any other way (that i'm currently not aware of) to add additional packages to the image?thanks for your great product and merry christmas
Sebastian