netplan generate incorrectly quotes WPA PSK hex
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netplan |
Fix Released
|
Undecided
|
Łukasz Zemczak |
Bug Description
This was discovered on an Ubuntu Core 18 running arm64 machine.
Please note that `wpa_supplicant` accepts (optionally) quoted plaintext strings as well as hex strings as field values for `psk=`. However, hex strings specifically are invalid unless they are un-quoted
Suppose the target `wpa_supplicant` compatible configuration is as follows:
```
network={
ssid=
psk=<
}
```
Then providing a `netplan` YAML configuration as follows, should result in the above:
```
network:
ethernets:
eth0:
addresses: []
dhcp4: true
version: 2
wifis:
wlan0:
access-
auth:
addresses: []
dhcp4: true
nameservers: {}
```
However, the actual resulting `wpa_supplicant` configuration by `netplan generate` is the following:
```
ctrl_interface=
network={
ssid=
key_mgmt=WPA-PSK
psk="
}
```
description: | updated |
description: | updated |
Changed in netplan: | |
status: | In Progress → Fix Committed |
tags: | added: id-5e72d802f424721a8c367b4d |
There is a Pull Request available that addresses this issue, here: /github. com/CanonicalLt d/netplan/ pull/118
https:/