Report this

What is the reason for this report?

Is there any API gateway for DO functions?

Posted on May 27, 2022

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.

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.

https://ideas.digitalocean.com/

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.