Repository navigation
feat(kirocrew): add Tailscale + hadolint; fix gh/glab/acli ownership - #26
Merged
Merged
Conversation
Install the pinned Tailscale static release tarball into the kirocrew image, mirroring the gh/glab git-forge pattern: arch-aware download, extract the tailscale + tailscaled binaries under /opt, symlink into /usr/local/bin, verify with --version. Version ARG is Renovate-tracked via github-releases (tailscale/tailscale). Bundled systemd units are not extracted (containers run tailscaled directly). Update the Dockerfile header/LABEL and the README tooling table.
fjudith
force-pushed
the
feat/kirocrew-tailscale
branch
from
October 31, 2026 13:24
2850dfa to
1fb2f75
Compare
Install the pinned hadolint static binary into /usr/local/bin (acli pattern): arch-aware download of the official per-arch release asset, chmod +x, verify with --version. Version ARG is Renovate-tracked via github-releases (hadolint/hadolint). Updates the Dockerfile header/LABEL and the README tooling table.
The gh/glab release tarballs bake a non-root uploader uid/gid into their archive entries, so even extracted as root the binaries ended up owned by that stray uid (e.g. 1001). The Kiro Crew gateway refuses a gh/glab binary owned by a user other than the one it runs as (UID 1000), breaking PR loading with 'executable is owned by another user'. Extract with --no-same-owner and chown -R the /opt/gh, /opt/glab trees and the acli binary to the runtime UID, chmod -R go-w to clear any world-writable bit the gateway also rejects.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three related changes to the
kirocrewcustom image, all following the repo's existing pinned-download + symlink-into-/usr/local/binpattern.1. Tailscale (
tailscaleCLI +tailscaleddaemon)https://pkgs.tailscale.com/stable/tailscale_${TAILSCALE_VERSION}_${arch}.tgz, extracting onlytailscale+tailscaled(--strip-components=1) into/opt/tailscale, symlinked into/usr/local/bin, verified with--version.ARG TAILSCALE_VERSION='1.104.4', Renovate-tracked viadatasource=github-releases depName=tailscale/tailscale(latest release tagv1.104.4matches the stable pkgs version).tailscaleddirectly. Runningtailscaledstill needs the host to grantNET_ADMIN+/dev/net/tun.tailscale up/ auth-key wiring at container start.2. hadolint (Dockerfile linter)
ARG HADOLINT_VERSION='2.15.1', Renovate-tracked viadatasource=github-releases depName=hadolint/hadolint.hadolint-linux-{x86_64,arm64}, acli pattern) →/usr/local/bin/hadolint,chmod 0755, verified with--version. Same tool the repo's CI gate uses, now available to the agent at runtime.3. Fix: own gh/glab/acli as the runtime user
gh/glabrelease tarballs bake a non-root uploader uid/gid into their archive entries, so even extracted as root the binaries ended up owned by a stray uid (e.g.nobody/1001). The Kiro Crew gateway refuses a provider CLI owned by a user other than the one it runs as (UID 1000) → PR loading failed with 'executable is owned by another user'.tar --no-same-owner, thenchown -R ${APP_UID}:${APP_UID}the/opt/gh,/opt/glabtrees and theaclibinary to the runtime UID, andchmod -R go-wto clear any world-writable bit the gateway also rejects.Docs
LABELdescription and the README tooling table updated for Tailscale, hadolint, and the (previously-undocumented) git-forge CLIs.Tested
.hadolint.yamlignore set; rebased onto latestmain(coexists with the AWS CLI v2 / OpenSpec additions).hadolintlint gate and the image build — relying on CI /task build:kirocrew.