Part 12 / Topic 5 of 7
Every Server Action is a public POST endpoint
Section 2's curl command worked with no authentication, no session, no browser — and that is not a loophole, it's exactly what the installed server-actions.md guide warns about directly:
"A Server Action runs as a POST request against the page that invokes it... The implementation stays on the server, but the route is reachable to anyone who can send the same POST. Treat every action as an untrusted entry point."
This harness's own submitReview has no session to check (there is no login anywhere in this course yet), so its only validation is shape-validation (validate(formData)) — genuinely sufficient here, but the guide is explicit that this would not be enough once real users and real authorization exist: "Render-time gating (only rendering a form on an authenticated page) is not a security boundary, because requests can be sent without going through the UI" — precisely what section 2's curl command, bypassing the rendered page entirely, just demonstrated. The framework-level protections this install ships regardless (CSRF origin checks, a 1MB default body size limit, encrypted action ids, dead-code elimination of unused actions from client bundles) are real, but the guide is equally direct that they are "not a substitute for application-level checks" — authentication, authorization, and input validation belong inside every action, every time, not optionally.
Done here? The practice set for Part 12 — including the solutions — is on the part page.