summaryrefslogtreecommitdiff
path: root/pkg/authz/check_service.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/authz/check_service.go')
-rw-r--r--pkg/authz/check_service.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/pkg/authz/check_service.go b/pkg/authz/check_service.go
index bb2e960..55d075f 100644
--- a/pkg/authz/check_service.go
+++ b/pkg/authz/check_service.go
@@ -142,12 +142,13 @@ func (svc *CheckService) Denied(ctx context.Context) *auth.CheckResponse {
func (svc *CheckService) fieldsFor(r *auth.CheckRequest) log.Fields {
return log.Fields{
- "id": r.Attributes.Request.Http.Id,
- "method": r.Attributes.Request.Http.Method,
- "path": r.Attributes.Request.Http.Path,
- "host": r.Attributes.Request.Http.Host,
- "scheme": r.Attributes.Request.Http.Scheme,
- "protocol": r.Attributes.Request.Http.Protocol,
+ "host": r.Attributes.Request.Http.Host,
+ "id": r.Attributes.Request.Http.Id,
+ "method": r.Attributes.Request.Http.Method,
+ "path": r.Attributes.Request.Http.Path,
+ "protocol": r.Attributes.Request.Http.Protocol,
+ "request_id": r.Attributes.Request.Http.Headers["x-request-id"],
+ "scheme": r.Attributes.Request.Http.Scheme,
}
}