Skip to content

Fix: Enforce production secrets and remove unsafe fallbacks - #892

Open
mertcano wants to merge 1 commit into
tempoxyz:mainfrom
mertcano:yarr
Open

Fix: Enforce production secrets and remove unsafe fallbacks#892
mertcano wants to merge 1 commit into
tempoxyz:mainfrom
mertcano:yarr

Conversation

@mertcano

Copy link
Copy Markdown

This PR removes unsafe fallback behaviors for critical secrets in production, ensuring the application fails closed if environment variables are misconfigured.

Updates:

mppx-payment-link.server.ts: Removed the hardcoded fallback private key (0x...01). It now explicitly throws an error if FEE_PAYER_PRIVATE_KEY is missing outside of development.

mppx-secret.server.ts: Dropped the lifecycleEvent === "build" condition. It no longer silently injects the local example key during production builds, throwing an error instead if MPP_SECRET_KEY is not provided.

This PR removes unsafe fallback behaviors for critical secrets in production, ensuring the application fails closed if environment variables are misconfigured.

Updates:

mppx-payment-link.server.ts: Removed the hardcoded fallback private key (0x...01). It now explicitly throws an error if FEE_PAYER_PRIVATE_KEY is missing outside of development.

mppx-secret.server.ts: Dropped the lifecycleEvent === "build" condition. It no longer silently injects the local example key during production builds, throwing an error instead if MPP_SECRET_KEY is not provided.
@vercel

vercel Bot commented Aug 15, 2026

Copy link
Copy Markdown

@mertcano is attempting to deploy a commit to the Tempo Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant