pomerium/authorize
Kenneth Jenkins 2e7d1c7f12
authorize: refactor logAuthorizeCheck() (#5576)
Currently, policy evaluation and authorize logging are coupled to the
Envoy CheckRequest proto message (part of the ext_authz API). In the
context of ssh proxy authentication, we won't have a CheckRequest.
Instead, let's make the existing evaluator.Request type the source of
truth for the authorize log fields.

This way, whether we populate the evaluator.Request struct from an
ext_authz request or from an ssh proxy request, we can use the same
logAuthorizeCheck() method for logging.

Add some additional fields to evaluator.RequestHTTP for the authorize
log fields that are not currently represented in this struct.
2025-04-23 09:21:52 -07:00
..
checkrequest authorize: refactor logAuthorizeCheck() (#5576) 2025-04-23 09:21:52 -07:00
evaluator authorize: refactor logAuthorizeCheck() (#5576) 2025-04-23 09:21:52 -07:00
internal/store move internal/telemetry/trace => pkg/telemetry/trace (#5541) 2025-03-25 10:43:04 -04:00
access_tracker.go core/go: use hashicorp/go-set (#5278) 2024-10-03 12:59:11 -06:00
access_tracker_test.go core/lint: upgrade golangci-lint, replace interface{} with any (#5099) 2024-05-02 14:33:52 -06:00
authorize.go authorize: refactor logAuthorizeCheck() (#5576) 2025-04-23 09:21:52 -07:00
authorize_test.go upgrade to go v1.24 (#5562) 2025-04-02 15:53:09 -06:00
check_response.go authorize: refactor logAuthorizeCheck() (#5576) 2025-04-23 09:21:52 -07:00
check_response_grpc.go authorize: handle gRPC requests (#5400) 2024-12-19 08:46:53 -07:00
check_response_test.go mcp: add to route config, 401 when unauthenticated (#5578) 2025-04-22 11:47:09 -04:00
databroker.go proxy: use querier cache for user info (#5532) 2025-03-20 09:50:22 -06:00
databroker_test.go proxy: use querier cache for user info (#5532) 2025-03-20 09:50:22 -06:00
grpc.go authorize: refactor logAuthorizeCheck() (#5576) 2025-04-23 09:21:52 -07:00
grpc_test.go authorize: refactor logAuthorizeCheck() (#5576) 2025-04-23 09:21:52 -07:00
log.go authorize: refactor logAuthorizeCheck() (#5576) 2025-04-23 09:21:52 -07:00
log_test.go authorize: refactor logAuthorizeCheck() (#5576) 2025-04-23 09:21:52 -07:00
state.go storage: add sync querier (#5570) 2025-04-23 10:15:48 -06:00