{% extends "layout.html" %} {% block content %}

You can incorporate secrets (like SSH keys) into your builds by including their UUIDs in your build manifest:

secrets:
- 46f739e5-4538-45dd-a79f-bf173b7a2ed9

Add new secret

{{csrf_token()}}
{{ valid.summary("name") }}
{{ valid.summary("secret") }}
Secret Type
{# XXX: Hack to appease Bootstrap #}
{{ valid.summary("secret_type") }}
{{ valid.summary("file-path") }}
{{ valid.summary("file-mode") }}
{{ valid.summary("file-file") }} Choose a file here or paste the text in above, not both.

SSH keys are written to ~/.ssh/:uuid and the first key added is symlinked to ~/.ssh/id_rsa. PGP keys are imported into GPG.

{% if message %}
{{ message }}
{% endif %} {% if len(secrets) == 0 %}
You haven't added any secrets yet.
{% else %}
{% for secret in secrets %}

{{ secret.uuid }} {{ secret.created | date }}

{% if secret.from_user %} Shared by {{secret.from_user.canonical_name}} {% endif %} {% if secret.name %}
{{ secret.name }}
{% endif %}
{{secret.secret_type.pretty_name}}{% if secret.secret_type.value == "plaintext_file" %}: {{secret.path}} {{"{0:0o}".format(secret.mode)}} {% endif %}
{% endfor %}
{% endif %}
{% endblock %}