Skip to content

audit: update as of 2021-06-30 #2234

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

Merged
merged 1 commit into from
Jun 30, 2021
Merged

Conversation

cncf-ci
Copy link
Contributor

@cncf-ci cncf-ci commented Jun 16, 2021

Audit Updates wg-k8s-infra

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 16, 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 needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. area/audit Audit of project resources, audit followup issues, code in audit/ wg/k8s-infra labels Jun 16, 2021
@k8s-ci-robot k8s-ci-robot requested review from nikhita and spiffxp June 16, 2021 19:08
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 16, 2021
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 16, 2021
@cncf-ci cncf-ci changed the title audit: update as of 2021-06-16 audit: update as of 2021-06-17 Jun 17, 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.

/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 Jun 17, 2021
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 17, 2021
@cncf-ci cncf-ci force-pushed the autoaudit-prow branch 2 times, most recently from 0ce1c43 to 24a490e Compare June 17, 2021 22:06
Comment on lines +11 to +37
{
"createTime": "2021-06-17T15:23:05.481298Z",
"etag": "\"15c4f7c8a08052\"",
"name": "projects/180382678033/secrets/snyk-token/versions/11",
"replicationStatus": {
"automatic": {}
},
"state": "ENABLED"
},
{
"createTime": "2021-06-17T12:44:28.595177Z",
"etag": "\"15c4f5916057e9\"",
"name": "projects/180382678033/secrets/snyk-token/versions/10",
"replicationStatus": {
"automatic": {}
},
"state": "ENABLED"
},
{
"createTime": "2021-06-17T05:47:19.716124Z",
"etag": "\"15c4efbd89f51c\"",
"name": "projects/180382678033/secrets/snyk-token/versions/9",
"replicationStatus": {
"automatic": {}
},
"state": "ENABLED"
},
Copy link
Member

Choose a reason for hiding this comment

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

@spiffxp is it a good thing to have so many versions for the same secret ? IMHO, we should disable the unused versions.

Copy link
Member

Choose a reason for hiding this comment

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

Opened #2277 for followup

@cncf-ci cncf-ci changed the title audit: update as of 2021-06-17 audit: update as of 2021-06-18 Jun 18, 2021
@cncf-ci cncf-ci force-pushed the autoaudit-prow branch 4 times, most recently from 43c3617 to 5c753be Compare June 18, 2021 22:06
@cncf-ci cncf-ci changed the title audit: update as of 2021-06-18 audit: update as of 2021-06-19 Jun 19, 2021
@cncf-ci cncf-ci force-pushed the autoaudit-prow branch 6 times, most recently from 3249969 to fded903 Compare June 27, 2021 16:30
@cncf-ci cncf-ci changed the title audit: update as of 2021-06-27 audit: update as of 2021-06-28 Jun 28, 2021
@cncf-ci cncf-ci force-pushed the autoaudit-prow branch 3 times, most recently from d4057dd to ade371b Compare June 28, 2021 16:31
@@ -0,0 +1,18 @@
gs://k8s-infra-scalability-tests-logs/ :
Copy link
Member

Choose a reason for hiding this comment

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

Created by #2240

