Sign-ups solve a proof of work
Live on preview.zitadel.comReleased in v0.7.0
Sign-up through the Flow API is now protected by a built-in proof of work: the browser solves a short challenge before the server creates the user, each proof works once, and every flow has a retry limit. <zitadel-login> solves it for you. For a sign-up client of your own, solveSignupPow from @zitadel/components solves it.
zitadel setupwrites the sign-up policy,.zitadel/policies/user.create.json, beside the password policy. It names the challenge, which applies with or without the file. Deploy it like any other policy;POST /policiesandzitadel policy testtakeuser.createtoo.- A headless client fetches the current step, solves
step.gates.signup_pow, and submits the result asgate_proofs.signup_powwith the password or with the passkey's attestation.
Breaking: the server refuses a password sign-up, or a passkey registration that creates the user, without a proof (403 flow.proof_invalid). <zitadel-login> before 0.7.0 sends none, so upgrade @zitadel/components, or the SDK that pins it, together with the server. On preview.zitadel.com this applies from the date above.