pomerium/proxy
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
..
data.go core/proxy: handle missing session for user info endpoint (#4769) 2024-01-08 07:03:49 -07:00
handlers.go core/authorize: result denied improvements (#4952) 2024-02-01 16:16:33 -07:00
handlers_test.go core/authorize: result denied improvements (#4952) 2024-02-01 16:16:33 -07:00
proxy.go Optimize policy iterators (#5184) 2024-08-20 12:35:10 -04:00
proxy_test.go core/config: remove cookie secure option (#4907) 2024-01-12 13:28:14 -07:00
state.go core/config: remove cookie secure option (#4907) 2024-01-12 13:28:14 -07:00