mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-09 15:38:03 -05:00
requested changes
This commit is contained in:
@@ -64,6 +64,6 @@ export type TGetServerRootKmsEncryptionDetails = {
|
||||
};
|
||||
|
||||
export enum RootKeyEncryptionStrategy {
|
||||
Basic = "BASIC",
|
||||
Hsm = "HSM"
|
||||
Software = "SOFTWARE",
|
||||
HSM = "HSM"
|
||||
}
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
import { useCallback } from "react";
|
||||
|
||||
export const useFileDownload = () => {
|
||||
return useCallback((content: string, filename: string) => {
|
||||
const downloadUrl = `data:text/plain;charset=utf-8,${encodeURIComponent(content)}`;
|
||||
const link = document.createElement("a");
|
||||
link.href = downloadUrl;
|
||||
link.setAttribute("download", filename);
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
link.remove();
|
||||
}, []);
|
||||
};
|
||||
@@ -38,7 +38,7 @@ export const EncryptionPanel = ({ rootKmsDetails }: Props) => {
|
||||
values: {
|
||||
encryptionStrategy:
|
||||
rootKmsDetails?.strategies?.find((s) => s.enabled)?.strategy ??
|
||||
RootKeyEncryptionStrategy.Basic
|
||||
RootKeyEncryptionStrategy.Software
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user