{% extends "base.html" %} {% load tz %} {% block title %}Admin • {{ server.display_name }} • Keywarden{% endblock %} {% block content %}
{% include "servers/_header.html" %}

Server admin utilities

Server-scoped administration and maintenance actions.

Agent enrolled
{% if server.agent_enrolled_at %}Yes{% else %}No{% endif %}
Enrollment timestamp
{{ server.agent_enrolled_at|utc|date:"M j, Y H:i:s"|default:"—" }}{% if server.agent_enrolled_at %} UTC{% endif %}
Last heartbeat
{{ server.last_heartbeat_at|utc|date:"M j, Y H:i:s"|default:"—" }}{% if server.last_heartbeat_at %} UTC{% endif %}

Pending access requests

Approve or deny pending requests for this server.

{{ pending_access_requests|length }} pending
{% if pending_access_requests %}
{% for req in pending_access_requests %} {% endfor %}
Requester Requested scopes Requested at Action
{{ req.requester.username }}
{% if req.request_shell %}Shell{% endif %} {% if req.request_logs %}Logs{% endif %} {% if req.request_users %}Users{% endif %} {% if req.requested_duration_hours %}{{ req.requested_duration_hours }}h{% endif %} {% if req.requested_server_username %}@{{ req.requested_server_username }}{% endif %}
{{ req.requested_at|date:"M j, Y H:i" }}
{% csrf_token %}
{% csrf_token %}
{% else %}

No pending requests for this server.

{% endif %}

Users with access

Effective access from approved requests and object permissions.

{% if users_with_access %}
{% for entry in users_with_access %} {% endfor %}
User Scopes Source Requests Expires
{{ entry.user.username }}
{{ entry.user.email|default:"—" }}
{% if entry.can_shell %}Shell{% endif %} {% if entry.can_logs %}Logs{% endif %} {% if entry.can_users %}Users{% endif %}
{% for label in entry.source_labels %} {{ label }} {% endfor %} {{ entry.request_count }} {% if entry.expires_at %} {{ entry.expires_at|date:"M j, Y H:i" }} {% else %} No expiry {% endif %}
{% else %}

No users currently have access on this server.

{% endif %}

Server accounts

Accounts currently tracked by agent synchronization.

{% if server_accounts %}
{% for account in server_accounts %} {% endfor %}
System username User Present Last synced
{{ account.system_username }} {{ account.user.username }} {% if account.is_present %} Present {% else %} Missing {% endif %} {{ account.last_synced_at|utc|date:"M j, Y H:i:s" }} UTC
{% else %}

No synchronized server accounts yet.

{% endif %}
{% endblock %}