mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 00:40:25 +02:00
authorize: log JWT groups filtering (#5432)
Add a new Authorize Log Fields option for logging the number of groups removed during JWT groups filtering. This will be enabled by default. Additionally, when the log level is Debug (or more verbose), store and log the IDs of any groups removed during JWT groups filtering.
This commit is contained in:
parent
97ba21b95a
commit
b0f89fc688
7 changed files with 85 additions and 28 deletions
|
@ -8,12 +8,14 @@ import (
|
|||
"github.com/open-policy-agent/opa/rego"
|
||||
|
||||
"github.com/pomerium/pomerium/authorize/internal/store"
|
||||
"github.com/pomerium/pomerium/internal/log"
|
||||
"github.com/pomerium/pomerium/internal/telemetry/trace"
|
||||
)
|
||||
|
||||
// HeadersResponse is the output from the headers.rego script.
|
||||
type HeadersResponse struct {
|
||||
Headers http.Header
|
||||
Headers http.Header
|
||||
AdditionalLogFields map[log.AuthorizeLogField]any
|
||||
}
|
||||
|
||||
// A HeadersEvaluator evaluates the headers.rego script.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue