feat: add protected headless provisioning workflow#178
Conversation
|
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| - | - | Generic Password | c43e2a0 | connectivity_manager.py | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Summary
This PR adds a protected headless provisioning workflow for Bjorn.
When Bjorn cannot join Wi-Fi, it can now expose a temporary setup path for phone-based recovery instead of requiring SSH or direct file edits. The primary recovery path is a fallback setup AP with a small setup page. A secondary Bluetooth PAN path is also exposed for Android phones, but the AP remains the preferred offline-management path.
What Changed
bjorn-connectivity.serviceto manage connectivity statebjorn-setupaccess point for offline provisioning/setup.htmlonboarding page and a matching setup scriptnmcli/ NetworkManager-based handlingWhy
Today, Bjorn is difficult to recover when it is headless and offline:
This PR adds a practical recovery path for new installs and field use without changing the default operating model when Bjorn is already on normal Wi-Fi.
Scope
Primary path:
192.168.4.1Secondary path:
172.22.0.1Testing
Tested manually on Raspberry Pi Zero / Raspberry Pi OS with NetworkManager and BlueZ:
bjorn-connectivity.servicelifecycle172.22.0.1:8000Notes