faas icon indicating copy to clipboard operation
faas copied to clipboard

Question: Completely bock UI but allow function calls?

Open nelfer opened this issue 8 years ago • 3 comments

So I've successfully used OpenFaaS to create integration points between internal applications. Congratulations on making such a great product!

Now my predicament is another: I want to use OpenFaaS for microservices for a software/site that will be exposed to people outside my company. Think for example AJAX calls to do some processing.

The issue is that the UI runs in the same port as the function execution (as far as I know).

Is there a way to disable the UI completely but leave the functions open for execution? I can protect the functions by validating secrets.

Using basic authentication doesn't work for this, because in order to call the function, I must pass the basic authentication credentials. Anyone that looks at the URL can grab them and enter the UI, remove functions, add functions or do some other kind of mischief.

So maybe the question is: How can I expose my functions to be used by a public site, but don't expose the UI?

Thanks for the help!

P.S. I quickly saw the compose files and saw that there's a "function provider url". Is it as simple as exposing that service instead of the gateway?

nelfer avatar Jun 22 '18 03:06 nelfer

Found the article that shows the endpoints to secure here: https://docs.openfaas.com/reference/authentication/

nelfer avatar Jun 23 '18 02:06 nelfer

Great, glad that you found it in the docs 👍

alexellis avatar Jun 23 '18 09:06 alexellis

Derek lock: question resolved

alexellis avatar Jun 23 '18 09:06 alexellis