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

Introduce secrets management into workspace persistence #17851

Merged
merged 3 commits into from
Oct 12, 2022

Conversation

mfsiega-airbyte
Copy link
Contributor

What

Introduce secrets management into workspace persistence.

This prepares for a follow-up PR which will introduce actually secrets -- webhook auth tokens -- into the workspace table.

This PR should be a behavioural no-op.

How

  • Rename the ConfigRepository.writeStandardWorkspace -> ConfigRepository.writeStandardWorkspaceNoSecrets, plus documentation that it shouldn't be used directly.
  • Rename the ConfigRepository.getStandardWorkspace -> ConfigRepository.getStandardWorkspaceNoSecrets for clarity.
  • Add workspace read/write methods to the SecretsRespository[Reader|Writer]
  • Use SecretsRepositoryWriter in workspace handler.

Recommended reading order

  1. airbyte-config/config-persistence/src/main/java/io/airbyte/config/persistence/SecretsRepositoryReader.java
  2. airbyte-config/config-persistence/src/main/java/io/airbyte/config/persistence/SecretsRepositoryWriter.java
  3. airbyte-server/src/main/java/io/airbyte/server/handlers/WorkspacesHandler.java

The rest is mostly no-op refactor.

@github-actions github-actions bot added area/platform issues related to the platform area/server labels Oct 11, 2022
@mfsiega-airbyte mfsiega-airbyte requested review from a team, terencecho and davinchia and removed request for a team October 11, 2022 16:44
*
* @param workspace - The configuration of the workspace
* @throws JsonValidationException - throws is the workspace is invalid
* @throws IOException - you never know when you IO
Copy link
Contributor

Choose a reason for hiding this comment

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

😆

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@terencecho I can't claim credit for this one, I stole it from elsewhere in this file :)

@mfsiega-airbyte mfsiega-airbyte merged commit 490f0ca into master Oct 12, 2022
@mfsiega-airbyte mfsiega-airbyte deleted the msiega/dbt-cloud-impl2 branch October 12, 2022 14:07
jhammarstedt pushed a commit to jhammarstedt/airbyte that referenced this pull request Oct 31, 2022
)

* no-op refactor: rename getStandardWorkspace to prepare to introduce secrets

* no-op refactor: rename writeStandardWorkspace to prepare to introduce secrets

* introduce secrets management into workspace persistence
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.

2 participants