Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os configure wraps psk value for wifi system-connection with quotes #2792

Open
kb2ma opened this issue Jul 6, 2024 · 0 comments
Open

os configure wraps psk value for wifi system-connection with quotes #2792

kb2ma opened this issue Jul 6, 2024 · 0 comments

Comments

@kb2ma
Copy link
Contributor

kb2ma commented Jul 6, 2024

Expected Behavior

For the os configure command, a generated WiFi based system connection file must never wrap the value for psk within quotation marks.

Actual Behavior

If a config.json is passed containing a wifiKey like below

  "wifiKey": "1i;FG]w{2=luuSB+eMI4dm=eK134q7C7P@d6sa4W^6vaMdf}V6C>hK8xC#hS"

the generated system-connection file includes a psk value wrapped in quotes like below. I do not know which character or characters in this string triggers the command to enclose the psk value in quotes.

[wifi-security]
auth-alg=open
key-mgmt=wpa-psk
psk="1i;FG]w{2=luuSB+eMI4dm=eK134q7C7P@d6sa4W^6vaMdf}V6C>hK8xC#hS"

A short review of the source code indicates the problem likely is in the reconfix module.

Temporary workaround

Enter the wifiKey value as a 64-byte hex string. See this calculator from Wireshark.

Specifications

  • balena CLI version: 18.0.0
  • Operating system version: Ubuntu 22.04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant