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

Provide system for generating SSID and passphrase #8

Closed
m-roberts opened this issue Jun 18, 2021 · 2 comments · Fixed by #10
Closed

Provide system for generating SSID and passphrase #8

m-roberts opened this issue Jun 18, 2021 · 2 comments · Fixed by #10

Comments

@m-roberts
Copy link
Contributor

m-roberts commented Jun 18, 2021

SSID from RPi MAC address would produce the same hostname between OSes.
Passphrase being the same would likely also be useful - but it should at least be secure.

Potentially in the future, we may want to look into being able to configure this from before the OS even boots up. Recovery partition might be able to offer something useful in this area.

@m-roberts
Copy link
Contributor Author

Currently the SSID is the output of hostname.
We want passphrase to be deterministic but difficult to determine if off-device. This means that MAC address is not well-suited for this purpose.

Here is how we can use the Raspberry Pi's serial to generate the passphrase:

serial=$(grep "Serial" /proc/cpuinfo | awk '{print $3}')
cropped_serial=$(echo "${serial: -8}" | tr '[:lower:]' '[:upper:]')

@m-roberts
Copy link
Contributor Author

Given that it is likely that a Pi will not be on a network at the moment that it enters into AP mode, this means that it is possible for multiple pi-top devices in a localised environment to share the same SSID.

Rather than address this at the SSID level, it would be better to ensure that each machine has a unique hostname ID.

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

Successfully merging a pull request may close this issue.

1 participant