zitadel/internal/api/grpc/management
Tim Möhlmann ba9b807854
perf(oidc): optimize the introspection endpoint (#6909)
* get key by id and cache them

* userinfo from events for v2 tokens

* improve keyset caching

* concurrent token and client checks

* client and project in single query

* logging and otel

* drop owner_removed column on apps and authN tables

* userinfo and project roles in go routines

* get  oidc user info from projections and add actions

* add avatar URL

* some cleanup

* pull oidc work branch

* remove storage from server

* add config flag for experimental introspection

* legacy introspection flag

* drop owner_removed column on user projections

* drop owner_removed column on useer_metadata

* query userinfo unit test

* query introspection client test

* add user_grants to the userinfo query

* handle PAT scopes

* bring triggers back

* test instance keys query

* add userinfo unit tests

* unit test keys

* go mod tidy

* solve some bugs

* fix missing preferred login name

* do not run triggers in go routines, they seem to deadlock

* initialize the trigger handlers late with a sync.OnceValue

* Revert "do not run triggers in go routines, they seem to deadlock"

This reverts commit 2a03da2127.

* add missing translations

* chore: update go version for linting

* pin oidc version

* parse a global time location for query test

* fix linter complains

* upgrade go lint

* fix more linting issues

---------

Co-authored-by: Stefan Benz <46600784+stebenz@users.noreply.github.com>
2023-11-21 13:11:38 +01:00
..
actions_converter.go fix: action query (#4257) 2022-08-26 08:38:41 +00:00
actions.go perf: remove owner removed columns from projections for oidc (#6925) 2023-11-20 17:21:08 +02:00
auth_checks.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
custom_text_converter.go feat: SMS and email OTP texts (#6281) 2023-08-09 05:49:12 +00:00
custom_text.go feat: SMS and email OTP texts (#6281) 2023-08-09 05:49:12 +00:00
flow.go perf: remove owner removed columns from projections for oidc (#6925) 2023-11-20 17:21:08 +02:00
iam.go fix(query): realtime data on defined requests (#3726) 2022-06-14 07:51:00 +02:00
idp_converter_test.go feat: V2 alpha import and export of organizations (#3798) 2022-07-28 13:42:35 +00:00
idp_converter.go feat: add SAML as identity provider (#6454) 2023-09-29 11:26:14 +02:00
idp.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
information.go merge main into next 2023-10-19 12:34:00 +02:00
language.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
oneof.go feat: protos refactoring 2021-03-09 10:30:11 +01:00
org_converter.go feat(org): add org metadata functionality (#4234) 2022-09-20 14:32:09 +00:00
org.go perf(oidc): optimize the introspection endpoint (#6909) 2023-11-21 13:11:38 +01:00
policy_label_converter.go feat: add attribute to only enable specific themes (#6798) 2023-10-26 05:54:09 +00:00
policy_label.go feat: remove org (#4148) 2022-11-30 17:01:17 +01:00
policy_lockout_converter.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
policy_lockout.go feat: remove org (#4148) 2022-11-30 17:01:17 +01:00
policy_login_converter.go feat: allow to force MFA local only (#6234) 2023-07-20 04:06:16 +00:00
policy_login.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
policy_notification.go feat: add notification policy and password change message (#5065) 2023-01-25 09:49:41 +01:00
policy_password_age_converter.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
policy_password_age.go feat: remove org (#4148) 2022-11-30 17:01:17 +01:00
policy_password_complexity_converter.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
policy_password_complexity.go feat: remove org (#4148) 2022-11-30 17:01:17 +01:00
policy_privacy_converter.go feat: add Help/Support e-mail for instance/org (#5445) 2023-03-28 21:36:52 +02:00
policy_privacy.go feat: remove org (#4148) 2022-11-30 17:01:17 +01:00
project_application_converter.go feat: allow skip of success page for native apps (#5627) 2023-04-11 15:07:32 +00:00
project_application.go perf(oidc): optimize the introspection endpoint (#6909) 2023-11-21 13:11:38 +01:00
project_converter.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
project_grant_converter.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
project_grant.go perf: remove owner removed columns from projections for oidc (#6925) 2023-11-20 17:21:08 +02:00
project.go perf: remove owner removed columns from projections for oidc (#6925) 2023-11-20 17:21:08 +02:00
replacer.md feat: protos refactoring 2021-03-09 10:30:11 +01:00
server.go feat: add activity logs on user actions with authentication, resource… (#6748) 2023-10-25 12:09:15 +00:00
user_converter.go feat(user/v1): support composite queries (#6361) 2023-11-09 11:38:34 +01:00
user_grant_converter.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
user_grant.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
user_integration_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
user.go perf(oidc): optimize the introspection endpoint (#6909) 2023-11-21 13:11:38 +01:00