Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/lib/promoCreditCategories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,15 @@ const encryptedSelfServicePromos: readonly EncryptedSelfServicePromoCreditCatego
description: 'Builders event promotional credit',
total_redemptions_allowed: 200,
},
{
// TODO: re-encrypt with production key: pnpm promo encrypt CLAWNYC
encrypted_credit_category: 'BQvtkd104X5pIN+mKn21Tw==:PLQKIZGhb19EG21tRBjV7w==:0MmIBfnr3g==',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CRITICAL: This promo is encrypted with the wrong key and will fail to load in production

encryptedSelfServicePromos is decrypted eagerly when this module is imported. Because this ciphertext is still marked for re-encryption with the production key, decryptPromoCode(encrypted_credit_category) will throw under the production CREDIT_CATEGORIES_ENCRYPTION_KEY, which can break promo loading at startup.

description: 'Claw NYC promotional credit',
amount_usd: 10,
is_user_selfservicable: true,
is_idempotent: true,
total_redemptions_allowed: 2_000,
},
];

const selfServicePromos: readonly SelfServicePromoCreditCategoryConfig[] =
Expand Down
Loading