Real-Dev-Squad/cron-jobs

Add required environment variables for STAGING

Closed this issue · 4 comments

Add required environment variables for PRODUCTION

Please make these changes after merging these PR:

Following keys need to be added:

  • In Cron jobs Github Settings environment:

    • DISCORD_BOT_PRIVATE_KEY (add the previous private key used in rds backend for backward compatilbility
    • DISCORD_SERVICE_PRIVATE_KEY (newly generated private key)
    • FF_SELF_PRIVATE_KEY with value: 'true'
  • In Discord slash commands Github Settings environment:

    • CRON_JOBS_PUBLIC_KEY (newly generated public key)

Steps to generate private public keys:

Generate private key using : ssh-keygen -t rsa -P "" -b 2048 -m PEM -f jwtRS256.key
View public key using : ssh-keygen -f jwtRS256.key.pub -e -m pkcs8

Updated the configs, thanks for the details

  • In Cron jobs Github Settings environment:

    • DISCORD_BOT_PRIVATE_KEY (add the previous private key used in rds backend for backward compatilbility
    • DISCORD_SERVICE_PRIVATE_KEY (newly generated private key)
    • FF_SELF_PRIVATE_KEY with value: 'true'

@Ajeyakrishna-k For now we will make changes,
We should always create new tickets for making changes, next time please don't reopen closed tickets,

Thanks for the details, this has been done 💀