Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Increase random size
Daniel Hougaard9287eb703120
diff --git a/backend/src/services/org/org-service.ts b/backend/src/services/org/org-service.tsindex bbc8fe7a6a..0f96b66bab 100644--- a/backend/src/services/org/org-service.ts+++ b/backend/src/services/org/org-service.ts@@ -133,7 +133,7 @@ export const orgServiceFactory = ({};const addGhostUser = async (orgId: string, tx?: Knex) => {- const email = `ghost@${nanoid(8)}-${orgId}.com`; // We add a nanoid because the email is unique. And we have to create a new ghost user each time, so we can have access to the private key.+ const email = `ghost@${nanoid(16)}-${orgId}.com`; // We add a nanoid because the email is unique. And we have to create a new ghost user each time, so we can have access to the private key.const password = crypto.randomBytes(128).toString("hex");const user = await userDAL.create(