Add acli (Atlassian CLI) to sandbox image#1506
Conversation
7634ed6 to
2b70685
Compare
ReviewNo findings. Previous runReviewFindingsLow
Previous runReviewFindingsLow
Previous run (2)ReviewFindingsHigh
Medium
Low
|
2b70685 to
5eac68d
Compare
| RUN case "$TARGETARCH" in \ | ||
| amd64) ACLI_SHA="$ACLI_SHA256_AMD64" ;; \ | ||
| arm64) ACLI_SHA="$ACLI_SHA256_ARM64" ;; \ | ||
| *) echo "unsupported TARGETARCH=$TARGETARCH" >&2; exit 1 ;; \ |
There was a problem hiding this comment.
[low] supply-chain
The download URL uses a floating latest path segment without an explicit ACLI_VERSION build argument. SHA256 checksums mitigate binary substitution, but there is no version ARG for auditability and upstream updates will break builds silently.
Suggested fix: If the acli download server supports versioned URLs, add ARG ACLI_VERSION and use it in the URL path. If not, add a comment noting that SHA256 checksums serve as the version pin because the upstream distribution only offers a latest endpoint.
There was a problem hiding this comment.
Yeah, I agree with this. Does atlassian provide versioned urls?
As this currently stands (with /latest/ in the url), then when atlassian releases a new version, all of our image builds will suddenly break on our main branch because the digest doesn't match anymore.
We want to do digest checking.
Can you revise this to use a url that includes a version number so that we don't "automatically" update when atlassian puts out a new cli?
| RUN case "$TARGETARCH" in \ | ||
| amd64) ACLI_SHA="$ACLI_SHA256_AMD64" ;; \ | ||
| arm64) ACLI_SHA="$ACLI_SHA256_ARM64" ;; \ | ||
| *) echo "unsupported TARGETARCH=$TARGETARCH" >&2; exit 1 ;; \ |
There was a problem hiding this comment.
Yeah, I agree with this. Does atlassian provide versioned urls?
As this currently stands (with /latest/ in the url), then when atlassian releases a new version, all of our image builds will suddenly break on our main branch because the digest doesn't match anymore.
We want to do digest checking.
Can you revise this to use a url that includes a version number so that we don't "automatically" update when atlassian puts out a new cli?
|
/fs-retro take a look at inline PR feedback I provided above. A change that would break CI on |
maruiz93
left a comment
There was a problem hiding this comment.
Thank you for the PR. I appreciate it as I didn't know what was the best atlassian CLI if the official one or not. I agree with the other reviewers (@ralphbean and the agent). I just did a quick search and in the atlassian docs I only see the reference to the latest version and it seems others have already complained about this: https://community.atlassian.com/forums/DevOps-discussions/acli-versioned-download/td-p/3116576
For the timebeing, I suggest composing the url with version v1.3.15-stable (this is the changelog)
|
@guyoron1 For now we can pin it to the the latest version marked stable by Atlassian. e.g.: See more details at the Atlassian brew formula for acli |
21b4fd9 to
8b04032
Compare
Pin to version 1.3.18-stable with versioned URL and SHA256 verification, following the same pattern as gitleaks, tirith, and ORT in the Containerfile. Closes fullsend-ai#1248 Signed-off-by: guy oron <goron@redhat.com>
8b04032 to
7370341
Compare
Adds acli to the base sandbox image so agents can query Jira natively.
Closes #1248