-
Notifications
You must be signed in to change notification settings - Fork 30
fix: fix Azure Byok #696
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
fix: fix Azure Byok #696
Conversation
| const kidTag = tags.find((t: string) => t.startsWith("kid:")); | ||
| if (!kidTag) { | ||
| setRes( | ||
| "The KEK is not an Azure Key Encryption Key: Azure kid not found. Import it using the Import KEK command." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
normal users don't need details
| import { useAuth } from "./AuthContext"; | ||
| import { downloadFile, sendKmipRequest } from "./utils"; | ||
| import { AZURE_BYOK_TAG } from "./AzureImportKek"; | ||
| import * as wasm from "./wasm/pkg"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was done in pupose (like many other files on the repo) as it has 0 effect of the final compiled code but makes it way more evident for someone who debugs to find wasm functions
| } | ||
| }, [res]); | ||
|
|
||
| const onFinish = async (values: ExportAzureBYOKFormData) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"values" is confusing word
| <Space direction="vertical" size="middle" style={{ display: "flex" }}> | ||
| <Card> | ||
| <h3 className="text-m font-bold mb-4">Key Identifiers (required)</h3> | ||
| <h3 className="text-m font-bold mb-4">Key Identifiers in this KMS (required)</h3> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added "in this KMS" to make things way more intuitive as an user who is exporting a key to multiple providers ("byok") gets very easely lost since each of them has his own vocab
| tags, | ||
| keyUsage, | ||
| undefined // wrappingKeyId | ||
| undefined, // wrappingKeyId |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there might be a delta in the formatting rules
please ignore this for now, we can merge. I will adress lint/formatter in a later PR
Fixes some bug that made it not possible to export azure byok keys
I am aware of the fomatting diffs. I will normalize that in a later PR.