Conversation
PR Summary by QodoCanonicalize cross-stream titles by issue family
AI Description
Diagram
High-Level Assessment
Files changed (16)
|
Code Review by Qodo
1. Issue summaries execute package macros
|
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit 17e666c |
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit 6b5af8f |
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit bd3ed67 |
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit b078d2c |
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit e606187 |
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit dc86d68 |
|
/agentic_review |
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit 5338374 |
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit 2587b12 |
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit 2099acf |
69079eb to
92bda2b
Compare
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit 92bda2b |
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit 234914e |
1849088 to
f443a94
Compare
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit f443a94 |
…mily Use Jira summaries for CVE commit and MR titles and changelog entries. Generate and atomically share non-CVE titles by Cloners-chain root. Version records by Jira summary changes to support invalidation. Signed-off-by: Nikola Forró <nforro@redhat.com> Assisted-by: GPT-5.6 Terra via OpenCode Assisted-by: GPT-5.6 Sol via OpenCode
|
/agentic_review |
| if line.strip() and not is_jira_reference: | ||
| entry.content[index] = f"- {title}" |
There was a problem hiding this comment.
1. Issue summaries execute package macros 🐞 Bug ⛨ Security
ensure_canonical_changelog_title and the inherited changelog path interpolate canonical titles into RPM specs without escaping %, while _validate_canonical_title accepts RPM macro syntax. A crafted CVE Jira summary therefore reaches committed spec content and, for inherited backports, the subsequent rpmbuild preparation and source-package commands.
Agent Prompt
## Issue description
Canonical titles are untrusted Jira or generated display data, but they are written directly into RPM spec changelogs. Percent-prefixed RPM macro syntax can consequently be interpreted when the spec is parsed or built.
## Fix Focus Areas
- ymir/agents/tasks.py[954-982]
- ymir/agents/backport_agent.py[929-933]
## Recommended Fix
Escape RPM macro metacharacters at every spec-changelog write boundary, including both deterministic correction and inherited changelog insertion, while preserving the original title for commit and merge-request titles. Add tests using percent-prefixed macro expressions to verify the stored spec safely represents literal text.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
|
Code review by qodo was updated up to the latest commit 3faf503 |
Use Jira summaries for CVE commit and MR titles and changelog entries. Generate and atomically share non-CVE titles by Cloners-chain root. Version records by Jira summary changes to support invalidation.
Fixes https://redhat.atlassian.net/browse/PACKIT-5208.