Default repeater guest login off and expose guest sessions

This commit is contained in:
mikecarper committed 2026-10-21 11:11:07 -07:00
1 parent a587a391a5
commit c433b40e51
26 files changed
+1529 -5

No files matched your search

+61
View File
@@ -2384,6 +2384,41 @@ replace radio ACL permissions.
---
#### Enable or disable repeater guest logins
**Availability:** Repeater firmware. Local administrative consoles and authenticated
remote admins can use these commands.
```text
get guest
set guest on
set guest off
```
**Default:** `off`, including when upgrading from firmware without this setting.
The choice is saved and takes effect without a reboot. `set guest off` also
removes existing guest sessions immediately. Turning it back on requires guests
to log in again; admin and assigned ACL access are unaffected.
When enabled, guests must supply the configured `guest.password`. Its default is
blank, so enabling guests without setting a password permits passwordless guest
access. A guest can read repeater status and basic telemetry but cannot run
administrative commands. This setting does not disable ordinary packet forwarding
or public discovery queries.
For example:
```text
set guest.password a-private-code
set guest on
get guests
set guest off
```
Room-server login settings are unchanged.
---
#### View or change this node's guest password
**Usage:**
- `get guest.password`
@@ -2396,6 +2431,10 @@ replace radio ACL permissions.
**Default:** `<blank>`
Repeater guest logins must also be enabled with `set guest on`. Changing this
password takes effect immediately; use `set guest off` to remove existing guest
sessions. Setting the password to `off` makes it the literal password `off`.
---
#### View or change this node's owner info
@@ -4279,6 +4318,28 @@ secrets, and does not change the ACL.
---
#### View repeater guest sessions
**Usage:**
- `get guests` - first page
- `get guests <page>` - a numbered page, starting at 1
Available on repeaters through local administrative consoles or an authenticated
remote admin session. Delegated region/filter managers and guest clients cannot
read this list.
Each page starts with `Guests <page>/<pages> (<total>)` and shows one guest's full
public key followed by `last=<UTC epoch seconds>`. An empty list returns
`Guests: empty`. A `last=0` value can occur before the node's clock is set.
These are live RAM entries, separate from the persistent ACL shown by `get acl`.
They indicate an accepted session, not whether the guest is currently online.
Entries can move between pages as clients change. A reboot or `set guest off`
clears them.
---
#### Recover a repeater's future-dated replay timestamp
This is an explicit recovery operation after correcting a bad clock, not a
+6
View File
@@ -303,6 +303,8 @@ Reboot or changing enrollment discards the partial transfers.
| UTC clock | `clock`, `clock sync`, `time <epoch-seconds>` |
| Profile diagnostics | `get radio2.status`, `get radio2.timing` |
| Crossover | `get radio2.cross`, `set radio2.cross <auto|on|off>` |
| Repeater guest login | `get guest`, `set guest on|off` |
| Repeater guest sessions | `get guests [page]` |
| Filter rules | `get/set/del flood.filter[.n]`, `flood.rule[.n]` |
| Path blacklist | `get/set/del flood.filter.blacklist[.n]` |
| Channel moderation | `get/set/del flood.moderation[.n]` |
@@ -314,6 +316,10 @@ Each role still checks whether it supports the requested setting. Immediate
primary radio changes, identity export, passwords, ACL edits, filesystem operations, firmware
installation, reboot, and unrestricted CLI are outside fleet capability.
Repeater guest login defaults to off. `set guest off` saves that choice and
clears existing guest sessions immediately. Enabling it uses the existing
guest password; this switch does not change any password or assigned ACL role.
`set radio2 mediamesh` saves 911.150 MHz, 250 kHz, SF7, CR 4/5, `rxtx`,
with automatic scan-aware preamble. `mediamesh-range` uses 125 kHz instead.
These presets preserve the primary profile and crossing policy; new
+14
View File
@@ -108,6 +108,7 @@ the corresponding feature:
| `get wifi.pwd` | Stored WiFi password on WiFi builds |
| `get mqttN.password`, `get mqttN.token` | Stored credentials for MQTT slot N |
| `get acl`, `log` | Infrastructure ACL or captured packet log; these stores do not exist on Companion |
| `get guest`, `set guest on`, `set guest off`, `get guests [page]` | Repeater guest-login control and current guest sessions |
The command text is the same for direct connections. A binary Companion app
can send `0x42` (`CMD_RUN_CLI_COMMAND`) followed by the ASCII command, without
@@ -635,6 +636,19 @@ cmd ver
cmd get radio
```
Repeater guest logins default to off. An admin can use `cmd set guest on` to
enable them or `cmd set guest off` to disable them and remove current guest
sessions immediately. These settings are saved and need no reboot. When enabled,
the configured `guest.password` applies; its blank default permits passwordless
guest access. Admin and assigned ACL access are unaffected. Room-server login
settings are unchanged.
Use `cmd get guests` or `cmd get guests 2` from an admin session to inspect the
repeater's guest entries. Each page shows one full public key and its last
activity time in UTC epoch seconds. Guests are held in RAM, so this is a list of
accepted sessions rather than proof that a device is currently reachable. They
are cleared by a reboot or `set guest off` and remain separate from `get acl`.
The exact commands and permissions depend on the target firmware. `cmd` does
not run a command on the local Companion; it sends the text over LoRa to the
selected node.