{% extends 'ui/panels/_base.html' %} {% load i18n %} {% block panel_content %} {% with s=scope.summary %}

{% blocktrans %}What this assessment is about, read from the model as it is now. Rows marked new appeared after the assessment date: check whether the assessment still holds.{% endblocktrans %}

{% if scope.kind == 'zone' %} {% blocktrans count n=s.assets %}{{ n }} asset{% plural %}{{ n }} assets{% endblocktrans %} {% if s.end_of_support %}{% blocktrans count n=s.end_of_support %}{{ n }} past end of support{% plural %}{{ n }} past end of support{% endblocktrans %}{% endif %} {% blocktrans count n=s.flows %}{{ n }} way in{% plural %}{{ n }} ways in{% endblocktrans %} {% else %} {% blocktrans count n=s.flows %}{{ n }} flow carried{% plural %}{{ n }} flows carried{% endblocktrans %} {% endif %} {% if s.remote %}{% blocktrans count n=s.remote %}{{ n }} remote access{% plural %}{{ n }} remote access{% endblocktrans %}{% endif %} {% if s.changes %}{% blocktrans count n=s.changes %}{{ n }} with write, control or program access{% plural %}{{ n }} with write, control or program access{% endblocktrans %}{% endif %} {% if s.outside %}{% blocktrans count n=s.outside %}{{ n }} from outside{% plural %}{{ n }} from outside{% endblocktrans %}{% endif %} {% if s.undecided %}{% blocktrans count n=s.undecided %}{{ n }} not decided{% plural %}{{ n }} not decided{% endblocktrans %}{% endif %} {% if s.error %}{% blocktrans count n=s.error %}{{ n }} error{% plural %}{{ n }} errors{% endblocktrans %}{% endif %} {% if s.warning %}{% blocktrans count n=s.warning %}{{ n }} warning{% plural %}{{ n }} warnings{% endblocktrans %}{% endif %} {% if s.new %}{% blocktrans count n=s.new %}{{ n }} new since this assessment{% plural %}{{ n }} new since this assessment{% endblocktrans %}{% endif %}
{% if scope.sl_target or scope.sl_achieved or scope.capability %} SL-T {{ scope.sl_target|default:"—" }} · SL-A {{ scope.sl_achieved|default:"—" }} {% if scope.sl_gap %}· {% trans "gap in" %} {{ scope.sl_gap|join:", " }}{% endif %} {% if scope.kind == 'zone' %} · {% trans "lowest SL-C of its devices" %} {{ scope.capability|default:"—" }} {% if scope.capability_gap %}({% trans "below SL-T in" %} {{ scope.capability_gap|join:", " }}){% endif %} {% endif %} {% else %} {% if scope.kind == 'zone' %}{% trans "No security levels yet: the zone has no SL-T or SL-A, and its devices no SL-C." %}{% else %}{% trans "No security levels yet: the conduit has no SL-T or SL-A." %}{% endif %} {% endif %}
{% endwith %} {% if scope.kind == 'conduit' %}
{% trans "Joins" %}: {% for zone in scope.zones %}{{ zone|linkify }}{% if zone.purdue_level %} {% badge zone.purdue_level bg_color=zone.get_purdue_level_color %}{% endif %}{% if not forloop.last %}, {% endif %}{% empty %}{{ ''|placeholder }}{% endfor %}
{% trans "Enforced by" %}: {% for e in scope.enforcing %}{{ e|linkify }}{% if not forloop.last %}, {% endif %}{% empty %}{% trans "nothing documented" %}{% endfor %}
{% endif %}

{% if scope.kind == 'zone' %}{% trans "Ways in" %}{% else %}{% trans "Flows through this conduit" %}{% endif %}

{% if scope.flow_rows %}
{% if scope.kind == 'conduit' %}{% endif %} {% if scope.kind == 'zone' %}{% endif %} {% for row in scope.flow_rows %} {% with f=row.flow %} {% if scope.kind == 'conduit' %}{% endif %} {% if scope.kind == 'zone' %}{% endif %} {% endwith %} {% endfor %}
{% trans "Flow" %} {% trans "From" %}{% trans "To" %}{% trans "Service" %} {% trans "Access" %} {% trans "Why it matters" %} {% trans "Allowed" %} {% trans "Expires" %}{% trans "Conduit" %}
{{ f|linkify }}{% if row.new %} {% trans "new" %}{% endif %} {{ f.source_zone|linkify }}{{ f.destination_zone|linkify }}{{ f.get_protocol_display }} {{ f.ports_short }} {% for value, label, color in f.get_access_display %}{% badge label bg_color=color %} {% empty %}{{ ''|placeholder }}{% endfor %} {% if f.remote_access %}{% trans "remote access" %}{% endif %} {% if row.outside %}{% trans "from outside" %}{% endif %} {% if row.changes and row.into_control %}{% trans "changes the controllers" %}{% endif %} {% badge f.get_allowed_display bg_color=f.get_allowed_color %} {% if f.expires %}{{ f.expires|date:"Y-m-d" }}{% elif f.remote_access and f.allowed == 'yes' %}{% trans "none" %}{% else %}{{ ''|placeholder }}{% endif %}{{ f.conduit|linkify|placeholder }}
{% else %}
{% trans "No flows recorded." %}
{% endif %}
{% if scope.flows_more %}{% blocktrans with n=scope.flows_more %}All flows ({{ n }} more){% endblocktrans %}{% else %}{% trans "All flows" %}{% endif %} {% if scope.kind == 'zone' and scope.ways_out %}· {% blocktrans count n=scope.ways_out %}and {{ n }} flow out of the zone{% plural %}and {{ n }} flows out of the zone{% endblocktrans %}{% endif %}
{% if scope.kind == 'zone' %}

{% trans "Assets" %}

{% if scope.asset_rows %}
{% for row in scope.asset_rows %} {% endfor %}
{% trans "Asset" %} {% trans "Role" %} {% trans "Purdue level" %} SL-C {% trans "End of support" %}
{{ row.asset|linkify }}{% if row.new %} {% trans "new" %}{% endif %} {{ row.role|placeholder }} {% if row.level %}{% badge row.level_label bg_color=row.level_color %}{% else %}{{ ''|placeholder }}{% endif %} {{ row.capability|placeholder }} {% if row.end_of_support %}{% badge row.end_of_support.date|date:"Y-m-d" bg_color=row.end_of_support.color %}{% else %}{{ ''|placeholder }}{% endif %}
{% if scope.assets_more %}
{% blocktrans with n=scope.assets_more %}All assets on the zone ({{ n }} more){% endblocktrans %}
{% endif %} {% else %}
{% trans "No devices or virtual machines in this zone." %}
{% endif %} {% endif %}

{% trans "Open findings" %}

{% if scope.finding_groups %}
{% for g in scope.finding_groups %} {% if g.count == 1 %} {% else %} {% endif %} {% endfor %}
{% badge g.severity bg_color=g.color %}{% with f=g.findings.0 %}{{ f.message }} ({{ f.obj|linkify }}){% endwith %} {{ g.title }} {{ g.count }}
{% for f in g.shown %}{{ f.obj|linkify }}{% if not forloop.last %}, {% endif %}{% endfor %}{% if g.more %}, {% blocktrans with n=g.more %}and {{ n }} more{% endblocktrans %}{% endif %}
{% else %}
{% trans "The checks find nothing here." %}
{% endif %}
{% trans "All checks for the site" %}
{% endblock %}