Skip to content

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

@joeykmh joeykmh 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!

@mfsiega-airbyte mfsiega-airbyte merged commit bfa3b5c into master Nov 14, 2022
@mfsiega-airbyte mfsiega-airbyte deleted the msiega/fix-workspace-secrets-handling branch November 14, 2022 16:42
akashkulk pushed a commit that referenced this pull request Dec 2, 2022
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

5 participants