5
0
mirror of git://git.proxmox.com/git/pve-network.git synced 2025-01-03 05:17:58 +03:00
Go to file
Thomas Lamprecht 0f48bc6561 ipam: move state file of PVE plugin over to common sdn directory
This does not contain data that needs to be protected to avoid
hijacking (external) systems, like our credentials for certain storage
types or encryption keys, so placing it in the strictly root-only
'priv/' folder was always a bit overkill.

Now we want to make the firewall more SDN aware and thus need also to
parse the SDN config there. This means having to also read the IPAM
statefile here, and as of now we would need to move over quite a few
API endpoints to be proxied to the privileged pvedaemon running as
root, as otherwise they would fail to read the full SDN config & state
required.

That is not a big problem, but it's also not really nice, we got the
privilege separation for a reason after all. Thus, move the backing
file for the PVE IPAM plugin state over to the general /etc/pve/sdn
path, where www-data (and thus pveproxy) can read it, but still not
write it. Fallback to the old location for backward compatibility.
This way the file will be automatically written to the new place on
the first change. This is not fool-proof, but there's only so much we
can do here to support a sane upgrade path, so fall back to a base
requirement of all cluster nodes using the same package versions.

FWIW, Stefan Hanreich tested a very similar diff I sent to him
off-list, but it was not close enough to add a T-b now.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-11-18 16:49:46 +01:00
debian bump version to 0.9.8 2024-04-23 19:39:58 +02:00
src ipam: move state file of PVE plugin over to common sdn directory 2024-11-18 16:49:46 +01:00
.gitignore gitignore: build artifacts from sbuild 2024-04-04 16:50:08 +02:00
Makefile buildsys: add explicit default target 2024-01-22 11:51:44 +01:00