Skip to content

v1.2.0 - Environment Variables & Security

Choose a tag to compare

@bakerboy448 bakerboy448 released this 18 Aug 04:16
· 31 commits to main since this release

Environment variable support and enhanced security

New Features

  • Complete Environment Variable Support: All configuration options can be set via environment variables
  • Configuration Hierarchy: CLI args → Environment vars → Config file (in priority order)
  • Docker/Container Ready: Full support for containerized deployments
  • Action Validation: Strict validation against 44+ known Reddit modlog actions
  • Security Enforcement: Mandatory anonymize_moderators=true to protect privacy

Environment Variables

  • REDDIT_CLIENT_ID, REDDIT_CLIENT_SECRET, REDDIT_USERNAME, REDDIT_PASSWORD
  • SOURCE_SUBREDDIT, WIKI_PAGE, RETENTION_DAYS, BATCH_SIZE, UPDATE_INTERVAL
  • WIKI_ACTIONS, IGNORED_MODERATORS, ANONYMIZE_MODERATORS

Security

  • BREAKING: anonymize_moderators=false is now permanently disabled
  • Application refuses to start if moderator anonymization is disabled
  • Prevents accidental exposure of moderator identities in public wikis

Validation

  • Comprehensive action validation with VALID_MODLOG_ACTIONS constant
  • Fail-fast validation rejects invalid actions with clear error messages
  • Enhanced configuration safety and reliability