-
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
audit followup: k8s-staging-* projects should not have misc services enabled #1675
Comments
/kind bug |
/assign |
gathered output related to extra services from #1859 (comment) into https://gist.github.com/spiffxp/1cbf779d7dc1c025a445b91909f55bf7 # curl -s https://gist.githubusercontent.com/spiffxp/1cbf779d7dc1c025a445b91909f55bf7/raw/49971cd6699c4dace4f47fcba8c068c212e0ad2e/k8s-staging-service-disable-plan.yaml | yq -y 'with_entries(.value |= .to_disable)'
k8s-staging-artifact-promoter:
- compute.googleapis.com
- oslogin.googleapis.com
k8s-staging-cip-test:
- bigquery.googleapis.com
- bigquerystorage.googleapis.com
- cloudapis.googleapis.com
- clouddebugger.googleapis.com
- cloudtrace.googleapis.com
- compute.googleapis.com
- datastore.googleapis.com
- monitoring.googleapis.com
- oslogin.googleapis.com
- servicemanagement.googleapis.com
- serviceusage.googleapis.com
- sql-component.googleapis.com
k8s-staging-cluster-api:
- bigquery.googleapis.com
- bigquerystorage.googleapis.com
- cloudapis.googleapis.com
- clouddebugger.googleapis.com
- cloudtrace.googleapis.com
- compute.googleapis.com
- datastore.googleapis.com
- monitoring.googleapis.com
- oslogin.googleapis.com
- servicemanagement.googleapis.com
- serviceusage.googleapis.com
- sql-component.googleapis.com
k8s-staging-cluster-api-aws:
- compute.googleapis.com
- oslogin.googleapis.com
k8s-staging-capi-openstack:
- compute.googleapis.com
- oslogin.googleapis.com
k8s-staging-capi-docker:
- compute.googleapis.com
- dns.googleapis.com
- oslogin.googleapis.com
k8s-staging-coredns:
- bigquery.googleapis.com
- bigquerystorage.googleapis.com
- cloudapis.googleapis.com
- clouddebugger.googleapis.com
- cloudtrace.googleapis.com
- compute.googleapis.com
- datastore.googleapis.com
- monitoring.googleapis.com
- oslogin.googleapis.com
- servicemanagement.googleapis.com
- serviceusage.googleapis.com
- sql-component.googleapis.com
k8s-staging-csi:
- bigquery.googleapis.com
- bigquerystorage.googleapis.com
- cloudapis.googleapis.com
- clouddebugger.googleapis.com
- cloudtrace.googleapis.com
- compute.googleapis.com
- datastore.googleapis.com
- iam.googleapis.com
- iamcredentials.googleapis.com
- monitoring.googleapis.com
- oslogin.googleapis.com
- servicemanagement.googleapis.com
- serviceusage.googleapis.com
- sql-component.googleapis.com
k8s-staging-ingress-nginx:
- monitoring.googleapis.com
- stackdriver.googleapis.com
k8s-staging-kops:
- bigquery.googleapis.com
- bigquerystorage.googleapis.com
- cloudapis.googleapis.com
- clouddebugger.googleapis.com
- cloudtrace.googleapis.com
- datastore.googleapis.com
- monitoring.googleapis.com
- servicemanagement.googleapis.com
- serviceusage.googleapis.com
- sql-component.googleapis.com |
OK, the above services have been disabled. See #1859 (comment) for the command I ran. I updated https://gist.github.com/spiffxp/1cbf779d7dc1c025a445b91909f55bf7 with log output |
Since I just changed a bunch of staging project permissions I want to see if I can e-mail folks to give them a heads-up #1878 |
I cannot, not without being a member of the groups. |
ah fun!! |
/milestone v1.22 |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle stale |
/milestone v1.23 |
@spiffxp: Those labels are not set on the 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. |
/remove-priority important-soon |
While provisioning a fresh staging project I took the opportunity to look at what extra services were enabled as dependencies. ref: #2688 |
Re-running # TODO: this is expected as a special case for this project, how to encode this?
k8s-staging-cluster-api-gcp:
- compute.googleapis.com
- oslogin.googleapis.com
# TODO: not so sure about this one
k8s-staging-sig-storage:
- compute.googleapis.com
- oslogin.googleapis.com Most everything has |
#2813 adds the ability to specify additional special case services for |
Finished a full run of This legitimately caught and disabled services that were enabled when I browed the UI for k8s-staging-test-infra:
|
/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. |
ref: cf5f5e3 and #1534 (comment)
Staging projects run GCB, they shouldn't need compute, bigquery, iam, monitoring, oslogin, etc...
We should consider explicitly disabling:
We could go bigger and explicitly disable anything not intended to be enabled.
How/when to do this? I see a few options:
I prefer option B, and then option C. And not "going big" until we've gained confidence that we're not going to foot-gun ourselves.
Would also be curious what a terraform or crossplane approach to "ensure only these services are enabled and no others" looks like.
/wg k8s-infra
/sig release
/area release-eng
/priority important-soon
/milestone v1.21
The text was updated successfully, but these errors were encountered: