Avoid eval for externally supplied Tekton task parameters
Maintainer thường phản hồi trong vòng 4 ngày
@ppitonak đang làm issue này rồi.
Từ ngày 30/7/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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
- Ngôn ngữ chính
- Go
- Star
- 25
- Fork
- 41
- Merge trung bình
- 5 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 16
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của redhat-developer/mapt
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
redhat-developer/mapt#972 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Host/username secret values contain trailing newlines, sanitization fix breaks SSH keyCó thể làm lại được @abdulazeem-tk4vr đã nhận 153 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
redhat-developer/mapt#817 · 12 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
openshift-snc: align cluster ingress domain with the nip.io access domain (crc.testing split-brain)Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
redhat-developer/mapt#968 · 1 reaction ·
Maintainer thường phản hồi trong vòng 4 ngày
-
[enhancement] github runner: support just-in-time (JIT) runner configurationCó thể đã có người làm @atishay-kasliwal đã nhận 1 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
redhat-developer/mapt#957 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
enhancement provider/IBMCLOUD
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
redhat-developer/mapt#955 ·
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của redhat-developer/mapt
Issue tương tự
-
Add iterate GmbH domains to a dedicated list and include it in company and developer categoriesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
v2fly/domain-list-community#4307 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
chore needs-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
seanb4t/codegraph-go#380 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
notify: voice_queue rows are deleted only at startup, so a hub that stays up grows it without boundĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
mattabate/life-distributable#232 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày