Files
git.stella-ops.org/offline/notifier/templates/attestation/key-rotation.email.template.json

18 lines
1.5 KiB
JSON

{
"templateId": "tmpl-attest-key-rotation-email",
"tenantId": "bootstrap",
"channelType": "Email",
"key": "tmpl-attest-key-rotation",
"locale": "en-US",
"schemaVersion": "1.0.0",
"renderMode": "Html",
"format": "Html",
"description": "Email notification for attestation signing key rotation",
"metadata": {
"eventKind": "attestor.key.rotation",
"category": "attestation",
"subject": "[INFO] Signing Key Rotated: {{ event.keyAlias }}"
},
"body": "<!DOCTYPE html>\n<html>\n<head><style>body{font-family:sans-serif;line-height:1.5;}.section{margin:1em 0;padding:1em;background:#f8f9fa;border-radius:4px;}.label{font-weight:bold;color:#666;}.mono{font-family:monospace;background:#e9ecef;padding:2px 6px;border-radius:3px;}</style></head>\n<body>\n<h2>Signing Key Rotated</h2>\n<div class=\"section\">\n<p><span class=\"label\">Key Alias:</span> <span class=\"mono\">{{ event.keyAlias }}</span></p>\n<p><span class=\"label\">Previous Key ID:</span> <span class=\"mono\">{{ event.previousKeyId }}</span></p>\n<p><span class=\"label\">New Key ID:</span> <span class=\"mono\">{{ event.newKeyId }}</span></p>\n<p><span class=\"label\">Rotated At (UTC):</span> {{ event.rotatedAtUtc }}</p>\n</div>\n{{ #if event.rotatedBy }}<div class=\"section\">\n<p><span class=\"label\">Rotated By:</span> <span class=\"mono\">{{ event.rotatedBy }}</span></p>\n</div>{{ /if }}\n<hr>\n<p style=\"font-size:0.85em;color:#666;\">Event ID: {{ event.eventId }} | Occurred: {{ event.occurredAtUtc }}</p>\n</body>\n</html>"
}