Skip to content

Require moshcode webhook secret in production - #30

Merged
ralyodio merged 1 commit into
moshcoder:masterfrom
aiirvizionz:clientkit/require-moshcode-webhook-secret
Jul 13, 2026
Merged

Require moshcode webhook secret in production#30
ralyodio merged 1 commit into
moshcoder:masterfrom
aiirvizionz:clientkit/require-moshcode-webhook-secret

Conversation

@aiirvizionz

Copy link
Copy Markdown
Contributor

Summary

  • Reject unsigned moshcode webhook events in production when MOSHCODE_WEBHOOK_SECRET is missing.
  • Preserve no-secret behavior for development environments.
  • Validate v1 signatures as 64-character hex before constant-time comparison.

Validation

  • .\node_modules.bin\tsc.CMD --noEmit
  • git diff --check

@ralyodio
ralyodio merged commit 60b5f04 into moshcoder:master Jul 13, 2026
2 checks passed
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.

2 participants