zitadel/internal/api/authz
Tim Möhlmann 32bad3feb3
Some checks are pending
ZITADEL CI/CD / core (push) Waiting to run
ZITADEL CI/CD / console (push) Waiting to run
ZITADEL CI/CD / version (push) Waiting to run
ZITADEL CI/CD / compile (push) Blocked by required conditions
ZITADEL CI/CD / core-unit-test (push) Blocked by required conditions
ZITADEL CI/CD / core-integration-test (push) Blocked by required conditions
ZITADEL CI/CD / lint (push) Blocked by required conditions
ZITADEL CI/CD / container (push) Blocked by required conditions
ZITADEL CI/CD / e2e (push) Blocked by required conditions
ZITADEL CI/CD / release (push) Blocked by required conditions
Code Scanning / CodeQL-Build (go) (push) Waiting to run
Code Scanning / CodeQL-Build (javascript) (push) Waiting to run
perf(milestones): refactor (#8788)
# Which Problems Are Solved

Milestones used existing events from a number of aggregates. OIDC
session is one of them. We noticed in load-tests that the reduction of
the oidc_session.added event into the milestone projection is a costly
business with payload based conditionals. A milestone is reached once,
but even then we remain subscribed to the OIDC events. This requires the
projections.current_states to be updated continuously.


# How the Problems Are Solved

The milestone creation is refactored to use dedicated events instead.
The command side decides when a milestone is reached and creates the
reached event once for each milestone when required.

# Additional Changes

In order to prevent reached milestones being created twice, a migration
script is provided. When the old `projections.milestones` table exist,
the state is read from there and `v2` milestone aggregate events are
created, with the original reached and pushed dates.

# Additional Context

- Closes https://github.com/zitadel/zitadel/issues/8800
2024-10-28 08:29:34 +00:00
..
access_token_test.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
access_token.go feat: add SYSTEM_OWNER role (#6765) 2023-10-25 15:10:45 +00:00
api_token_verifier.go feat: add SYSTEM_OWNER role (#6765) 2023-10-25 15:10:45 +00:00
authorization_test.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
authorization.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
config.go feat: user v2alpha email API (#5708) 2023-04-25 09:02:29 +02:00
context_mock.go feat(api): add OIDC session service (#6157) 2023-07-10 13:27:00 +00:00
context.go fix(API): select org context by domain (#8706) 2024-10-02 06:38:54 +00:00
detach.go perf: query data AS OF SYSTEM TIME (#5231) 2023-02-27 22:36:43 +01:00
instance_test.go feat: trusted (instance) domains (#8369) 2024-07-31 18:00:38 +03:00
instance.go perf(milestones): refactor (#8788) 2024-10-28 08:29:34 +00:00
membertype_enumer.go feat: add SYSTEM_OWNER role (#6765) 2023-10-25 15:10:45 +00:00
permissions_test.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
permissions.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
session_token.go fix(oidc): return bad request for base64 errors (#7730) 2024-04-09 08:42:59 +02:00
system_token.go fix: race condition in system jwt signature check (#8618) 2024-09-13 17:18:37 +02:00
user.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00