-
Notifications
You must be signed in to change notification settings - Fork 63
Protected functions should be protected locally #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
So here's the issue I found with this one: |
How does one create a |
@SpicyPete To make your function protected you need to name it This issue just points out that when running locally, protected functions are not protected. So protection is only manifested when deployed. |
@philnash Great thank you, that is useful to know. |
@SpicyPete There's a bit on it here: https://www.twilio.com/docs/labs/serverless-toolkit/general-usage#functions. But we could definitely surface that elsewhere too to make things easier. |
When starting to test the support for protected functions, I expected that I would receive a 401 response when calling my protected function locally without a signature.
I understand that when deploying protected functions will be protected, but to make that more obvious when developing, I think that protected functions should still be protected. This will give confidence to developers when testing functions with webhooks and ngrok.
To make for easier testing, we could add a flag that unprotects protected functions locally.
The text was updated successfully, but these errors were encountered: