Question

Is there any API gateway for DO functions?

Hello, How to secure DO functions? Is there any API gateway for authentication and authorization? Thanks


Submit an answer

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!

Sign In or Sign Up to Answer

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.

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.

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.

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.