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

Feature request: Hook that runs after (re)starting an app #5705

Open
dreusel opened this issue Nov 1, 2023 · 0 comments
Open

Feature request: Hook that runs after (re)starting an app #5705

dreusel opened this issue Nov 1, 2023 · 0 comments

Comments

@dreusel
Copy link

dreusel commented Nov 1, 2023

For many use cases, it would be awesome to have a hook which is executed after an app is (re)started, which could do all kinds of tasks.

My specific use-case is to retrieve relevant secrets from a vault system and injecting them the booting app. By doing this in a hook which runs within the PM2 God module process space, and applying some additional tricks, a setup can be constructed where PM2 plays the role of 'trusted intermediate': It will be the only entity in the system with access to the Vault system and deliver appropriate secrets to appropriate apps.

Other possible use-cases could be integration with a service-discovery system, service health monitoring, and many more

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