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

Consider adding a service reload API endpoint #133

Open
brendan-ward opened this issue Jan 3, 2022 · 0 comments
Open

Consider adding a service reload API endpoint #133

brendan-ward opened this issue Jan 3, 2022 · 0 comments

Comments

@brendan-ward
Copy link
Collaborator

As mentioned in #128

We may want to consider adding a reload API endpoint to trigger reload of a specific service or set of services, rather than restarting the entire server process. We'd probably need to set a mutex (so multiple calls to /reload in separate threads don't collide), then uses something similar to what we're doing in the filesystem watcher to rescan the registered directories and re-add those that exist, or take a service ID and reload just that one.

We need to figure out how to handle auth for this; some options:

  • shared secret (your token); which is nice and lightweight but also risky, it could get logged as plaintext anywhere in between caller and mbtileserver and potentially used to do a DOS attack
  • HTTP Basic Auth based on credentials provided at server startup
  • something else?
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

1 participant