mattrguerra/meridian-ops-boardmainPrivate on GitHub, published here in full

sa.ts

Language TypeScript661 B16 lines

packages/gmail-client/test/sa.ts

  1. import { generateKeyPairSync } from 'node:crypto'
  2. /**
  3. * A REAL key, generated per run. The JWT path is the part of this client that
  4. * cannot be eyeballed: a wrong base64 alphabet or a mis-serialized claim set
  5. * produces a token Google rejects with a message that names none of it. Signing
  6. * for real here means those break in CI rather than at 6am against Gmail.
  7. */
  8. export const SA = {
  9. email: 'meridian-dashboard@meridian-ops.iam.gserviceaccount.com',
  10. privateKey: generateKeyPairSync('rsa', {
  11. modulusLength: 2048,
  12. privateKeyEncoding: { type: 'pkcs8', format: 'pem' },
  13. publicKeyEncoding: { type: 'spki', format: 'pem' },
  14. }).privateKey,
  15. }