zitadel/internal/api/grpc/server
Livio Spring 4552fe7d99
fix: potential panics in login and return proper http 405 (#8065)
# Which Problems Are Solved

We identified some parts in the code, which could panic with a nil
pointer when accessed without auth request.
Additionally, if a GRPC method was called with an unmapped HTTP method,
e.g. POST instead of GET a 501 instead of a 405 was returned.

# How the Problems Are Solved

- Additional checks for existing authRequest
- custom http status code mapper for gateway

# Additional Changes

None.

# Additional Context

- noted internally in OPS

(cherry picked from commit 26c7d95c88)
2024-06-12 08:43:47 +02:00
..
middleware feat: add action v2 execution on requests and responses (#7637) 2024-05-04 11:55:57 +02:00
gateway.go fix: potential panics in login and return proper http 405 (#8065) 2024-06-12 08:43:47 +02:00
probes_test.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
probes.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
server.go feat: add action v2 execution on requests and responses (#7637) 2024-05-04 11:55:57 +02:00