zitadel/internal/crypto
Silvan 17953e9040
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.
2024-01-25 17:28:20 +01:00
..
database fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
file chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
aes_test.go add multi files config test and some more 2020-03-30 11:44:17 +02:00
aes.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
bcrypt.go improve some functions 2020-03-30 09:28:00 +02:00
code_mock.go chore(Makefile): add go generate target (#6944) 2023-11-22 10:56:43 +00:00
code_mocker.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
code_test.go chore(Makefile): add go generate target (#6944) 2023-11-22 10:56:43 +00:00
code.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
crypto_mock.go chore(Makefile): add go generate target (#6944) 2023-11-22 10:56:43 +00:00
crypto_test.go improve some functions 2020-03-30 09:28:00 +02:00
crypto.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
generate.go refactor crypto tests 2020-03-30 11:26:02 +02:00
key_storage.go fix(db): always use begin tx (#7142) 2024-01-04 16:12:20 +00:00
key.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
passwap_test.go fix(crypto): allow parsing of cost int from env string (#7061) 2023-12-15 11:16:05 +00:00
passwap.go fix(crypto): allow parsing of cost int from env string (#7061) 2023-12-15 11:16:05 +00:00
rsa.go feat(saml): implementation of saml for ZITADEL v2 (#3618) 2022-09-12 18:18:08 +02:00