pomerium/internal/autocert
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
..
certmagic_logger.go core/logging: less verbose logs (#5040) 2024-03-29 15:26:20 -06:00
certmagic_logger_test.go autocert: use new OCSP error type (#4437) 2023-08-04 14:41:25 -07:00
manager.go Optimize policy iterators (#5184) 2024-08-20 12:35:10 -04:00
manager_test.go core/autocert: fix filter chain, handshake (#5150) 2024-06-26 11:17:35 -06:00
ocsp.go upgrade to golang-lru v2 (#3771) 2022-12-02 09:25:52 -07:00
ocsp_test.go ocsp: reload on ocsp response changes (#2286) 2021-06-11 15:58:01 -04:00
storage.go core/lint: upgrade golangci-lint, replace interface{} with any (#5099) 2024-05-02 14:33:52 -06:00
storage_gcs.go autocert: add support for storage in gcs (#3794) 2022-12-09 08:22:32 -07:00
storage_locker.go autocert: add support for storage in gcs (#3794) 2022-12-09 08:22:32 -07:00
storage_s3.go chore(deps): bump github.com/aws/aws-sdk-go-v2 from 1.22.2 to 1.24.0 (#4840) 2023-12-28 08:40:54 -07:00
storage_test.go autocert: add support for storage in gcs (#3794) 2022-12-09 08:22:32 -07:00