Skip to content
Dashboard

Open paths

Copy page
View as Markdown

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.

To open a path, run grayspar open-path add with the path your app receives the calls on:

Terminal window
grayspar open-path add /webhooks
Terminal window
✓ 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.

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.

To list a project’s open paths, run grayspar open-path. To make a path ask for login again, run grayspar open-path remove:

Terminal window
grayspar open-path
grayspar open-path remove /webhooks