coolify/app/Notifications
Andras Bacsai 90ddbb3572 feat(security): support expiration on API tokens with warning notifications
Add optional expiration to personal API tokens. Users pick a duration
(1/7/30/60/90 days or Never) at creation time. Expired tokens are
rejected by Sanctum, pruned hourly by sanctum:prune-expired, and a
team notification fires ~24h before expiry so owners can rotate
before API calls start failing.

- ApiTokens Livewire component stores expires_at from expiresInDays
- Rework issued-tokens UI from card grid to table (matches other views)
- New ApiTokenExpirationWarningJob scheduled hourly (idempotent via RateLimiter)
- New ApiTokenExpiringNotification (email/discord/telegram/slack/pushover)
- api_token_expiring added to alwaysSendEvents so users cannot silence
  expiry warnings from the per-event notification toggle UI
- sanctum:prune-expired cadence moved from daily to hourly

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-20 14:28:38 +02:00
..
Application feat: add UUIDs and URLs to webhook notifications 2025-10-10 18:41:46 +02:00
Channels Fix: Allow test emails to be sent to any email address 2025-12-12 11:12:19 +01:00
Container feat: add UUIDs and URLs to webhook notifications 2025-10-10 18:41:46 +02:00
Database feat: add UUIDs and URLs to webhook notifications 2025-10-10 18:41:46 +02:00
Dto feat(core): You can validate compose files with docker compose config 2025-02-27 11:29:04 +01:00
Internal feat(notification): add Pushover 2024-12-11 18:13:16 +01:00
ScheduledTask feat: add UUIDs and URLs to webhook notifications 2025-10-10 18:41:46 +02:00
Server fix(notification): updated cloud subscription links to valid url 2026-03-30 11:37:28 +05:30
TransactionalEmails fix: harden TrustHosts middleware and use base_url() for password reset links 2026-03-26 18:39:54 +01:00
ApiTokenExpiringNotification.php feat(security): support expiration on API tokens with warning notifications 2026-04-20 14:28:38 +02:00
CustomEmailNotification.php fix: Email should be retried with backoff 2024-11-26 10:19:05 +01:00
Notification.php refactor(notifications): standardize getRecipients method signatures 2025-03-24 17:55:10 +01:00
SslExpirationNotification.php feat: SSL notification 2025-02-10 21:31:31 +01:00
Test.php Fix: Allow test emails to be sent to any email address 2025-12-12 11:12:19 +01:00