gateway: cache authelia's 200 verdicts on the log and metric ingest routes
This commit is contained in:
parent
0e99662710
commit
f5e99fe248
1 changed files with 167 additions and 5 deletions
|
|
@ -329,7 +329,9 @@ let
|
|||
&& lib.all (p: policy "user:someone" p == "deny") (collectorPaths ++ readPaths)
|
||||
&& lib.all (p: policy "group:admins" p == "deny") collectorPaths
|
||||
&& lib.all (p: policy "group:admins" p == "one_factor") readPaths
|
||||
&& lib.hasInfix "auth_request /__metrics_authelia;" locs."= /opentelemetry/api/v1/push".extraConfig
|
||||
&&
|
||||
lib.hasInfix "auth_request /__metrics_ingest_authz;"
|
||||
locs."= /opentelemetry/api/v1/push".extraConfig
|
||||
&& lib.hasInfix "auth_request /__metrics_authelia;" locs."= /metrics".extraConfig;
|
||||
}
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue