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

[Idea] Provide a package to help setting up an "external API" server #1444

Open
2 of 5 tasks
emmenko opened this issue Apr 16, 2020 · 2 comments
Open
2 of 5 tasks

[Idea] Provide a package to help setting up an "external API" server #1444

emmenko opened this issue Apr 16, 2020 · 2 comments
Labels
💅 Type: Enhancement Improves existing code 🛠 Type: Tooling Things related to development tools for the repository

Comments

@emmenko
Copy link
Member

emmenko commented Apr 16, 2020

It would be helpful to have a package that takes care of most of the setup that an "external API" server would need to work with Custom Applications.

For example, including the JWKs middleware, extracting useful fields from the token, etc.

This would also help with migrations for the API versioning.

  • Express-like middleware for authenticating the Bearer token
  • JSON logger
  • Prometheus setup
  • Lightship (for Kubernetes) setup
  • Base express server with minimal setup
@tdeekens
Copy link
Contributor

Maybe just an express middleware, then maybe hapi plugin etc exposing certain things on the request would help plugging things together and getting started. A lot of that cruft we could actually steal from promster which works with many servers by now. Alternatively it could also be a complete server but then that could also build on the previous building blocks. Depends a bit on how much existing infrastructure Custom Apps on the server integrate with or if they start from scratch.

@mmaltsev-ct
Copy link
Contributor

Keeping the idea, with the low priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💅 Type: Enhancement Improves existing code 🛠 Type: Tooling Things related to development tools for the repository
Projects
None yet
Development

No branches or pull requests

3 participants