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

Bug 2086519: AUTH-133: test/extended/security/scc: comply to pod security admission #27269

Merged
merged 5 commits into from
Jun 23, 2022

Conversation

stlaz
Copy link
Contributor

@stlaz stlaz commented Jun 21, 2022

Obsoletes #27154

/assign @ibihim

@openshift-ci openshift-ci bot added bugzilla/severity-urgent Referenced Bugzilla bug's severity is urgent for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Jun 21, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 21, 2022

@stlaz: This pull request references Bugzilla bug 2086519, which is valid. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.11.0) matches configured target release for branch (4.11.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

No GitHub users were found matching the public email listed for the QA contact in Bugzilla (ytripath@redhat.com), skipping review request.

In response to this:

Bug 2086519: AUTH-133: test/extended/security/scc: comply to pod security admission

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@@ -27,7 +29,7 @@ var _ = g.Describe("[sig-builds][Feature:Builds] prune builds based on settings
failedBuildConfig = filepath.Join(buildPruningBaseDir, "failed-build-config.yaml")
erroredBuildConfig = filepath.Join(buildPruningBaseDir, "errored-build-config.yaml")
groupBuildConfig = filepath.Join(buildPruningBaseDir, "default-group-build-config.yaml")
oc = exutil.NewCLI("build-pruning")
oc = exutil.NewCLIWithPodSecurityLevel("build-pruning", admissionapi.LevelBaseline)
Copy link
Contributor

Choose a reason for hiding this comment

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

In general, I am wondering if we need to expose the complexity of PodSecurityLevel to everyone. Maybe we could add admissionapi.LevelBaseline to every exutil.NewCLI by default and only set exutil.NewCLIWithPodSecurityLevel in the case of admissionapi.LevelRestricted or admissionapi.LevelPrivileged.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The default is there already, and this PR moves it to "restricted". We specifically want this to be the most restricted mode so that anyone raising it is aware that raised privileges are necessary.

Here, I am just being explicit with changing the previous value, I think it might be better to explicitly state the intent in case the defaults ever change.

Copy link
Contributor

Choose a reason for hiding this comment

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

The default must be the most secure one (restricted). only once your e2e workload needs broader permissions you have to make a conscious choice (baseline or restricted). This behaviour also aligns with upstream.

@ibihim
Copy link
Contributor

ibihim commented Jun 21, 2022

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 21, 2022
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jun 22, 2022
@ibihim
Copy link
Contributor

ibihim commented Jun 22, 2022

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 22, 2022
Copy link
Contributor

@soltysh soltysh left a comment

Choose a reason for hiding this comment

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

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 22, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ibihim, soltysh, stlaz

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 Jun 22, 2022
@stlaz
Copy link
Contributor Author

stlaz commented Jun 22, 2022

/retest-required

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 2 against base HEAD 6438b04 and 8 for PR HEAD 2a975df in total

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 1 against base HEAD 6438b04 and 7 for PR HEAD 2a975df in total

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 6438b04 and 6 for PR HEAD 2a975df in total

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 2 against base HEAD 05becc1 and 5 for PR HEAD 2a975df in total

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 2 against base HEAD 708aedb and 4 for PR HEAD 2a975df in total

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 23, 2022

@stlaz: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aws-single-node-upgrade 2a975df link false /test e2e-aws-single-node-upgrade
ci/prow/e2e-metal-ipi-ovn-ipv6 2a975df link false /test e2e-metal-ipi-ovn-ipv6

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-ci openshift-ci bot merged commit cf6d283 into openshift:master Jun 23, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 23, 2022

@stlaz: All pull requests linked via external trackers have merged:

Bugzilla bug 2086519 has been moved to the MODIFIED state.

In response to this:

Bug 2086519: AUTH-133: test/extended/security/scc: comply to pod security admission

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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. bugzilla/severity-urgent Referenced Bugzilla bug's severity is urgent for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants