pomerium/authorize
Joe Kralicky 56ba07e53e
Optimize policy iterators (#5184)
* Optimize policy iterators (go1.23)

This modifies (*Options).GetAllPolicies() to use a go 1.23 iterator
instead of copying all policies on every call, which can be extremely
expensive. All existing usages of this function were updated as
necessary.

Additionally, a new (*Options).NumPolicies() method was added which
quickly computes the number of policies that would be given by
GetAllPolicies(), since there were several usages where only the
number of policies was needed.

* Fix race condition when assigning default envoy opts to a policy
2024-08-20 12:35:10 -04:00
..
evaluator Optimize policy iterators (#5184) 2024-08-20 12:35:10 -04:00
internal/store Optimize policy iterators (#5184) 2024-08-20 12:35:10 -04:00
access_tracker.go rework session updates to use new patch method (#4705) 2023-11-06 09:43:07 -08: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 Optimize policy iterators (#5184) 2024-08-20 12:35:10 -04:00
authorize_test.go authenticateflow: move stateless flow logic (#4820) 2023-12-06 16:55:57 -08:00
check_response.go core/authorize: result denied improvements (#4952) 2024-02-01 16:16:33 -07:00
check_response_test.go core/telemetry: move requestid to pkg directory (#4911) 2024-01-19 13:18:16 -07:00
databroker.go core/authorize: check for expired tokens (#4543) 2023-09-15 16:06:13 -06:00
databroker_test.go core/authorize: check for expired tokens (#4543) 2023-09-15 16:06:13 -06:00
grpc.go Optimize policy iterators (#5184) 2024-08-20 12:35:10 -04:00
grpc_test.go Update to Go 1.23 (#5216) 2024-08-14 14:12:01 -04:00
log.go authorize: log service account user ID (#4964) 2024-02-27 14:01:19 -08:00
log_test.go authorize: log service account user ID (#4964) 2024-02-27 14:01:19 -08:00
state.go support both stateful and stateless authenticate (#4765) 2023-12-07 14:24:13 -08:00