Skip to content

fix(www): harden volunteer application API endpoint#21

Open
IMisbahk wants to merge 1 commit into
codeday:masterfrom
IMisbahk:fix/volunteer-api-hardening
Open

fix(www): harden volunteer application API endpoint#21
IMisbahk wants to merge 1 commit into
codeday:masterfrom
IMisbahk:fix/volunteer-api-hardening

Conversation

@IMisbahk

@IMisbahk IMisbahk commented Jul 3, 2026

Copy link
Copy Markdown

Fixes #20

Summary

This PR improves the robustness of the volunteer application API by:

  • Restricting the endpoint to POST requests
  • Safely handling malformed request bodies
  • Validating submitted email addresses
  • Escaping user input before constructing Airtable filterByFormula
  • Returning appropriate error responses when Airtable operations fail

The existing successful volunteer onboarding flow and email behavior remain unchanged.

Reject non-POST requests, validate email and JSON input, escape Airtable
formula values, and return 502 when lookup or create operations fail.
@vercel

vercel Bot commented Jul 3, 2026

Copy link
Copy Markdown

@IMisbahk is attempting to deploy a commit to the CodeDay 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.

Volunteer API Hardening

1 participant