ui: remove Hermes API key regenerate button from admin settings

Key is now managed via HERMES_API_KEY env var only.
This commit is contained in:
Troll (Hermes Agent) 2026-08-03 22:55:55 +00:00
parent 107e558aea
commit a72da4c5da
3 changed files with 9 additions and 20 deletions

View file

@ -262,26 +262,15 @@
</form>
</div>
<!-- Email / SMTP configuration -->
<!-- Hermes API Key display (env var only; no regeneration) -->
<div class="section">
<h2>Hermes API Key</h2>
<p class="copy-hint">Hermes uses this key in the Authorization header when POSTing generated Suno prompts back to the callback endpoint.</p>
<p class="copy-hint">Hermes uses this key in the Authorization header when POSTing generated Suno prompts back to the callback endpoint. The key is configured via the Portainer environment variable <code>HERMES_API_KEY</code>.</p>
<p><strong>Current key:</strong> <code>{{ hermes_key_masked }}</code></p>
{% if hermes_key_just_generated %}
<div class="flash success" style="background:#064e3b">
<p><strong>New key (copy it now — it will not be shown again):</strong></p>
<p class="path" id="new-hermes-key">{{ hermes_key_just_generated }}</p>
<button type="button" onclick="copyHermesKey()">Copy to clipboard</button>
</div>
{% elif not hermes_key_set %}
<p class="status-bad">⚠️ No Hermes API key is configured. Generate one before using the callback workflow.</p>
{% if not hermes_key_set %}
<p class="status-bad">⚠️ No Hermes API key is configured. Set the HERMES_API_KEY environment variable in Portainer before using the callback workflow.</p>
{% endif %}
<form method="POST" onsubmit="return confirm('Regenerating the key will invalidate the old one. Hermes will need the new key. Continue?')">
<input type="hidden" name="action" value="regenerate_hermes_key">
<button type="submit">Regenerate API Key</button>
</form>
</div>
<!-- Email / SMTP configuration -->