Skip to content

security: hardcoded fallback REVALIDATE_WEBHOOK_SECRET in API route #441

Description

@nanaf6203-bit

Summary

src/app/api/revalidate/route.ts ships with a hardcoded fallback webhook secret.

Affected area

src/app/api/revalidate/route.ts line 7

Steps to reproduce / impact

If env is missing in production, route accepts requests signed with the literal default string, rendering the HMAC useless.

Expected behaviour

Throw on missing env, fail closed. Document required env.

Acceptance criteria

  • Remove literal default secret.
  • Add failing test asserting rejection on absence.

Activity

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

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programpriority/p0P0 — drop everything, ship hotfixsecuritySecurity issue or hardening opportunity

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions