{% extends "baseTemplate/index.html" %} {% load static %} {% comment %} ADMIN web terminal: a shell as an ARBITRARY local account (root included, if allowed), never a website's own system user -- see webTerminal/views.py's own section comment for how this differs from webTerminal/terminal.html. Three regions, all server-rendered from context so a client cannot skip a check by editing the DOM: 1. the settings panel (always shown to an administrator); 2. a 2FA-freshness prompt (only when the caller has 2FA and it has gone stale); 3. the account picker + terminal itself (only once the feature is enabled). {% endcomment %} {% block title %}Admin Terminal{% endblock %} {% block styles %} {% endblock %} {% block content %}

Admin Terminal

A shell as any local account with a real login shell — never stored, never a website's own system user. sshd's own policy has the final say.

{# -------------------------------------------------- (1) settings panel #}
Settings

Re-enter your panel password to confirm this change.

{% if not enabled %}
The admin terminal is turned off. Turn it on above to open a session.
{% else %} {# -------------------------------------------------- (2) 2FA freshness #}
Verify it's you

Your two-factor proof for the admin terminal has expired (or was never given this session). Enter a fresh code to continue.

{# -------------------------------------------------- (3) terminal #}

Credentials are sent once, over this encrypted connection, straight to sshd on this server, and are never written to disk or to a log.

Connecting…


    
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}