Skip to content
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

Implement RUN secrets for buildah bud #3177

Merged
merged 3 commits into from
Apr 26, 2021

Conversation

ashley-cui
Copy link
Member

What type of PR is this?

/kind feature

What this PR does / why we need it:

Add support for secrets. Secrets is a two-part flag that allows secret files to be accessed for a certain RUN instruction, but not any other instructions, as well as now showing up in the final image.

How to verify it

buildah bud --secret id=mysecret,src=secret.txt

RUN --mount=type=secret,id=mysecret

Which issue(s) this PR fixes:

Fixes: #1684

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ashley-cui

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. approved labels Apr 22, 2021
@ashley-cui ashley-cui force-pushed the secrets branch 5 times, most recently from 5df2ed2 to 30d545e Compare April 22, 2021 17:43
Signed-off-by: Ashley Cui <acui@redhat.com>
rename secrets to subscriptions and remove unused subscription package

Signed-off-by: Ashley Cui <acui@redhat.com>
@ashley-cui ashley-cui force-pushed the secrets branch 2 times, most recently from 34d08ee to 99076ab Compare April 22, 2021 17:48
@TomSweeneyRedHat
Copy link
Member

Really nice work @ashley-cui . Couple of questions, most likely to educate me more than anything else.

@TomSweeneyRedHat
Copy link
Member

@ashley-cui if you can make that last suggested tweak to the man page, I thnk this is GTG

Add support for secrets. Secrets is a two-part flag that allows secret files to
be accessed for a certain RUN instruction, but not any other
instructions, as well as now showing up in the final image.

Signed-off-by: Ashley Cui <acui@redhat.com>
@TomSweeneyRedHat
Copy link
Member

LGTM

1 similar comment
@umohnani8
Copy link
Member

LGTM

@rhatdan
Copy link
Member

rhatdan commented Apr 26, 2021

/lgtm

@openshift-merge-robot openshift-merge-robot merged commit 9428d03 into containers:master Apr 26, 2021
@ashley-cui ashley-cui deleted the secrets branch June 29, 2021 21:15
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved kind/feature Categorizes issue or PR as related to a new feature. lgtm locked - please file new issue/PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RFE: dockerfile secret
6 participants