pomerium/internal
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
..
atomicutil
authenticateflow authenticate: rework session ID token handling (#5178) 2024-07-29 12:43:50 -07:00
autocert Optimize policy iterators (#5184) 2024-08-20 12:35:10 -04:00
chanutil
contextkeys
controlplane envoy: log mtls failures (#5210) 2024-08-09 14:05:10 -04:00
databroker Optimize policy iterators (#5184) 2024-08-20 12:35:10 -04:00
deterministicecdsa core/ci: update linting (#4844) 2023-12-14 09:07:54 -08:00
enabler core/lint: upgrade golangci-lint, replace interface{} with any (#5099) 2024-05-02 14:33:52 -06:00
encoding core/lint: upgrade golangci-lint, replace interface{} with any (#5099) 2024-05-02 14:33:52 -06:00
errgrouputil core/go: use max procs (#4766) 2023-12-07 09:14:57 -07:00
events core/events: fix flaky test (#4700) 2023-11-02 11:28:28 -06:00
fileutil core/ci: update linting (#4844) 2023-12-14 09:07:54 -08:00
handlers core/ui: fix cycle in profile data (#5168) 2024-07-09 17:05:12 -06:00
hashutil core/lint: upgrade golangci-lint, replace interface{} with any (#5099) 2024-05-02 14:33:52 -06:00
httputil Optimize policy iterators (#5184) 2024-08-20 12:35:10 -04:00
log envoy: log mtls failures (#5210) 2024-08-09 14:05:10 -04:00
middleware core/lint: upgrade golangci-lint, replace interface{} with any (#5099) 2024-05-02 14:33:52 -06:00
registry core/redis: remove comment (#4843) 2023-12-07 15:55:02 -07:00
retry zero/telemetry: internal envoy stats scraper and metrics producer (#5136) 2024-06-16 20:41:05 -04:00
scheduler
sessions Update to Go 1.23 (#5216) 2024-08-14 14:12:01 -04:00
sets zero/telemetry: calculate DAU and MAU (#4810) 2023-12-11 13:37:01 -05:00
signal
syncutil config: generate cookie secret if not set in all-in-one mode (#3742) 2022-11-11 14:14:30 -07:00
telemetry Update to Go 1.23 (#5216) 2024-08-14 14:12:01 -04:00
tests/xdserr config: remove source, remove deadcode, fix linting issues (#4118) 2023-04-21 17:25:11 -06:00
testutil core/lint: upgrade golangci-lint, replace interface{} with any (#5099) 2024-05-02 14:33:52 -06:00
tripper config: remove source, remove deadcode, fix linting issues (#4118) 2023-04-21 17:25:11 -06:00
urlutil core/lint: upgrade golangci-lint, replace interface{} with any (#5099) 2024-05-02 14:33:52 -06:00
version ci: do not include timestamp into buildmeta (#5215) 2024-08-15 10:57:10 -04:00
zero core/grpc: add IterateAll method (#5227) 2024-08-20 09:34:26 -06:00