pomerium/internal/databroker
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
..
config.go registry: implement redis backend (#2179) 2021-05-10 10:33:37 -06:00
config_source.go Optimize policy iterators (#5184) 2024-08-20 12:35:10 -04:00
config_source_test.go databroker: build config concurrently, option to bypass validation (#4655) 2023-11-06 13:21:29 -05:00
registry.go databroker: remove redis storage backend (#4699) 2023-11-02 11:53:25 -07:00
server.go core/logging: less verbose logs (#5040) 2024-03-29 15:26:20 -06:00
server_test.go databroker: add patch method (#4704) 2023-11-02 15:07:37 -07:00