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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user