[Bug 1981646] Re: network v2: do not render world-readable netplan when wifi or auth config contains sensitive passwords
Alex Dehnert
1981646 at bugs.launchpad.net
Tue May 2 02:18:38 UTC 2023
Any chance of getting the cloud-init side of this fixed? It's disconcerting to find my wifi passwords world-readable, and according to the comment at the top of the file:
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot.
That suggests I can't just fix the permissions and leave it alone.
(OTOH, actually changing that file doesn't seem to have my changes, to
either permissions or content, overwritten.)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1981646
Title:
network v2: do not render world-readable netplan when wifi or auth
config contains sensitive passwords
Status in cloud-init:
Triaged
Status in netplan:
Triaged
Bug description:
https://netplan.io/reference/ supports wifi password and auto client-
key-password keys which should generally not be world-readable.
But, when rendering passthrough V2 network configuration, cloud-init emits a single /etc/netplan/50-cloud-init.yaml file that is world readable.
If network v2 config contains sensitive password keys it may make
sense for cloud-init to either:
1. Make /etc/netplan/50-cloud-init.yaml only root-readable
- OR -
2. Write a world-readable /etc/netplan/50-cloud-init.yaml containing all keys except wifis and auth and a root-readable /etc/netplan/50-cloud-init-sensitive.yaml which would contain any security sensitive config content.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1981646/+subscriptions
More information about the foundations-bugs
mailing list