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

chore(data-warehouse): make salt keys a list #23127

Merged
merged 5 commits into from
Jun 21, 2024
Merged

chore(data-warehouse): make salt keys a list #23127

merged 5 commits into from
Jun 21, 2024

Conversation

EDsCODE
Copy link
Member

@EDsCODE EDsCODE commented Jun 20, 2024

Problem

  • can't rotate keys

Changes

  • make the keys a list so we can rotate them
  • TODO: get rid of credential duplicates

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Does this work well for both Cloud and self-hosted?

How did you test this code?

@EDsCODE EDsCODE requested a review from Gilbert09 June 20, 2024 17:06
@@ -145,6 +145,7 @@ async def validate_schema_and_update_table(
# create or update
table_created: DataWarehouseTable | None = await get_table_by_schema_id(_schema_id, team_id)
if table_created:
table_created.credential = data.get("credential")
Copy link
Member Author

Choose a reason for hiding this comment

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

will save new credential to the table

@EDsCODE EDsCODE merged commit dc4942e into master Jun 21, 2024
84 checks passed
@EDsCODE EDsCODE deleted the dw-salt-keys branch June 21, 2024 20:08
thmsobrmlr pushed a commit that referenced this pull request Jun 24, 2024
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.

2 participants