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

decouple the secrets helper from connectors, to support secrets in ot… #17771

Merged
merged 1 commit into from
Oct 10, 2022

Conversation

mfsiega-airbyte
Copy link
Contributor

What

Support secrets in other config types apart from just connectors.

This will let us re-use the existing secrets management logic for secrets that live in other places -- e.g., a webhook operation config table.

There are other possible refactors here, but this is a minimal change to enable code reuse to support webhook operations.

How

Replace the ConnectorSpecification in the SecretsHelper API with the underlying JsonNode.

We eventually always pull the JsonNode out, so this just pushes it one layer higher to make the SecretsHelper more generic.

Recommended reading order

  1. airbyte-config/config-persistence/src/main/java/io/airbyte/config/persistence/split_secrets/SecretsHelpers.java
  2. Everything else

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.

Looks good to me. Appreciate updating the comments.

@benmoriceau looks these classes best, so definitely want him to approve before merging.

Copy link
Contributor

@benmoriceau benmoriceau left a comment

Choose a reason for hiding this comment

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

LGTM

@mfsiega-airbyte mfsiega-airbyte merged commit 069eb96 into master Oct 10, 2022
@mfsiega-airbyte mfsiega-airbyte deleted the msiega/dbt-cloud-impl branch October 10, 2022 20:52
jhammarstedt pushed a commit to jhammarstedt/airbyte that referenced this pull request Oct 31, 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.

3 participants