@@ -0,0 +1,36 @@
{
Copy link
Member

Choose a reason for hiding this comment

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

Created by #2240

@@ -17,6 +17,7 @@ logging.googleapis.com Cloud Logging API
monitoring.googleapis.com Cloud Monitoring API
oslogin.googleapis.com Cloud OS Login API
pubsub.googleapis.com Cloud Pub/Sub API
secretmanager.googleapis.com Secret Manager API
Copy link
Member

Choose a reason for hiding this comment

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

@bernokl @hh I would be better to do this with the existing Terraform code we use for this project.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah I think it'd be good to try to get in the habit of using the terraform at https://github.com/kubernetes/k8s.io/tree/main/infra/gcp/clusters/projects/k8s-infra-ii-sandbox to update and manage your project

I opened #2279 as a followup issue for this

That said, I also don't see any secrets being used in this project? It might also be a good idea to disable services you're not using

Comment on lines +4 to +7
{
"key": "enable-oslogin",
"value": "TRUE"
},
Copy link
Member

Choose a reason for hiding this comment

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

This is required by the canary prowjobs for sig-scalability. This ensure the SA [email protected] can login in the instances created in the project. I need to add a ensure_project_oslogin bash function.

Copy link
Member

Choose a reason for hiding this comment

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

Opened followup issue: #2278

@cncf-ci cncf-ci changed the title audit: update as of 2021-06-28 audit: update as of 2021-06-29 Jun 29, 2021
@cncf-ci cncf-ci force-pushed the autoaudit-prow branch 3 times, most recently from 238ecbd to f1b9398 Compare June 29, 2021 22:44
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

"bindings": [
{
"members": [
"projectEditor:k8s-infra-e2e-boskos-scale-02",
Copy link
Member

Choose a reason for hiding this comment

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

The artifacts.k8s-infra-e2e-boskos-scale-xx.appspot.com noise is from CI jobs auto-creating GCR buckets on first use. We could eliminate this by pre-creating these buckets: #1999

Comment on lines +4 to +7
{
"key": "enable-oslogin",
"value": "TRUE"
},
Copy link
Member

Choose a reason for hiding this comment

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

Opened followup issue: #2278

Comment on lines +16 to +21
{
"members": [
"serviceAccount:[email protected]"
],
"role": "roles/storage.legacyBucketWriter"
},
Copy link
Member

Choose a reason for hiding this comment

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

manual changes in ii's sandbox project, ignoring

"projects/k8s-staging-boskos/logs/cloudaudit.googleapis.com%2Factivity",
"projects/k8s-staging-boskos/logs/cloudbuild"
"projects/k8s-staging-boskos/logs/cloudaudit.googleapis.com%2Factivity"
Copy link
Member

Choose a reason for hiding this comment

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

Noise in logging export: #2111

This is an example of cloudbuild logs aging out

@@ -17,6 +17,7 @@ logging.googleapis.com Cloud Logging API
monitoring.googleapis.com Cloud Monitoring API
oslogin.googleapis.com Cloud OS Login API
pubsub.googleapis.com Cloud Pub/Sub API
secretmanager.googleapis.com Secret Manager API
Copy link
Member

Choose a reason for hiding this comment

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

Yeah I think it'd be good to try to get in the habit of using the terraform at https://github.com/kubernetes/k8s.io/tree/main/infra/gcp/clusters/projects/k8s-infra-ii-sandbox to update and manage your project

I opened #2279 as a followup issue for this

That said, I also don't see any secrets being used in this project? It might also be a good idea to disable services you're not using

"currentMasterVersion": "1.19.9-gke.1400",
"currentNodeVersion": "1.19.9-gke.1400",
"currentMasterVersion": "1.19.9-gke.1900",
"currentNodeVersion": "1.19.9-gke.1900",
Copy link
Member

Choose a reason for hiding this comment

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

Noise from cluster auto-upgrades, but I feel like this is useful confirmation that they're actually happening

Comment on lines +1 to +10
{
"bindings": [
{
"members": [
"group:[email protected]",
"projectEditor:k8s-staging-prometheus-adapter",
"projectOwner:k8s-staging-prometheus-adapter"
],
"role": "roles/storage.legacyBucketOwner"
},
Copy link
Member

Choose a reason for hiding this comment

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

Expected, all of the k8s-staging-prometheus-adapter files are from #2274

"imageType": "COS",
"imageType": "COS_CONTAINERD",
Copy link
Member

Choose a reason for hiding this comment

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

Expected, deploy of #2252

(same for the node pools below)

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 30, 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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 30, 2021
@k8s-ci-robot k8s-ci-robot merged commit d699986 into kubernetes:main Jun 30, 2021
@k8s-ci-robot k8s-ci-robot added this to the v1.22 milestone Jun 30, 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/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants