carvel-dev / carvel-dev/vendir

Vendir allows to use unsafe paths in configuration

Open
#353 2 comments 0 reactions 1 assignee Claimed by @Zebradil View on GitHub
bug carvel-accepted
Dominant language
Go
Stars
399
Forks
73
Avg merge
2h 53m
Merged PRs (30d)
2

Description

This issue was initially [discussed in Slack](https://kubernetes.slack.com/archives/CH8KCCKA5/p1703443931837529).

**What steps did you take:**

Here is a shell script to reproduce the issue. It runs commands during `docker build`, so you can safely run it, as it doesn't change any files on the host system.

```shell
#!/usr/bin/env bash

cat <<'EOF' | docker build --progress=plain --file=- .
FROM alpine:20231219
ARG TARGETOS=linux
ARG TARGETARCH=amd64
ARG VENDIR_VERSION=v0.38.0
RUN wget -q \
https://github.com/carvel-dev/vendir/releases/download/${VENDIR_VERSION}/vendir-${TARGETOS}-${TARGETARCH} \
-O /usr/bin/vendir
RUN chmod +x /usr/bin/vendir

WORKDIR /some/safe/place
RUN pwd
RUN ls -l /usr
RUN cat <

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.