Exporting a result to Local returns 403 on Kubernetes

Đang mở Phù hợp với người mới
#9,724 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
kubernetes, scala, typescript, yaml

Hướng nghiên cứu

Đọc bin/k8s/templates/base/gateway/gateway-security-policy.yaml và kiểm tra cách chính sách bảo mật gateway cấu hình ext-auth; issue xác định extAuth.bodyToExtAuth là thiết lập được mong đợi. So sánh với AccessControlResource.extractTokenFromBody và lịch sử cấu hình phần thân yêu cầu hiện có được mô tả trong issue. Xác nhận chính sách chuyển tiếp token của biểu mẫu và kiểm tra rằng Local export thành công trên Kubernetes.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

What happened?

On a Helm deployment, Export result with Destination Local never downloads. POST /api/executions/result/export/local?cuid=<cuid> returns 403 from access-control-service (the error page shows URI: /api/auth/api/executions/result/export/local). Export to a dataset works.

exportWorkflowResultToLocal (frontend/src/app/dashboard/service/user/download/download.service.ts, line 214) submits a hidden form so the browser streams the file, so the JWT travels in the body as token=... rather than in a header. AccessControlResource reads a token from the body when it gets one (extractTokenFromBody, line 220), but the gateway's ext-auth (bin/k8s/templates/base/gateway/gateway-security-policy.yaml) forwards headers only. The token is empty and the request is denied.

This worked before #4191: the Envoy config it replaced set with_request_body on ext_authz. Single-node is not affected, since nginx does not route this path through access-control-service.

Expected: Export to Local works on Kubernetes, for example by setting extAuth.bodyToExtAuth on the SecurityPolicy.

How to reproduce?
  1. On a Helm deployment, run any workflow.
  2. Right-click an operator, choose Export result, set Destination to Local, and click Export.
  3. No file downloads, and the request returns 403.
Version/Branch

1.4.0-incubating-SNAPSHOT (main)

Ngôn ngữ chính
Scala
Star
335
Fork
203
Merge trung bình
2 ngày 18 giờ
Pull request đã merge (30 ngày)
217

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/texera

Tất cả issue của apache/texera

Issue tương tự

Thêm issue về Scala

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.