Skip to content

V5.0 feat/transport connectivity check - #265

Merged
dkmstr merged 4 commits into
v5.0from
v5.0-feat/transport-connectivity-check
Nov 30, 2026
Merged

dkmstr merged 4 commits into
v5.0from
v5.0-feat/transport-connectivity-check

Conversation

@dkmstr

@dkmstr dkmstr commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Transports can turn off the pre-connection reachability check with the
allow_ip_check switch. With the switch off, UDS skips the reachability test
that the transport would otherwise run, and the pre-connect may not reach
the machine.

Add an automatic check in the SECURITY category, severity MEDIUM, that
lists the transports with the switch disabled. A transport whose stored
setting raises an error when read is listed too, so one such row does not
hide the others; the result is INFO when only such transports are found.

Relabel the switch and describe its consequence in the tooltip. The stored
name and the default value stay the same, so no migration is needed.
Transports that do not expose the switch are not reported.
…ding

allow_ip_check is a class attribute of every transport, so the check reads
it directly instead of going through getattr over a single-element tuple.

The switch label drops the snake_case token, and the tooltip and check
message now state the actual consequence of disabling it: UDS does not wait
for the machine to be reachable before handing out the connection, so the
pre-connect may fail.
The transport switch allow_ip_check is renamed to degraded_mode and inverted.
It defaults to False. Enabling it on a transport skips the reachability probe
and the pre-connect of the ready path (actor comms and the service hook), so
the connection is handed out without waiting for the user service machines.
It is meant for incidents where the broker cannot reach those machines.
Each skipped pre-connect is logged on the user service.

Values stored under the old name are not read, so no data migration is needed:
transports keep the reachability check unless degraded mode is enabled again.

On RDP the pre-connect is what adds the user to the Remote Desktop Users group.
While degraded mode is on, users who are neither administrators nor already
members of that group cannot log in.

The transport connectivity check now lists the transports in degraded mode.
is_degraded_mode returns a real bool when a transport sets a plain value.
The degraded mode test now also checks that the reachability cache is not read,
and two connectivity check tests use the degraded mode wording.
@dkmstr
dkmstr merged commit c1a86ab into v5.0 Nov 30, 2026
2 checks passed
@aschumann-virtualcable
aschumann-virtualcable deleted the v5.0-feat/transport-connectivity-check branch November 30, 2026 17:37
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 this pull request may close these issues.

3 participants