Skip to content

Conversation

@HatemMn
Copy link
Contributor

@HatemMn HatemMn commented Jan 28, 2026

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.

@HatemMn HatemMn requested review from Manuthor and bgrieder January 28, 2026 17:21
@HatemMn HatemMn closed this Jan 29, 2026
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."
Copy link
Contributor Author

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";
Copy link
Contributor Author

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) => {
Copy link
Contributor Author

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>
Copy link
Contributor Author

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
Copy link
Contributor Author

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

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