{#- The dashboard: the run line, the KPI tiles (all findings carries the severity bar and its legend), then Fix first beside Worst images. Bars are SVG with their geometry in attributes: the CSP allows no inline style. -#} {% extends "base.html" %} {% from "partials/macros.html" import versions, factor_chips, risk_score %} {% block title %}Dashboard · kubedelos{% endblock %} {% block page_title %}Dashboard{% endblock %} {% block run_line %}{% with page_title = self.page_title() %}{% include "partials/run_line.html" %}{% endwith %}{% endblock %} {% block content %} {% if not run %} {% if narrower_href %}

There is no cluster-wide run of {{ context }} yet, only narrower ones. See the newest run's findings.

{% else %}

No scans of {{ context }} yet. Start one on the Scans page.

{% endif %} {% else %} {% if newer %}

Note: a newer run of {{ newer.scope }} exists, from {{ newer.when }}: see its findings.

{% endif %} {% if kpis.findings == 0 %} {% if kpis.images_failed > 0 %} {%- set scanned = kpis.images - kpis.images_failed %}

No vulnerabilities found in the {{ scanned }} {{ scanned | plural("image") }} that scanned; {{ kpis.images_failed }} failed to scan.

{% elif run.gaps %} {%- set gaps = run.gaps | length %}

No vulnerabilities found in the {{ kpis.images }} {{ kpis.images | plural("image") }} that could be listed; {{ gaps }} {{ gaps | plural("namespace or resource", "namespaces or resources") }} could not be listed.

{% else %}

No vulnerabilities found in {{ kpis.images }} {{ kpis.images | plural("image") }}.

{% endif %} {% endif %} {% if failed_total %}

Failed images · {{ failed_total }}

{%- if retry_href %}Retry failed images{% endif %} See all {{ failed_total }}

{%- for hint in login_hints %}

hint: {{ hint }}

{%- endfor %}
{% endif %}

Fix first

{% if by == "fix" %}by fix{% else %}by fix{% endif %} · {% if by == "image" %}by image{% else %}by image{% endif %} · Print report

{% if risk_note %}

{{ risk_note }}

{% endif %} {% if not fix_rows %}

No Critical or High findings have a released fix.

{% elif by == "fix" %}
{%- for row in fix_rows %}
{%- if risk_shown %}{{ row.score }}{% endif %} {{ row.severity | title }} {%- set url = row.primary_url | safe_url %} {% if url %}{{ row.vuln_id }}{% else %}{{ row.vuln_id }}{% endif %} {{ row.pkg_name or "unknown" }} {%- if row.installed | length > 1 %} installed {{ row.installed[0] }} +{{ row.installed | length - 1 }} {%- else %} installed {{ row.installed | join(", ") }} {%- endif %} fixed in {{ versions(row.fixed_version) }} {{ row.images }} {{ row.images | plural("image") }} {{ row.namespaces }} {{ row.namespaces | plural("namespace") }} {%- if row.installed | length > 1 %}

Installed: {{ row.installed | join(", ") }}

{%- endif %} {%- if risk_shown %}{{ factor_chips(row.factors) }}{% endif %}
    {%- for ref, namespaces in row.sample %}
  • {{ ref }}{% if namespaces %} in {{ namespaces | join(", ") }}{% endif %}
  • {%- endfor %}
{%- if row.images > sample_cap %}

and {{ row.images - sample_cap }} more: see them in findings

{%- endif %}
{%- endfor %}
{% else %}
{% if risk_shown %}{% endif %} {%- for row in fix_rows %} {%- if risk_shown %}{% endif %} {%- endfor %}
RiskImageNamespacesCriticalHighWith a fix
{{ risk_score(row.score, row.factors) }}{{ row.ref }} {{ row.namespaces | join(", ") }} {{ row.critical }} {{ row.high }} {{ row.fixable }}
{% endif %} {% if fix_total > fix_rows | length %}

showing {{ fix_rows | length }} of {{ fix_total }}: see the full list in findings

{% endif %} {% if no_fix %}

{{ no_fix }} Critical/High {{ no_fix | plural("finding has", "findings have") }} no released fix yet, across {{ no_fix_images }} {{ no_fix_images | plural("image") }}

{% endif %} {% if accepted_left_out %}

{{ accepted_left_out }} accepted Critical/High {{ accepted_left_out | plural("finding") }} not shown

{% endif %}
{% if worst %}

Worst images

{% endif %}
{% endif %} {% endblock %}