V3 - Accessing Koa.js app instance to set rotating keys array for cookie signing

System Information
  • Strapi Version: v3.6.8
  • Operating System: Ubuntu 21.10
  • Database: SQLite
  • Node Version: v14.18.3
  • NPM Version: 6.14.15
  • Yarn Version: 2.4.2

Hi everyone,

Does anyone know how to configure the secret keys that are used for cookie-signing? I’m thinking I would need to access the underlying koa app instance and set app.keys property. But I’m not sure how to access that object from strapi. Or maybe I can do it from config/server.js somehow?

My main goal is to take advantage of the rotating keys feature implemented by KeyGrip.

For reference (from koa.js docs):