pomerium/authorize
Kenneth Jenkins 4698e4661a
authorize: omit client cert rule when not needed (#4386)
Currently we always add an invalid_client_certificate deny rule to all
PPL policies. Instead, let's add this rule only when a client CA is
configured. This way, if a user is not using client certificates at all,
they won't see any reason strings related to client certificates in the
authorize logs.

Change the "valid-client-certificate-or-none-required" reason string to
just "valid-client-certificate" accordingly.

Pass the main Evaluator config to NewPolicyEvaluator so that we can
determine whether there is a client CA configured or not. Extract the
existing default deny rule to a separate method. Add unit tests
exercising the new behavior.
2023-07-24 15:27:57 -07:00
..
evaluator authorize: omit client cert rule when not needed (#4386) 2023-07-24 15:27:57 -07:00
internal/store authorize: move sign out and jwks urls to route, update issuer for JWT (#4046) 2023-03-08 12:40:15 -07:00
access_tracker.go sets: convert set types to generics (#3519) 2022-07-29 12:32:17 -06:00
access_tracker_test.go databroker: add support for putting multiple records (#3291) 2022-04-26 16:41:38 -06:00
authorize.go keep trace span context (#3724) 2022-11-04 17:52:13 -04:00
authorize_test.go log context (#2107) 2021-04-22 10:58:13 -04:00
check_response.go authorize: do not redirect if invalid client cert (#4344) 2023-07-10 16:39:26 -07:00
check_response_test.go authorize: do not redirect if invalid client cert (#4344) 2023-07-10 16:39:26 -07:00
databroker.go authorize: fix user caching (#3734) 2022-11-08 08:23:41 -07:00
databroker_test.go authorize: fix user caching (#3734) 2022-11-08 08:23:41 -07:00
grpc.go authorize: incorporate mTLS validation from Envoy (#4374) 2023-07-21 12:17:01 -07:00
grpc_test.go authorize: incorporate mTLS validation from Envoy (#4374) 2023-07-21 12:17:01 -07:00
log.go config: add customization options for logging (#4383) 2023-07-24 13:17:03 -06:00
state.go authenticate: fix authenticate_internal_service_url for all in one (#4003) 2023-02-22 10:42:27 -05:00