{% extends "admin/base_site.html" %} {% load i18n tz %} {% block extrastyle %}{{ block.super }} {% include "admin/encryption_suite/_admin_styles.html" %} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %}
{% get_current_timezone as current_timezone %}

{{ inventory.generated_at|date:"DATETIME_FORMAT" }} ({{ current_timezone }})

{% trans "Key management system (KMS)" %}

{% for row in kms_rows %} {% if row.entry.configured %} {% else %} {% endif %} {% endfor %}
{% trans "Key store" %} {% trans "KMS Adapter" %} {% trans "KEK strategy" %} {% trans "Key encryption keys" %} {% trans "Data encryption keys" %} {% trans "Oldest active KEK" %}
{{ row.entry.key_store }}{{ row.adapter_parts.0 }}{{ row.adapter_parts.1 }} {% if row.entry.kek_strategy %}{{ row.kek_strategy_parts.0 }}{{ row.kek_strategy_parts.1 }}{% else %}—{% endif %}{% trans "Not configured" %}{% if row.kek_url %}{{ row.entry.key_encryption_key_count }}{% else %}{{ row.entry.key_encryption_key_count }}{% endif %} {% if row.dek_url %}{{ row.entry.data_encryption_key_count }}{% else %}{{ row.entry.data_encryption_key_count }}{% endif %} {{ row.entry.oldest_active_kek_at|date:"DATETIME_FORMAT"|default:"—" }}

{% trans "Key encryption keys" %}

{% for row in kek_rows %} {% empty %} {% endfor %}
{% trans "Key store" %} {% trans "Status" %} {% trans "Count" %}
{{ row.group.key_store }} {{ row.group.status }} {% if row.url %}{{ row.group.count }}{% else %}{{ row.group.count }}{% endif %}
—

{% trans "Configured for new key encryption keys" %}

{% for row in key_store_rows %} {% empty %} {% endfor %}
{% trans "Key set" %} {% trans "Key store" %} {% trans "Silo adapter" %}
{{ row.choice.key_set }} {% if row.choice.key_store %}{{ row.choice.key_store }}{% else %}—{% endif %} {% if row.choice.silo_adapter %}{{ row.adapter_parts.0 }}{{ row.adapter_parts.1 }}{% else %}—{% endif %}
—

{% trans "Data encryption keys" %}

{% if inventory.rotation_period_days is not None %} {% endif %} {% for row in data_key_rows %} {% if inventory.rotation_period_days is not None %} {% endif %} {% empty %} {% endfor %}
{% trans "Key set" %} {% trans "Purpose" %} {% trans "Cryptographic engine" %} {% trans "Algorithm" %} {% trans "Key store" %} {% trans "Count" %} {% trans "Oldest key material" %}{% blocktrans trimmed with days=inventory.rotation_period_days %}Older than {{ days }} days{% endblocktrans %}
{{ row.group.key_set }}{% if not row.group.in_settings %} {% trans "(no settings entry)" %}{% endif %} {{ row.group.purpose }} {{ row.group.cryptographic_engine|default:"—" }} {{ row.group.algorithm|default:"—" }} {{ row.group.key_store }} {% if row.url %}{{ row.group.count }}{% else %}{{ row.group.count }}{% endif %} {{ row.group.oldest_key_material_at|date:"DATETIME_FORMAT"|default:"—" }}{{ row.group.older_than_rotation_period }}
—

{% trans "Configured for new data encryption keys" %}

{% for label in engine_headers %}{% endfor %} {% for row in engine_rows %} {% for value in row.extras %}{% endfor %} {% endfor %}
{% trans "Purpose" %} {% trans "Cryptographic engine" %} {% trans "Algorithm" %}{{ label }}
{% if row.purpose %}{{ row.purpose }}{% else %}—{% endif %} {% if row.engine %}{{ row.engine }}{% else %}—{% endif %} {% if row.algorithm %}{{ row.algorithm }}{% else %}—{% endif %}{% if value %}{{ value }}{% else %}—{% endif %}
{% endblock %}