By Castor Ruffy
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!
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.
Hey @castorruffy,
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!
- Bobby.
https://docs.digitalocean.com/products/functions/how-to/configure-functions/
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.