mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 14:28:20 +00:00
requested changes
This commit is contained in:
@@ -66,7 +66,6 @@ export const useDeleteCmek = () => {
|
|||||||
export const useCmekEncrypt = () => {
|
export const useCmekEncrypt = () => {
|
||||||
return useMutation({
|
return useMutation({
|
||||||
mutationFn: async ({ keyId, plaintext, isBase64Encoded }: TCmekEncrypt) => {
|
mutationFn: async ({ keyId, plaintext, isBase64Encoded }: TCmekEncrypt) => {
|
||||||
console.log("CALLING CMEK ENCRYPT");
|
|
||||||
const { data } = await apiRequest.post<TCmekEncryptResponse>(
|
const { data } = await apiRequest.post<TCmekEncryptResponse>(
|
||||||
`/api/v1/kms/keys/${keyId}/encrypt`,
|
`/api/v1/kms/keys/${keyId}/encrypt`,
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -49,15 +49,6 @@ export const SignUpPage = () => {
|
|||||||
// avoid multi submission
|
// avoid multi submission
|
||||||
if (isSubmitting) return;
|
if (isSubmitting) return;
|
||||||
try {
|
try {
|
||||||
console.log(
|
|
||||||
"Creating admin user...",
|
|
||||||
JSON.stringify({
|
|
||||||
email,
|
|
||||||
password,
|
|
||||||
fipsEnabled: config.fipsEnabled
|
|
||||||
})
|
|
||||||
);
|
|
||||||
|
|
||||||
const { privateKey, ...userPass } = await generateUserPassKey(
|
const { privateKey, ...userPass } = await generateUserPassKey(
|
||||||
email,
|
email,
|
||||||
password,
|
password,
|
||||||
|
|||||||
@@ -95,6 +95,7 @@ export const UserInfoSSOStep = ({
|
|||||||
if (!errorCheck) {
|
if (!errorCheck) {
|
||||||
// Generate a random pair of a public and a private key
|
// Generate a random pair of a public and a private key
|
||||||
const { publicKey, privateKey } = await generateKeyPair(config.fipsEnabled);
|
const { publicKey, privateKey } = await generateKeyPair(config.fipsEnabled);
|
||||||
|
localStorage.setItem("PRIVATE_KEY", privateKey);
|
||||||
|
|
||||||
client.init(
|
client.init(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user