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

Let Kong Adapter, Mailer, Chatbot check for changed configuration #36

Closed
DonMartin76 opened this issue Dec 4, 2016 · 0 comments
Closed
Assignees
Milestone

Comments

@DonMartin76
Copy link
Member

In order to gain more flexibility and safety during updates of both configuration and images, the following behavior of components depending on the Portal API may be very helpful:

  • The portal API provides and end point which gives back some kind of hash of the static configuration
  • When calling webhooks, this hash is passed in as a header parameter (Configuration-Hash or similar)
  • At startup, each component retrieves the initial hash and stores it in memory
  • Whenever a hash mismatch is detected, e.g. because the portal API has restarted and retrieved/gotten a new configuration, the depending component can take action
  • Such an action could be just to quit the current process to let the orchestration layer (e.g. compose or Kubernetes) restart the container, so that the new configuration can be retrieved from the portal API

This would enable a much easier handling of configuration updates: It would be enough to stop/restart the portal API, and all other components would automatically draw the new configuration. Such behavior would be ideal for environments such as Kubernetes.

@DonMartin76 DonMartin76 added this to the 0.11.0 milestone Dec 5, 2016
DonMartin76 added a commit to apim-haufe-io/wicked.api that referenced this issue Dec 8, 2016
- Haufe-Lexware/wicked.haufe.io#36 and
- Haufe-Lexware/wicked.haufe.io#38

If you pass X-Config-Hash, the API will reject the call if the config hash is different than stored.
DonMartin76 added a commit to apim-haufe-io/wicked.ui that referenced this issue Dec 8, 2016
DonMartin76 added a commit to apim-haufe-io/wicked.kong-adapter that referenced this issue Dec 8, 2016
DonMartin76 added a commit to apim-haufe-io/wicked.mailer that referenced this issue Dec 8, 2016
DonMartin76 added a commit to apim-haufe-io/wicked.chatbot that referenced this issue Dec 8, 2016
@DonMartin76 DonMartin76 self-assigned this Dec 9, 2016
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