Exporting a result to Local returns 403 on Kubernetes

オープン 初心者向け
#9,724 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
kubernetes, scala, typescript, yaml

調査の方向性

bin/k8s/templates/base/gateway/gateway-security-policy.yamlを読み、gatewayのセキュリティポリシーがext-authをどのように設定しているか確認してください。issueでは、期待される設定としてextAuth.bodyToExtAuthが示されています。これをAccessControlResource.extractTokenFromBodyおよびissueに記載された既存のリクエストボディ設定の履歴と比較してください。ポリシーがフォームのトークンを転送することを確認し、Kubernetes上でLocal exportが成功することを検証してください。

索引モデルが issue の本文から書いたものです。

説明

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)

主要言語
Scala
スター
335
フォーク
203
平均マージ
2日 18時間
マージ済み PR(30日)
217

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/texera のほかの issue

apache/texera の issue をすべて見る

似ている issue

Scala の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。