{% extends "layouts/base.html" %} {% block title %} Upload a KEYS file ~ ATR {% endblock title %} {% block description %} Upload a KEYS file containing multiple GPG public keys. {% endblock description %} {% block stylesheets %} {{ super() }} {% endblock stylesheets %} {% block content %}

← Back to Manage keys

Upload a KEYS file

Upload a KEYS file containing multiple GPG public keys.

{% if form.errors %}

Form errors

{% for field, errors in form.errors.items() %} {% for error in errors %}

{{ field }}: {{ error }}

{% endfor %} {% endfor %}
{% endif %} {% if results and submitted_committees %}

KEYS processing results

The following keys were found in your KEYS file and processed against the selected committees. Green squares indicate that a key was added, grey squares indicate that a key already existed, and red squares indicate an error.

{% for committee_name in submitted_committees %} {% endfor %} {% for key_info in results %} {% for committee_name in submitted_committees %} {% set status = key_info.committee_statuses.get(committee_name) %} {% set cell_class = 'page-status-cell-error' if key_info.status == 'error' else 'page-status-cell-new' if status == 'newly_linked' else 'page-status-cell-existing' if status == 'already_linked' else 'page-status-cell-unknown' %} {% set title_text = 'Error processing key' if key_info.status == 'error' else 'Newly linked' if status == 'newly_linked' else 'Already linked' if status == 'already_linked' else 'Unknown status' %} {% endfor %} {% endfor %}
Fingerprint User ID
{{ committee_map.get(committee_name, committee_name) }}
{{ key_info.fingerprint[:16]|upper }} {{ key_info.email }}
{% set processing_errors = results | selectattr('status', 'equalto', 'error') | list %} {% if processing_errors %}

Processing errors

{% for error_info in processing_errors %}
{{ error_info.key_id }} / {{ error_info.fingerprint }}: {{ error_info.message }}
{% endfor %} {% endif %} {% endif %}
{# {{ form.csrf_token }} #} {{ form.hidden_tag() if form.hidden_tag }}
{{ form.key.label(class="form-label") }}
{{ form.key(class="form-control", aria_describedby="keys-help") }} Upload a KEYS file containing multiple PGP public keys. The file should contain keys in ASCII-armored format, starting with "-----BEGIN PGP PUBLIC KEY BLOCK-----". {% if form.key.errors %}
{% for error in form.key.errors %}{{ error }}{% endfor %}
{% endif %}
{% if user_committees %}
Associate keys with committees
{% for value, label in form.selected_committees.choices %}
{% else %}

No committees available for association.

{% endfor %}
Select the committees with which to associate these keys. You must be a member of the selected committees. {% if form.selected_committees.errors %}
{% for error in form.selected_committees.errors %}{{ error }}{% endfor %}
{% endif %}
{% else %}

You must be a member of at least one committee to add signing keys.

{% endif %}
{{ form.submit(class="btn btn-primary") }} Cancel
{% endblock content %} {% block javascripts %} {{ super() }} {% endblock javascripts %}