mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 15:26:35 +00:00
Merge pull request #1951 from akhilmhdh/fix/password-state-stuck
fix: stuck on password step resolved
This commit is contained in:
@@ -93,27 +93,29 @@ const initProjectHelper = async ({ projectName }: { projectName: string }) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
secrets?.forEach((secret) => {
|
await Promise.allSettled(
|
||||||
createSecret({
|
(secrets || []).map((secret) =>
|
||||||
workspaceId: project.id,
|
createSecret({
|
||||||
environment: secret.environment,
|
workspaceId: project.id,
|
||||||
type: secret.type,
|
environment: secret.environment,
|
||||||
secretKey: secret.secretName,
|
type: secret.type,
|
||||||
secretKeyCiphertext: secret.secretKeyCiphertext,
|
secretKey: secret.secretName,
|
||||||
secretKeyIV: secret.secretKeyIV,
|
secretKeyCiphertext: secret.secretKeyCiphertext,
|
||||||
secretKeyTag: secret.secretKeyTag,
|
secretKeyIV: secret.secretKeyIV,
|
||||||
secretValueCiphertext: secret.secretValueCiphertext,
|
secretKeyTag: secret.secretKeyTag,
|
||||||
secretValueIV: secret.secretValueIV,
|
secretValueCiphertext: secret.secretValueCiphertext,
|
||||||
secretValueTag: secret.secretValueTag,
|
secretValueIV: secret.secretValueIV,
|
||||||
secretCommentCiphertext: secret.secretCommentCiphertext,
|
secretValueTag: secret.secretValueTag,
|
||||||
secretCommentIV: secret.secretCommentIV,
|
secretCommentCiphertext: secret.secretCommentCiphertext,
|
||||||
secretCommentTag: secret.secretCommentTag,
|
secretCommentIV: secret.secretCommentIV,
|
||||||
secretPath: "/",
|
secretCommentTag: secret.secretCommentTag,
|
||||||
metadata: {
|
secretPath: "/",
|
||||||
source: "signup"
|
metadata: {
|
||||||
}
|
source: "signup"
|
||||||
});
|
}
|
||||||
});
|
})
|
||||||
|
)
|
||||||
|
);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error("Failed to upload secrets", err);
|
console.error("Failed to upload secrets", err);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user