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

audit: update as of 2021-03-11 #1755

Merged
merged 1 commit into from
Mar 11, 2021
Merged

Conversation

cncf-ci
Copy link
Contributor

@cncf-ci cncf-ci commented Mar 3, 2021

Audit Updates wg-k8s-infra

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 3, 2021
@k8s-ci-robot
Copy link
Contributor

Hi @cncf-ci. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@k8s-ci-robot k8s-ci-robot added area/audit Audit of project resources, audit followup issues, code in audit/ wg/k8s-infra size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Mar 3, 2021
Copy link
Member

@spiffxp spiffxp left a comment

Choose a reason for hiding this comment

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

This is the noise described in #1751 that we should address (at some point)

So ok we're probably going to be seeing noise in our boskos projects until we resolve a few followup issues.

/hold
I'm not going to merge this because I want to confirm whether this auto-bumps with new changes during the next run

@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 Mar 3, 2021
@spiffxp
Copy link
Member

spiffxp commented Mar 3, 2021

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 3, 2021
@cncf-ci cncf-ci changed the title audit: update as of 2021-03-03 audit: update as of 2021-03-04 Mar 4, 2021
@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Mar 4, 2021
@spiffxp
Copy link
Member

spiffxp commented Mar 4, 2021

+8 −32,555

Uhhhhhh

So after I had a mini heart attack, I browsed around real quick.

I'm reasonably confident the projects are all still present.

$ gcloud projects list --filter="parent.id=758905017065" --format="table(lifecycleState,projectId)" | grep ACTIVE | wc -l
     245

My account in k8s-infra-gcp-org-admins@ can no longer see all of the k8s-infra-e2e projects in GCP console. There are some k8s-infra-e2e-boskos-scale and k8s-staging projects I still happen to be on as roles/owner, and I can see those in the console.

My account in k8s-infra-prow-oncall@ can see all of the projects in GCP console.

Seems like something is missing for organization.admin and audit.viewer... and that changed within the last 6 hours?

@spiffxp
Copy link
Member

spiffxp commented Mar 4, 2021

ok I'm done looking at this for now, I had hopes that "it happened in the last 6 hours" might make it easier to spot what changed, but I'm beginning to think it's not something I did

  • https://cloud.google.com/logging/docs/audit - going to the activity page for the org shows the last thing I did related to IAM was well before the first audit PR
  • I tried going to logs explorer as my org admin account, and got a "You are missing one or more permissions required to use the query library. Learn more ."
  • I tried giving my account roles/owner directly on the org, same thing
  • I tried giving my account roles/logging.viewer directly on the org, same thing

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Mar 4, 2021
@spiffxp
Copy link
Member

spiffxp commented Mar 4, 2021

+35 −37

Yup, and just like that, audit thinks projects are all back. Which they are, because they never went away.

Copy link
Member

@spiffxp spiffxp left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm
/hold
This PR contains mostly updates to ssh-keys #1751, I'd rather hold it open until we resolve that.

But remove /hold if you feel differently

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Mar 4, 2021
@cncf-ci cncf-ci force-pushed the autoaudit-prow branch 4 times, most recently from 2d08ce7 to 8c7a44b Compare March 7, 2021 22:10
@hh
Copy link
Member

hh commented Mar 8, 2021

@spiffxp note that we have a few more force, pushes and title updates. Latest one was 4 hours ago.

@cncf-ci cncf-ci changed the title audit: update as of 2021-03-07 audit: update as of 2021-03-08 Mar 8, 2021
@cncf-ci cncf-ci force-pushed the autoaudit-prow branch 4 times, most recently from 5e72342 to ac0badd Compare March 8, 2021 22:17
@cncf-ci cncf-ci changed the title audit: update as of 2021-03-08 audit: update as of 2021-03-09 Mar 9, 2021
@cncf-ci cncf-ci force-pushed the autoaudit-prow branch 4 times, most recently from e098b81 to c39197f Compare March 9, 2021 22:25
@cncf-ci cncf-ci changed the title audit: update as of 2021-03-09 audit: update as of 2021-03-10 Mar 10, 2021
@cncf-ci cncf-ci force-pushed the autoaudit-prow branch 4 times, most recently from 84d7f12 to 80fe134 Compare March 10, 2021 22:27
@cncf-ci cncf-ci changed the title audit: update as of 2021-03-10 audit: update as of 2021-03-11 Mar 11, 2021
Copy link
Member

@spiffxp spiffxp left a comment

Choose a reason for hiding this comment

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

/hold cancel
/approve
/lgtm
everything is ssh key noise unless otherwise noted; I've bumped priority on #1751 (comment)

Comment on lines -9 to -15
{
"members": [
"user:davanum@gmail.com",
"user:thockin@google.com"
],
"role": "organizations/758905017065/roles/StorageBucketLister"
},
Copy link
Member

Choose a reason for hiding this comment

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

Hmmm I'm not sure I recall doing this

Copy link
Member

Choose a reason for hiding this comment

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

Last log entry I can find in the org's activity log was 2020-03-01, specifically adding this binding.

I also wouldn't be surprised if this is another IAM blip. This isn't a critical binding or role, I actually want to delete it anyway. So I'm going to opt to merge, and we'll see if these mysteriously show back up in the next audit PR

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Mar 11, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cncf-ci, spiffxp

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

@k8s-ci-robot k8s-ci-robot merged commit 9c720c3 into kubernetes:main Mar 11, 2021
@k8s-ci-robot k8s-ci-robot added this to the v1.21 milestone Mar 11, 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. area/audit Audit of project resources, audit followup issues, code in audit/ cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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.

4 participants