require full_admin scope for terminal tickets and auth disable

This commit is contained in:
MacRimi
2026-09-09 17:19:48 +02:00
parent 023350d7e1
commit 715f4195b2
2 changed files with 10 additions and 8 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ import json
import tempfile
import base64
from jwt_middleware import require_auth
from jwt_middleware import require_admin_scope
# Allowed shape for interaction_id used as a file path component when writing
# the response file. Bounded length, no separators, no path traversal. See
@@ -141,7 +141,7 @@ def terminal_health():
@terminal_bp.route('/api/terminal/ticket', methods=['POST'])
@require_auth
@require_admin_scope
def issue_terminal_ticket_route():
"""Issue a single-use, short-lived ticket for opening a terminal WebSocket.