Avoid eval for externally supplied Tekton task parameters
メンテナーはふだん 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.yamltkn/infra-aws-ocp-snc.yamltkn/template/infra-aws-rhel.yamltkn/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
- Originating PR: https://github.com/redhat-developer/mapt/pull/872
- Review discussion: https://github.com/redhat-developer/mapt/pull/872#discussion_r3678207674
- Requested by: @ppitonak
- 主要言語
- Go
- スター
- 25
- フォーク
- 41
- 平均マージ
- 5日 3時間
- マージ済み PR(30日)
- 16
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
redhat-developer/mapt のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
redhat-developer/mapt#972 ·
メンテナーはふだん 4 日以内に返信
-
Host/username secret values contain trailing newlines, sanitization fix breaks SSH key再び着手できるかも @abdulazeem-tk4vr が 153 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
redhat-developer/mapt#817 · コメント 12 件 ·
メンテナーはふだん 4 日以内に返信
-
openshift-snc: align cluster ingress domain with the nip.io access domain (crc.testing split-brain)オープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
redhat-developer/mapt#968 · リアクション 1 件 ·
メンテナーはふだん 4 日以内に返信
-
[enhancement] github runner: support just-in-time (JIT) runner configuration対応中かも @atishay-kasliwal が 1 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
redhat-developer/mapt#957 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
enhancement provider/IBMCLOUD
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
redhat-developer/mapt#955 ·
メンテナーはふだん 4 日以内に返信
redhat-developer/mapt の issue をすべて見る
似ている issue
-
Add iterate GmbH domains to a dedicated list and include it in company and developer categoriesオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
v2fly/domain-list-community#4307 ·
メンテナーはふだん 1 日以内に返信
-
notify: voice_queue rows are deleted only at startup, so a hub that stays up grows it without boundオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
mattabate/life-distributable#232 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
projectdiscovery/cdncheck#554 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
openbao/openbao-plugins#170 ·
メンテナーはふだん 1 日以内に返信