{% extends "layouts/app.html" %} {% from "components/breadcrumb.html" import page_header %} {% from "components/button.html" import button %} {% block title %}Security Policies - NeoZen Admin{% endblock %} {% macro row(label, value) %}
{{ label }}
{{ value }}
{% endmacro %} {% macro yes_no(flag) %}{{ "Yes" if flag else "No" }}{% endmacro %} {% block page_header %} {% call page_header("Security Policies", subtitle="What the console applies to its own sign-ins. Read-only: set in code.", breadcrumbs=[{"label": "Security", "href": "security"}, {"label": "Policies"}]) %}
{{ button("Back to Dashboard", variant="secondary", href="security") }}
{% endcall %} {% endblock %} {% block content %}

These values cover the admin console only. Applications built on NeoZen set their own password policy, rate limits, lockout and sessions, which the console cannot see.

Admin password changes

{{ row("Length", password.min_length ~ " to " ~ password.max_length ~ " characters") }} {{ row("Uppercase letter required", yes_no(password.require_uppercase)) }} {{ row("Lowercase letter required", yes_no(password.require_lowercase)) }} {{ row("Digit required", yes_no(password.require_digit)) }} {{ row("Special character required", yes_no(password.require_special)) }} {{ row("Breached password check", "Done" if password.check_hibp else "Not done") }} {{ row("Password history", ("Last " ~ password.password_history_count ~ " passwords refused") if password.password_history_count else "Not checked") }} {{ row("Other sessions on change", "Signed out") }}

Sign-in throttling

{{ row("Failed attempts allowed", login_limits.max_attempts) }} {{ row("Counted over", login_limits.window) }} {{ row("Pause once over the limit", login_limits.lockout_duration) }} {% set counted_per = (["client address"] if login_limits.by_ip else []) + (["email"] if login_limits.by_subject else []) %} {{ row("Counted per", counted_per | join(" and ") or "Nothing: no limit applies") }} {{ row("Account lockout", "Not applied: only the pause above, the account is not locked") }}

Console sessions

{{ row("Lifetime", session_max_age) }} {{ row("Session ID renewed at sign-in", "Yes") }} {{ row("Cookie", config.cookie_name ~ " (HttpOnly" ~ (", Secure" if config.cookie_secure else ", not Secure") ~ ")") }} {{ row("CSRF cookie", "HttpOnly, SameSite=Strict") }} {{ row("Multi-factor authentication", "Not available for console sign-in") }}
{% endblock %}