Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Basic Auth #32

Closed
edouardkleinhans opened this issue Mar 28, 2017 · 8 comments
Closed

Proposal: Basic Auth #32

edouardkleinhans opened this issue Mar 28, 2017 · 8 comments
Assignees

Comments

@edouardkleinhans
Copy link

It would be great to have a basic security on admin ui and / or function call

Expected Behavior

The goal would be to provide an API token to enble basic security on gateway UI access and function call.

Current Behavior

There is no security to access gateway UI or call a function. Anybody that have access to ui can add a function.

Possible Solution

Add an API key for each call to gateway UI to secure access.
Add an generated API key for each function in order to secure access to them

see https://foobar123.com/serverless-security-594942b496ec

@alexellis alexellis self-assigned this Mar 28, 2017
@alexellis
Copy link
Member

This is on the roadmap and makes sense.

I'm not sure if a header/key can be used through a web-browser, but basic auth over SSL may serve this purpose?

@edouardkleinhans
Copy link
Author

I'm not a developer, but this seems not so difficult to implement
https://github.com/graze/golang-service/blob/master/handlers/auth/README.md

@alexellis
Copy link
Member

Related -> #36

@alexellis
Copy link
Member

@edouardkleinhans
Copy link
Author

Thanks a lot, now we can add protection inside function.Maybe another option, is to do protection on the gateway directly.

API KEY are defined on the gateway for each function.

@alexellis
Copy link
Member

See also my blog post on swarm secrets with Github. http://blog.alexellis.io/swarm-secrets-in-action/

Have you created any of your own functions yet? Any other ideas/feedback will be appreciated. :-)

@alexellis
Copy link
Member

alexellis commented Aug 20, 2017

@edouardkleinhans this can be done by putting Kong in front of your API gateway.

@alexellis alexellis changed the title Basic Security Proposal: Basic Security Aug 28, 2017
@alexellis alexellis changed the title Proposal: Basic Security Proposal: Basic Auth Sep 13, 2017
@alexellis
Copy link
Member

Implemented and released in a guide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants