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

Research: always-on/generated token for UI and API #349

Closed
alexellis opened this issue Oct 27, 2017 · 4 comments
Closed

Research: always-on/generated token for UI and API #349

alexellis opened this issue Oct 27, 2017 · 4 comments

Comments

@alexellis
Copy link
Member

It's very hard to automate security out of the box for an API/UI because this generally involves:

  • non-default username/password
  • tokens
  • CA/certs

We should force always-on/generated auth for the UI and API via basic auth or a token, so that if someone does deploy in production (without reading the best practice guide) they are not wide open to vulnerabilities.

@alexellis
Copy link
Member Author

Ideas? @chanezon @chanwit @Lewiscowles1986 + Joe Beda.

This would be at the API gateway level - so agnostic to the scheduler so it can work with Swarm, K8s and other back-ends.

We could have a user create a secret or token (using the orchestrator) ahead of time then fetch that back before accessing the cluster.

@Lewiscowles1986
Copy link
Contributor

Lewiscowles1986 commented Oct 27, 2017

I can generate a secure'ish random string and sed it in as part of setup. I can also generate two for basic-auth and feel I have a good handle on wrangling basic-auth into the gateway services with a middleware.

For the record I don't like the idea. What happens if someone insists they need kerberos next, or doesn't like having a single set of auth credentials?

Perhaps we could instead add to tutorials a kong setup. I've never used Kong and would enjoy the opportunity to play, get feedback which feeds value in both directions. That way it's not part of FaaS, but is part of stock scripts.

Btw I'm equally as happy for someone else to handle

@alexellis
Copy link
Member Author

It needs to be a one click deployment. We like Kong but it needs a multi stage manual setup. Suggestions welcome

@alexellis
Copy link
Member Author

Derek close: fixed with basic auth in GW

@derek derek bot closed this as completed Aug 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants