pomerium/authorize/evaluator
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
..
opa core/authorize: use uuid for jti, current time for iat and exp (#5147) 2024-06-25 11:31:00 -06:00
config.go Optimize policy iterators (#5184) 2024-08-20 12:35:10 -04:00
evaluator.go Optimize policy iterators (#5184) 2024-08-20 12:35:10 -04:00
evaluator_test.go Optimize policy iterators (#5184) 2024-08-20 12:35:10 -04:00
functions.go add mTLS UserPrincipalName SAN match (#5177) 2024-07-26 10:23:19 -07:00
functions_test.go add mTLS UserPrincipalName SAN match (#5177) 2024-07-26 10:23:19 -07:00
gen-test-certs.go add mTLS UserPrincipalName SAN match (#5177) 2024-07-26 10:23:19 -07:00
google_cloud_serverless.go core/lint: upgrade golangci-lint, replace interface{} with any (#5099) 2024-05-02 14:33:52 -06:00
google_cloud_serverless_test.go authorize: move headers and jwt signing to rego (#1856) 2021-02-08 10:53:21 -07:00
headers_evaluator.go core/ui: add user info link (#5158) 2024-06-28 14:07:24 -06:00
headers_evaluator_test.go add mTLS UserPrincipalName SAN match (#5177) 2024-07-26 10:23:19 -07:00
log.go core/authorize: add support for rego print statements (#5049) 2024-04-01 14:17:14 -06:00
log_test.go core/authorize: add support for rego print statements (#5049) 2024-04-01 14:17:14 -06:00
policy_evaluator.go core/lint: upgrade golangci-lint, replace interface{} with any (#5099) 2024-05-02 14:33:52 -06:00
policy_evaluator_test.go config: add new mTLS enforcement setting (#4443) 2023-08-09 07:53:11 -07:00