Require step-up password confirmation for shells, terminals and file changes
A new elevate request verifies the web sign-in password (scrypt hash, read-only, rate-limited, constant time) and elevates that connection for 15 minutes. chat_shell_run/input, rename/move/delete, terminal_open/input and POST /files (via a per-connection upload token) are refused with code elevation_required until then.
This commit is contained in:
@@ -302,6 +302,12 @@ type Message struct {
|
||||
MovePath *MovePathRequest `json:"move_path,omitempty"`
|
||||
DeletePath *DeletePathRequest `json:"delete_path,omitempty"`
|
||||
PathMutated *PathMutatedResult `json:"path_mutated,omitempty"`
|
||||
// Step-up re-authentication (see elevation.go): Code types an error,
|
||||
// Password is the elevate body (never logged or echoed) and Elevation the
|
||||
// elevated reply.
|
||||
Code string `json:"code,omitempty"`
|
||||
Password string `json:"password,omitempty"`
|
||||
Elevation *Elevation `json:"elevation,omitempty"`
|
||||
// ChatAttachmentImageRequest is the chat_attachment_image body and
|
||||
// ChatAttachmentImage its reply.
|
||||
ChatAttachmentImageRequest *ChatAttachmentImageRequest `json:"chat_attachment_image_request,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user