Keep step-up elevation for the signed-in session and stop gating terminals

The proxy forwards an HMAC-derived session id (X-Pipelines-Session) on
/connect and POST /files; the server trusts it only on token-authenticated
requests and keys elevation by it, so reconnects stay elevated up to a 24 h
cap. Terminals rely on their su -l login. The app no longer forgets the
elevation on disconnect and asks again only on a fresh refusal.
This commit is contained in:
2026-11-10 03:00:45 +00:00
parent 60b4c495f1
commit 1ad85de1f1
19 changed files with 876 additions and 165 deletions
-2
View File
@@ -37,7 +37,6 @@ class AppSession extends ChangeNotifier {
_elevation = MachineElevation(
name: endpoint?.host.isNotEmpty == true ? endpoint!.host : 'this server',
gateway: _client,
states: _client.states,
);
_gateway = ElevatingGateway(_client, _elevation);
}
@@ -192,7 +191,6 @@ class AppSession extends ChangeNotifier {
_disposed = true;
_sendUnsubscribe();
unawaited(_states.cancel());
unawaited(_elevation.dispose());
unawaited(_frames.cancel());
unawaited(_client.dispose());
super.dispose();