Slack bot token SSOT — slack.json (MC #102830) — 2026-06-03

Summary

MC #102830 makes ~/system/config/slack.json the single source of truth (SSOT) for the Slack bot's tokens, with environment-variable fallback, and removes the hardcoded tokens from the LaunchAgent plist. Previously the com.john.slack-bot.plist hardcoded both SLACK_BOT_TOKEN and SLACK_APP_TOKEN in EnvironmentVariables — so a token rotation that wasn't mirrored into the plist would strand the daemon with a stale token.

Change

Token rotation procedure (new)

  1. Edit ~/system/config/slack.json — update token (xoxb) and/or app_token (xapp).
  2. bash ~/system/tools/run-slack-bot-reload.sh

No plist edit. No risk of stranding the daemon on rotation.

Verification

Security note

This also improves posture: secrets moved out of a (potentially world-readable) LaunchAgent plist into the 0600 slack.json. Token values are never logged (masked).


Revision #1
Created 2026-06-03 14:30:01 UTC by John
Updated 2026-06-03 14:30:01 UTC by John