I know what's going on.
this (https://github.com/canonical/cloud-init/pull/1971) patch is valid when ssh_keys is configured.
https://github.com/canonical/cloud-init/blob/main/cloudinit/config/cc_ssh.py#L212
the condition is met, the patch takes effect. However, in my scenario, the else branch is entered, and there is no permission control here.
I know what's going on.
this (https:/ /github. com/canonical/ cloud-init/ pull/1971) patch is valid when ssh_keys is configured.
https:/ /github. com/canonical/ cloud-init/ blob/main/ cloudinit/ config/ cc_ssh. py#L212
the condition is met, the patch takes effect. However, in my scenario, the else branch is entered, and there is no permission control here.