-
Notifications
You must be signed in to change notification settings - Fork 827
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
Disable Vulnerability Scanning #1963
Comments
/assign |
/assign @thockin |
Are we concerned the costs are really going to be that outsized? tl;dr it looks like ~2.5% of spend as currently deployed
Regardless, I'm interested in pruning services that shouldn't be enabled anyway, so I'm using this as a reason to push more on that work. WIP PR is here: #2016 |
It's now May 19 and I haven't been able to land #2016 yet. I will reprioritize this. In the meantime, let's manually disable it for the project that generates the majority of costs
OK, let's use
|
Thanks for the heads-up, Aaron! |
#2016 disabled there is leftover detritus in the form of a container scanning service agent IAM binding |
/priority awaiting-more-evidence |
Based on a survey of all staging projects (ref: #1675 (comment)), I'm also going ahead and disabling the #!/usr/bin/env bash
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-addon-manager
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-apisnoop
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-artifact-promoter
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-autoscaling
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-bootkube
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-boskos
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-build-image
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-capi-docker
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-capi-kubeadm
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-capi-openstack
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-capi-vsphere
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-ci-images
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-cip-test
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-cloud-provider-gcp
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-cluster-addons
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-cluster-api
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-cluster-api-aws
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-cluster-api-azure
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-cluster-api-do
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-cluster-api-gcp
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-coredns
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-cpa
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-cri-tools
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-csi
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-csi-secrets-store
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-descheduler
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-dns
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-e2e-test-images
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-etcd
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-etcdadm
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-examples
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-experimental
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-external-dns
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-gateway-api
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-git-sync
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-infra-tools
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-ingress-nginx
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-ingressconformance
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-k8s-gsm-tools
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-kas-network-proxy
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-kind
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-kops
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-kube-state-metrics
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-kubeadm
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-kubernetes
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-kubetest2
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-kustomize
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-metrics-server
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-mirror
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-multitenancy
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-networking
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-nfd
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-npd
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-provider-aws
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-provider-azure
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-provider-openstack
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-publishing-bot
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-releng
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-releng-test
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-scheduler-plugins
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-scl-image-builder
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-sig-docs
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-sig-storage
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-slack-infra
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-sp-operator
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-storage-migrator
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-test-infra
gcloud services disable --force containeranalysis.googleapis.com --project=k8s-staging-txtdirect |
The audit PR #2689 picked up some of the changes from above |
Opened #2697 to remove the service agent binding |
Waiting on an audit PR to prove the service agent has been removed and then I think we can call this done |
#2699 is that audit PR /close |
@spiffxp: Closing this issue. In response to this:
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. |
Revisiting this - is there any way to enable scanning for "recent" images (e.g. uploaded in the last 6 months) or something? I had a question about git-sync CVEs and I ... don't have a report! |
Seems like it wouldn't be that expensive if we just enabled it on one AR backend? I don't think the pricing analysis above is accurate, unless something changed: https://cloud.google.com/container-analysis/pricing
(emphasis mine) ... so I read that as $0.26 per new digest pushed, one-time cost, we can't be adding that many new digests annually? That said, we are still well-over budget as-is :/ |
@thockin if you only use on-demand scanning, you should be able to do scans on recent builds. You can also use tools like https://github.com/aquasecurity/trivy to get similar results. |
Just got a nice note from the friendly GCP folks:
I was able to click on disable for
k8s-artifacts-prod
, but looks like we need to do this across the board automatically.The text was updated successfully, but these errors were encountered: