zitadel/internal/repository/user
Silvan d3bb9c9b3b
fix(setup): init projections (#7194)
Even though this is a feature it's released as fix so that we can back port to earlier revisions.

As reported by multiple users startup of ZITADEL after leaded to downtime and worst case rollbacks to the previously deployed version.

The problem starts rising when there are too many events to process after the start of ZITADEL. The root cause are changes on projections (database tables) which must be recomputed. This PR solves this problem by adding a new step to the setup phase which prefills the projections. The step can be enabled by adding the `--init-projections`-flag to `setup`, `start-from-init` and `start-from-setup`. Setting this flag results in potentially longer duration of the setup phase but reduces the risk of the problems mentioned in the paragraph above.

(cherry picked from commit 17953e9040)
2024-01-26 07:41:11 +01:00
..
aggregate.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
auth_request_info.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
eventstore.go fix(setup): init projections (#7194) 2024-01-26 07:41:11 +01:00
human_address.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
human_avatar.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
human_email.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
human_external_idp.go fix: update external username on idp if auto update is enabled (#7048) 2023-12-08 18:22:07 +01:00
human_mfa_events.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
human_mfa_otp.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
human_mfa_passwordless.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
human_mfa_u2f.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
human_mfa_web_auth_n.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
human_password.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
human_phone.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
human_profile.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
human_refresh_token.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
human.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
machine_key.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
machine_secret.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
machine.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
metadata.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
personal_access_token.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
user.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
v1.go fix: password hash update and add missing i18n (#6285) 2023-07-28 09:09:15 +02:00