|
|
||
|---|---|---|
| contracts | ||
| docs | ||
| migrations/versions | ||
| plan | ||
| scripts | ||
| src/wifi_agent | ||
| systemd | ||
| tests | ||
| wifi_agent | ||
| .env.example | ||
| .env.test.example | ||
| .gitignore | ||
| Makefile | ||
| README.md | ||
| pyproject.toml | ||
README.md
wifi-agent
Bootstrap skeleton for a Linux Wi-Fi agent.
Bootstrap commands
python -m pytestpython -m wifi_agent.devtools.format_checkpython -m wifi_agent.devtools.lint_checkpython -m wifi_agent.devtools.typecheck
Verification suites
- Unit:
python -m pytest tests/unit - Contract:
python -m pytest tests/contract - Integration:
python -m pytest tests/integration - E2E smoke:
python -m pytest tests/e2e - CI aggregate:
sh scripts/test.shormake test-ci
Entrypoints
python -m wifi_agentpython -m wifi_agent.api.apppython -m wifi_agent.cli.main
Documentation
docs/cli.mddocs/architecture.mddocs/operations.mddocs/contracts.mddocs/metrics.mddocs/release_checklist.md
Security defaults
- Mutating API routes (
POST /cache/reset,POST /reload) are fail-closed by default until a mutation authorizer is configured explicitly. - Wi-Fi control remains disabled by default and only runs allowlisted commands against allowlisted interfaces.
- Webhook ingress enforces schema validation and bounded request/object sizes.
Filesystem permissions
- State directory:
0750owned bywifi-agent:wifi-agent - SQLite database:
0640owned bywifi-agent:wifi-agent - Contracts directory:
0750owned byroot:wifi-agent - Secrets directory:
0750owned byroot:wifi-agent wpa_supplicantctrl sockets: grant only the minimum group access needed for control features
Secret handling
- Keep shared secrets outside JSON contracts.
- Reference logical secret names from config or deployment metadata.
- Resolve secrets from environment or files under a dedicated secrets directory.