-
Notifications
You must be signed in to change notification settings - Fork 786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
history, build: add pre-allowed variables e.g proxy vars
to history if explicitly specified
#3782
history, build: add pre-allowed variables e.g proxy vars
to history if explicitly specified
#3782
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: flouthoc The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
dec150f
to
33fc349
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM, just a couple of nits.
Can you do a s/whitelist/allowlist/
? "Whitelisting" is an old non-inclusive term that we want to avoid.
Can you add Fixes: https://github.com/containers/buildah/issues/2937
to the commit message? That would add some useful information to the git history.
17ace93
to
5bf42d5
Compare
proxy vars
to history if explicitly specifiedproxy vars
to history if explicitly specified
@vrothberg Thanks tweaked comments as requested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, LGTM
proxy vars
to history if explicitly specifiedproxy vars
to history if explicitly specified
Test function names, too. |
`Buildkit/Docker` adds variables in pre-allowlist for e.g `proxy variables` to OCI/Docker history only if user explicitly specifies them in Dockerfile using `ARG`. By default variables in pre-allowlist e.g `proxy variables` will be used normally but will not be leaked into `docker/OCI` history of images. A test for following behviour is added with this commit and similar test can be verified against `Docker/Buildkit` Closes: containers#2937 Signed-off-by: Aditya R <[email protected]>
5bf42d5
to
9c7efb9
Compare
/lgtm |
/hold cancel |
Buildkit/Docker
only adds pre-allowed variables for e.gproxy variables
to history if user explicitly specifies them inDockerfile/Containerfile using
ARG
.By default variables in allowlist e.g
proxy variables
and values will be usednormally but will not be leaked into
docker/OCI
history of images.A test for following behavior is added with this commit and similar test
can be verified against
Docker/Buildkit
Closes: #2937