-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat(kms): bulk import keys #6089
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
Open
victorvhs017
wants to merge
7
commits into
main
Choose a base branch
from
feature/kms-bulk-import
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
680fcff
feat: implement bulk import functionality for KMS keys
74c405d
feat: enhance audit log and validation for KMS bulk import
bd5873c
updated types
c34b1e1
Merge branch 'main' into feature/kms-bulk-import
9e318e1
feat(kms): add bulk export and import functionality for key management
8580057
feat(cmek): enhance validation for key material in bulk import
1c832c8
styling: import alert / expected format adjustments
scott-ray-wilson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -354,6 +354,57 @@ In the following steps, we explore how to verify data using an existing key in I | |
| </Tab> | ||
| </Tabs> | ||
|
|
||
| ## Bulk Export & Import | ||
|
|
||
| Infisical KMS supports bulk export and bulk import of key material, allowing you to export multiple keys at once or import keys in bulk from an external file. | ||
|
|
||
| ### Bulk Export | ||
|
|
||
| 1. Navigate to **Project > Key Management**. | ||
| 2. Use the checkboxes to select the keys you want to export (up to 100 at a time). | ||
| 3. Click the **Export** button that appears in the action bar above the table. | ||
|  | ||
| 4. A `.json` file is downloaded containing the key metadata and key material. | ||
|
|
||
| The exported file is a JSON array where each entry is one of the following shapes: | ||
|
|
||
| ```json | ||
| // Encrypt/Decrypt key | ||
| { | ||
| "name": "my-aes-key", | ||
| "keyType": "encrypt-decrypt", | ||
| "algorithm": "aes-256-gcm", | ||
| "keyMaterial": "<base64-encoded key material>" | ||
| } | ||
|
|
||
| // Sign/Verify key | ||
| { | ||
| "name": "my-rsa-key", | ||
| "keyType": "sign-verify", | ||
| "algorithm": "rsa-4096", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| "privateKey": "<base64-encoded private key>", | ||
| "publicKey": "<base64-encoded public key>" | ||
| } | ||
| ``` | ||
|
|
||
| <Warning> | ||
| The exported file contains sensitive cryptographic key material. Store it securely and do not share it. | ||
| </Warning> | ||
|
|
||
| ### Bulk Import | ||
|
|
||
| 1. Navigate to **Project > Key Management**. | ||
| 2. In the top-right of the keys table, click the dropdown arrow next to **Add Key** and select **Import Keys**. | ||
| 3. Upload a `.json` file matching the export format described above (drag and drop, or click to browse). | ||
|  | ||
| 4. A preview of the keys to be imported is shown, along with any validation errors. | ||
|  | ||
| 5. Click **Import** to create the keys in the project. | ||
|
|
||
| <Note> | ||
| Importing creates new key entries. It does not overwrite existing keys with the same name. | ||
| </Note> | ||
|
|
||
| ## FAQ | ||
|
|
||
| <AccordionGroup> | ||
|
|
||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: your nord pass is showing 😏 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-600 KB
(36%)
docs/images/platform/kms/infisical-kms/kms-decrypt-options.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-384 KB
(34%)
docs/images/platform/kms/infisical-kms/kms-decrypted-data.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-388 KB
(34%)
docs/images/platform/kms/infisical-kms/kms-encrypted-data.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-454 Bytes
(100%)
docs/images/platform/kms/infisical-kms/signing/add-new-rsa-key.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-8.57 KB
(97%)
docs/images/platform/kms/infisical-kms/signing/copy-signature.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.62 KB
(100%)
docs/images/platform/kms/infisical-kms/signing/sign-data-modal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+67.5 KB
(120%)
docs/images/platform/kms/infisical-kms/signing/sign-options.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+432 Bytes
(100%)
docs/images/platform/kms/infisical-kms/signing/signature-verified.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-37.9 KB
(88%)
docs/images/platform/kms/infisical-kms/signing/verify-data-modal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Uh oh!
There was an error while loading. Please reload this page.