Open paths
Copy page
A private project asks every visitor to log in, and a payment provider or a login provider can’t log in. An open path lets requests to one path through without a login, while the rest of the project stays private.
Add an open path
Section titled “Add an open path”To open a path, run grayspar open-path add with the path your app receives the calls on:
grayspar open-path add /webhooks✓ Added open path /webhooks to <project-name>Anyone can reach it without logging in.The path opens at once. It covers /webhooks and everything below it, such as /webhooks/stripe, and doesn’t cover /webhooks-old.
Only an owner of the team can add an open path. A path can’t contain ? or #, end in a slash, or be / itself. To open the whole project, share it with anyone who has the link. A request that uses .. to climb out of an open path still has to log in, so /webhooks/../admin stays private.
Check the sender in your app
Section titled “Check the sender in your app”Anyone can reach an open path, so requests there carry no identity headers. Your app has to check who sent each request, the way the sender’s documentation describes. Stripe and GitHub, for example, sign every webhook, and your app verifies the signature.
See and remove open paths
Section titled “See and remove open paths”To list a project’s open paths, run grayspar open-path. To make a path ask for login again, run grayspar open-path remove:
grayspar open-pathgrayspar open-path remove /webhooks