forked from pixie-io/pixie
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PC-1140 - Encrypt deployment keys at rest
Summary: This encrypts deployment keys are rest. Does not drop exsiting keys, which will be done next. We use a secondary hash to speed up searches. Test Plan: N/A Reviewers: michelle, vihang Reviewed By: michelle JIRA Issues: PC-1140 Differential Revision: https://phab.corp.pixielabs.ai/D9558 GitOrigin-RevId: 17c4f2c
- Loading branch information
1 parent
5025bb7
commit c5cc0d5
Showing
5 changed files
with
82 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/cloud/vzmgr/schema/000024_add_encrypted_deployment_key.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
DROP INDEX idx_vizier_deployment_keys_hashed_key; | ||
|
||
ALTER TABLE vizier_deployment_keys | ||
DROP COLUMN hashed_key; | ||
|
||
ALTER TABLE vizier_deployment_keys | ||
DROP COLUMN encrypted_key; |
9 changes: 9 additions & 0 deletions
9
src/cloud/vzmgr/schema/000024_add_encrypted_deployment_key.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ALTER TABLE vizier_deployment_keys | ||
ADD COLUMN encrypted_key bytea; | ||
|
||
-- Hashed key stores a salted and hashed key that we can use for associative lookup. | ||
ALTER TABLE vizier_deployment_keys | ||
ADD COLUMN hashed_key bytea; | ||
|
||
CREATE INDEX idx_vizier_deployment_keys_hashed_key | ||
ON vizier_deployment_keys(hashed_key); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.