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

Run operator as non-root #30

Merged

Conversation

adambkaplan
Copy link
Member

@adambkaplan adambkaplan commented Nov 5, 2021

Changes

Run operator as non-root instead of a fixed UID. This fixes issues with OpenShift security context constraints.

Submitter Checklist

  • Includes tests if functionality changed/was added
  • Includes docs if changes are user-facing
  • Set a kind label on this PR
  • Release notes block has been filled in, or marked NONE

See the contributor guide
for details on coding conventions, github and prow interactions, and the code review process.

/kind bug

Release Notes

Run operator as non-root instead of using a fixed UID. This allows the operator to run on OpenShift using the "restricted" security context constraint.

@openshift-ci openshift-ci bot added release-note kind/bug Categorizes issue or PR as related to a bug. labels Nov 5, 2021
@openshift-ci openshift-ci bot requested review from otaviof and zhangtbj November 5, 2021 18:24
@adambkaplan
Copy link
Member Author

/hold

This should merge after #29

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 5, 2021
@adambkaplan adambkaplan changed the title Run Operator as Nonroot Operator deployment bug fixes Nov 5, 2021
@adambkaplan adambkaplan changed the title Operator deployment bug fixes Run operator as non-root Nov 5, 2021
@adambkaplan
Copy link
Member Author

Now should merge after #31

@gabemontero
Copy link
Member

I posted a comment related to this one in #28 about validating / ensuring we are running as non-root

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 8, 2021
Copy link
Member Author

@adambkaplan adambkaplan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

Self-approving

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 9, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adambkaplan

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 openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 9, 2021
- Run operator as non-root instead of a fixed UID. This fixes issues
  with OpenShift security context constraints.
- Regenerate bundle
- Run kube-rbac-proxy with a high UID. The kube-rbac-proxy image by
  default runs as root. In order to enforce the `runAsNonRoot` at the
  pod level, give the rbac-proxy container an arbitrarily high UID.
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Nov 9, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 9, 2021

New changes are detected. LGTM label has been removed.

@adambkaplan adambkaplan added the lgtm Indicates that a PR is ready to be merged. label Nov 9, 2021
@adambkaplan
Copy link
Member Author

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 9, 2021
@openshift-merge-robot openshift-merge-robot merged commit c3bbdd9 into shipwright-io:main Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants