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

fix: update meta DB state even on factory failure #332

Merged
merged 2 commits into from
Sep 9, 2022

Conversation

brokad
Copy link
Collaborator

@brokad brokad commented Sep 9, 2022

This is a quick workaround for #197.

In a nutshell: secrets are implemented through a separate API endpoint that sets them directly in the DB backend that is attached to a deployment (this is actually pretty unsafe, this should be fixed). However, a DB is attached to a deployment's state only after a successful load and not at all if the factory phase of deployment fails. This leads to a situation where the DB is provisioned but that is not reflected in the deployment's state. And in that case, the secrets endpoints on the API silently fail.

Since a much better approach is on the way in feat/deployer, this simple fix will do for now. A client-side update is on the way as well.

@brokad brokad merged commit 94c0878 into shuttle-hq:main Sep 9, 2022
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

Successfully merging this pull request may close these issues.

1 participant