isomerpages / isomercms-backend

A static website builder and host for the Singapore Government
5 stars 1 forks source link

ISOM-1037 - Create automation for prod ops to whitelist #1365

Closed harishv7 closed 4 months ago

harishv7 commented 5 months ago

Problem

On-call queries have repetitive issues such as whitelisting of emails etc. which can be solved with automation.

Closes ISOM-1037

Solution

Introduce a new bot service which serves a private org Slackbot with shortcut commands. This will empower Ops to perform these repetitive queries themselves. Going forward, any automations can be added to this service.

To whitelist emails, we can now enter /whitelist-emails email1@xyz.com,2024-06-22 email2@abc.com,2025-01-31 and so on. Note that the exp date is in the format of YYYY-MM-DD.

Breaking Changes

Features:

Improvements:

Bug Fixes:

Before & After Screenshots

BEFORE:

AFTER:

Tests

Deploy Notes

Note that for this to work, we need to edit the endpoint for the /whitelist-emails command on Slack's config pages. This should be updated to the CMS BE endpoint instead.

New environment variables:

linear[bot] commented 5 months ago

ISOM-1037 Create automation for prod-ops to whitelist