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

Only persist secrets if we hydrated them in workspace webhook config handling #19352

Merged
merged 2 commits into from
Nov 14, 2022

Conversation

mfsiega-airbyte
Copy link
Contributor

What

Only persist secrets if we actually ever hydrated/read them in the webhook config handling.

Today, we always write the workspace via the SecretsRepositoryWriter (which always splits out secrets). However, since we don't have a use-case to actually read the secrets in the first place, we aren't currently hydrating them. This simply doesn't work, since the SecretsRepositoryWriter expects the secrets to be hydrated.

As a result, a workspace that has a webhook config set can't be updated.

How

Only use the secrets persistence layer if we created new secrets or ever hydrated existing ones.

Copy link
Contributor

@josephkmh josephkmh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks for fixing this 🙏

Copy link
Contributor

@davinchia davinchia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform issues related to the platform area/server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants