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
Answer a question...

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.

Eric Swildens
DigitalOcean Employee
DigitalOcean Employee badge
November 9, 2022

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.

Bobby Iliev
Site Moderator
Site Moderator badge
May 27, 2022

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.

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.

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.