zitadel/internal/api/grpc
Tim Möhlmann 5fd2061770
feat(oidc): allow returning of parent errors to client (#8376)
# Which Problems Are Solved

Currently the OIDC API of ZITADEL only prints parent errors to the logs.
Where 4xx status are typically warn level and 5xx error level. This
makes it hard to debug certain errors for client in multi-instance
environments like ZITADEL cloud, where there is no direct access to
logs. In case of support requests we often can't correlate past
log-lines to the error that was reported.

This change adds the possibility to return the parent error in the
response to the OIDC client. For the moment this only applies to JSON
body responses, not error redirects to the RP.

# How the Problems Are Solved

- New instance-level feature flag: `debug_oidc_parent_error`
- Use the new `WithReturnParentToClient()` function from the oidc lib
introduced in https://github.com/zitadel/oidc/pull/629 for all cases
where `WithParent` was already used and the request context is
available.

# Additional Changes

none

# Additional Context

- Depends on: https://github.com/zitadel/oidc/pull/629
- Related to: https://github.com/zitadel/zitadel/issues/8362

---------

Co-authored-by: Livio Spring <livio.a@gmail.com>
2024-08-20 06:45:24 +00:00
..
action feat(v3alpha): write actions (#8225) 2024-07-31 14:42:12 +02:00
admin feat: org v2 ListOrganizations (#8411) 2024-08-15 06:37:06 +02:00
auth feat: org v2 ListOrganizations (#8411) 2024-08-15 06:37:06 +02:00
authn chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
change refactor(fmt): run gci on complete project (#7557) 2024-04-03 10:43:43 +00:00
client/middleware refactor(fmt): run gci on complete project (#7557) 2024-04-03 10:43:43 +00:00
event refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
feature feat(oidc): allow returning of parent errors to client (#8376) 2024-08-20 06:45:24 +00:00
gerrors fix: exclude db connection error details (#7785) 2024-04-23 08:35:25 +00:00
idp feat: idp v2 api GetIDPByID (#8425) 2024-08-14 18:18:29 +00:00
instance feat: trusted (instance) domains (#8369) 2024-07-31 18:00:38 +03:00
management feat: org v2 ListOrganizations (#8411) 2024-08-15 06:37:06 +02:00
member refactor: cleanup unused code (#7130) 2024-01-02 14:26:31 +00:00
metadata fix(api): correct mapping of metadata queries (#7609) 2024-03-21 14:56:58 +00:00
object feat: api v2beta to api v2 (#8283) 2024-07-26 22:39:55 +02:00
oidc feat: trusted (instance) domains (#8369) 2024-07-31 18:00:38 +03:00
org feat: org v2 ListOrganizations (#8411) 2024-08-15 06:37:06 +02:00
policy feat(cnsl): docs link can be customized and custom button is available (#7840) 2024-05-13 16:01:50 +02:00
project feat(oidc): token exchange impersonation (#7516) 2024-03-20 10:18:46 +00:00
resources feat(v3alpha): web key resource (#8262) 2024-08-14 14:18:14 +00:00
server feat(v3alpha): read actions (#8357) 2024-08-12 22:32:01 +02:00
session feat: api v2beta to api v2 (#8283) 2024-07-26 22:39:55 +02:00
settings feat: trusted (instance) domains (#8369) 2024-07-31 18:00:38 +03:00
system feat(v3alpha): read actions (#8357) 2024-08-12 22:32:01 +02:00
text feat: password age policy (#8132) 2024-06-18 11:27:44 +00:00
user fix: add information about target response into error message if inte… (#8281) 2024-08-16 11:26:15 +02:00
config.go remove pointers on configs 2020-03-27 13:57:16 +01:00
fields.go fix: provide more information in the retrieve idp information (#5927) 2023-06-20 14:39:50 +02:00
header_test.go remove negated integration tags 2023-04-26 19:55:13 +03:00
header.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
probes_test.go add server reflection to Probes list 2023-05-07 16:47:43 +02:00
probes.go add server reflection to Probes list 2023-05-07 16:47:43 +02:00