Avoid eval for externally supplied Tekton task parameters

オープン
#874 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

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

@ppitonak がすでに取り組んでいます。

2026年7月30日 から。

評価

この issue はまだ評価されていません。

説明

Summary

Several AWS Tekton tasks construct a mapt command as a shell string and invoke it with eval. Parameters supplied to the Task can therefore be reinterpreted by the shell during evaluation rather than treated strictly as command arguments.

Required changes

Refactor the command construction in the affected AWS Tekton tasks to avoid eval and pass arguments directly using a safely quoted mechanism appropriate for the script shell (for example, a Bash argument array where Bash is available).

Affected areas:

  • tkn/template/infra-aws-ocp-snc.yaml
  • tkn/infra-aws-ocp-snc.yaml
  • tkn/template/infra-aws-rhel.yaml
  • tkn/infra-aws-rhel.yaml

Keep template and generated/deployed manifests consistent.

Rationale

Task parameters are externally supplied input. Evaluating an interpolated command string can allow shell syntax in parameter values (such as command substitutions, backticks, or quote characters) to alter command execution.

Acceptance criteria

  • No affected task invokes a command assembled from Task parameters via eval.
  • Task parameter values are passed as literal CLI arguments.
  • The OCP SNC and RHEL template and deployed manifests remain behaviorally aligned.
  • Existing supported create and destroy command options continue to be forwarded correctly.

Backlinks

主要言語
Go
スター
25
フォーク
41
平均マージ
5日 3時間
マージ済み PR(30日)
16

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

redhat-developer/mapt のほかの issue

redhat-developer/mapt の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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