{% extends "base.html" %} {% block title %}HARIS — Templates{% endblock %} {% block content %}

Templates

{{ scan_templates | length }} scan configuration{{ 's' if scan_templates | length != 1 else '' }} · {{ scanner_sources | length }} scanner source{{ 's' if scanner_sources | length != 1 else '' }}

New Configuration
{% if scan_templates %}
{% for tpl in scan_templates %}
{% if tpl.is_default %}
{% endif %}

{{ tpl.name }}

{% if tpl.is_default %} Default {% endif %}
{{ tpl.profile }}
{% if tpl.description %}

{{ tpl.description }}

{% endif %} {% if tpl.scanner_options %}
{% for scanner_name, opts in tpl.scanner_options.items() %} {% if opts is mapping %} {{ scanner_name }}: {% for k, v in opts.items() %} {% if v is iterable and v is not string %} {{ k }}={{ v | join(', ') }}{% if not loop.last %};{% endif %} {% else %} {{ k }}={{ v }}{% if not loop.last %};{% endif %} {% endif %} {% endfor %} {% endif %} {% endfor %}
{% endif %}

{{ tpl.rate_limit_rps }} req/s · max {{ tpl.max_requests }} requests

{% if tpl.tags %}
{% for tag in tpl.tags %} {{ tag }} {% endfor %}
{% endif %}

Created {{ tpl.created_at[:10] if tpl.created_at else '—' }}

Edit {% if not tpl.is_default %} {% endif %}
{% endfor %}
{% else %}

No scan configurations yet.

Create your first configuration
{% endif %}

Scanner template sources and their local state

{% if scanner_sources %}
{% for src in scanner_sources %} {% endfor %}
Scanner Source Name Templates Last Updated Status
{{ src.scanner }} {{ src.source_name }} {% if src.local_path %}
{{ src.local_path }} {% endif %}
{% if src.template_count is not none %} {{ src.template_count }} {% else %} — {% endif %} {{ src.last_updated[:10] if src.last_updated else '—' }} {% if src.last_updated %} Up to date {% else %} Never updated {% endif %}
{% else %}

No scanner template sources configured.

Add sources in config/default_config.yaml under template_sources.

{% endif %}
{% endblock %} {% block scripts %} {% endblock %}