Hello, How to secure DO functions? Is there any API gateway for authentication and authorization? Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Secure Web Function: by default, web functions can be invoked by anybody who knows the function URL. To require authentication, enable Secure Web Function. This prompts you to enter a secret token, which you will then need to provide in the X-Function-Auth header for each request.
I don’t think that this is available with the new DigitalOcean functions out of the box but it is a great idea, sounds like it’d be super useful!
The best thing to do to get your voice heard regarding this would be to head over to our Product Ideas board and post a new idea, including as much information as possible for what you’d like to see implemented.
In the meantime, you could implement authentication on per function basis depending on the language that you are using.
Hope that helps!
Want to learn more? Join the DigitalOcean Community!
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Sign up now
I would start here. The documentation is fairly verbose, and the RESTful API is fairly easy to use.
They also have a large number of SDK libraries.