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

OCPBUGS-15154: Scope secret informers per namespace #44

Conversation

JoelSpeed
Copy link

The current implementation uses cluster scoped secret informers which, means you need much wider permissions than you would otherwise need, given the controller is looking at only a handful of secrets.
This is an attempt to reduce that scope and allow a much stricter RBAC requirement.

Upstream PR kubernetes#737

@openshift-ci-robot openshift-ci-robot added jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. labels Jul 17, 2023
@openshift-ci-robot
Copy link

@JoelSpeed: This pull request references Jira Issue OCPBUGS-15154, which is valid.

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

Requesting review from QA contact:
/cc @sunzhaohua2

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

The current implementation uses cluster scoped secret informers which, means you need much wider permissions than you would otherwise need, given the controller is looking at only a handful of secrets.
This is an attempt to reduce that scope and allow a much stricter RBAC requirement.

Upstream PR kubernetes#737

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.

@openshift-ci-robot openshift-ci-robot added the jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. label Jul 17, 2023
@openshift-ci openshift-ci bot requested a review from sunzhaohua2 July 17, 2023 12:23
@openshift-ci openshift-ci bot requested review from damdo and elmiko July 17, 2023 12:25
@JoelSpeed
Copy link
Author

/retest

Copy link

@elmiko elmiko left a comment

Choose a reason for hiding this comment

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

this generally makes sense and lgtm, do you want to merge here and let the upstream handle itself @JoelSpeed ?

/lgtm
/retest

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 17, 2023
@JoelSpeed
Copy link
Author

/retest

@JoelSpeed
Copy link
Author

/retest
/approve

It's important to OpenShift to minimise these permissions, will work with upstream to make sure that we either get this patch merged, or, if not, make a plan for carrying this through future releases

@openshift-ci
Copy link

openshift-ci bot commented Jul 20, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JoelSpeed

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 Jul 20, 2023
@openshift-merge-robot openshift-merge-robot merged commit a24e171 into openshift:master Jul 20, 2023
6 of 7 checks passed
@openshift-ci-robot
Copy link

@JoelSpeed: Jira Issue OCPBUGS-15154: Some pull requests linked via external trackers have merged:

The following pull requests linked via external trackers have not merged:

These pull request must merge or be unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with /jira refresh.

Jira Issue OCPBUGS-15154 has not been moved to the MODIFIED state.

In response to this:

The current implementation uses cluster scoped secret informers which, means you need much wider permissions than you would otherwise need, given the controller is looking at only a handful of secrets.
This is an attempt to reduce that scope and allow a much stricter RBAC requirement.

Upstream PR kubernetes#737

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.

@openshift-bot
Copy link

[ART PR BUILD NOTIFIER]

This PR has been included in build ose-vsphere-cloud-controller-manager-container-v4.14.0-202311211133.p0.ga24e171.assembly.stream for distgit ose-vsphere-cloud-controller-manager.
All builds following this will include this PR.

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. jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants