Skip to main content

Module ops_p2

Module ops_p2 

Source
Expand description

Wave E4 P2 operations & API/Web extensions per .spec/sot/serve-operations.sot.md and .spec/sot/rest-api-standards.sot.md:

  • O-11: Native SMTP email notification client from arks serve (ARKS_SMTP_HOST).
  • O-12: Actions external container-runner typed config (default disabled; zero unsafe).
  • O-13: Mirror records, audit retention pruning, RFC 5424 syslog formatter.
  • P-8: Idempotency-Key replay cache, CORS allowlist (ARKS_CORS_ORIGINS), minimal i18n catalog (en/de) + <time datetime> helper, Atom feed builder.

Structs§

ActionsRunnerConfig
MirrorConfig
SmtpConfig

Functions§

apply_cors_allowlist
Check Origin against an exact CORS allowlist (ARKS_CORS_ORIGINS, comma-separated). Never reflects * with credentials; always attaches Vary: Origin.
format_syslog_rfc5424
Format an audit event as an RFC 5424 syslog line (<PRI>1 TS HOST APP PID MSGID - MSG).
lookup_idempotency
Look up a cached response for Idempotency-Key on mutating POST requests (24h TTL).
prune_audit_log
Prune audit log entries older than retention_days (0 = retain forever).
render_atom_feed
Build an RFC 4287 Atom 1.0 XML feed for releases or issues.
render_time_el
Render a semantic HTML5 <time datetime="..."> element.
send_smtp_email
Send a plain-text notification email via minimal RFC 5321 SMTP (HELO/MAIL/RCPT/DATA/QUIT).
store_idempotency
Store a response for Idempotency-Key (24h TTL).
t_label
Minimal i18n UI catalog (en default, de sample) + semantic <time datetime="..."> helper.