Skip to content

audit-followup: remove stale iam bindings for e2e projects#1722

Merged
k8s-ci-robot merged 2 commits intokubernetes:mainfrom
spiffxp:reconcile-prow-viewer-iam
Feb 25, 2021
Merged

audit-followup: remove stale iam bindings for e2e projects#1722
k8s-ci-robot merged 2 commits intokubernetes:mainfrom
spiffxp:reconcile-prow-viewer-iam

Conversation

@spiffxp
Copy link
Contributor

@spiffxp spiffxp commented Feb 25, 2021

Should address the following:

Should partially address the following:

extracts some generic iam functions out of lib.sh

changes:
- ensure_custom_org_role_from_file -> ensure_custom_iam_role_from_file,
  support "org" or "project:foo" scopes
- add comment for custom_org_role_name
- add ensure_project_role_binding
- add ensure_removed_project_role_binding
- add _ensure_removed_resource_role_binding

the latter two are going to be used for audit reconciliation as we
find stale bindings
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 25, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: spiffxp

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@k8s-ci-robot k8s-ci-robot added area/prow Setting up or working with prow in general, prow.k8s.io, prow build clusters size/L Denotes a PR that changes 100-499 lines, ignoring generated files. sig/testing Categorizes an issue or PR as relevant to SIG Testing. approved Indicates a PR has been approved by an approver from all required OWNERS files. wg/k8s-infra labels Feb 25, 2021
@spiffxp
Copy link
Contributor Author

spiffxp commented Feb 25, 2021

/assign @thockin @hh

@spiffxp
Copy link
Contributor Author

spiffxp commented Feb 25, 2021

/area infra/auditing

@k8s-ci-robot k8s-ci-robot added the area/audit Audit of project resources, audit followup issues, code in audit/ label Feb 25, 2021

SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
. "${SCRIPT_DIR}/lib.sh"
. "${SCRIPT_DIR}/../lib.sh"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixes regression introduced in #1636

@ameukam
Copy link
Member

ameukam commented Feb 25, 2021

/lgtm
/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 25, 2021
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 25, 2021
@spiffxp
Copy link
Contributor Author

spiffxp commented Feb 25, 2021

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 25, 2021
@k8s-ci-robot k8s-ci-robot merged commit d0f04b4 into kubernetes:main Feb 25, 2021
@k8s-ci-robot k8s-ci-robot added this to the v1.21 milestone Feb 25, 2021
@spiffxp spiffxp deleted the reconcile-prow-viewer-iam branch February 26, 2021 02:23
@spiffxp
Copy link
Contributor Author

spiffxp commented Mar 4, 2021

/kind cleanup

@k8s-ci-robot k8s-ci-robot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Mar 4, 2021
@spiffxp
Copy link
Contributor Author

spiffxp commented Jun 11, 2021

Related to refactoring infra/gcp, ref: #516

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. area/audit Audit of project resources, audit followup issues, code in audit/ area/prow Setting up or working with prow in general, prow.k8s.io, prow build clusters cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants