-
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-infra GCP projects shouldn't have random services enabled #1887
Comments
/area infra/auditing |
As part of #1890 I'm looking at k8s-conform's services. This project should be storage-only, so definitely going to disable compute
|
#1890 (comment) removed extraneous services for |
I was looking into whether terraform could make this any easier... and it does not. They used to have a I'm iterating on an attempt to make |
/kind cleanup Ultimately I think the future here is a golang tool or something akin to crossplane rather than the ludicrous bash/jq I have going on |
I started to take a look at CRDs provided by config-connector : https://cloud.google.com/config-connector/docs/concepts/resources. |
From a freshly provisioned project (ref: #2195 (comment)) The existing bash/jq is not walking deps enough. None of the services should be unexpected after this first call.
I have a much gnarler set of jq lurking somewhere, I've been afraid to PR it since maybe it takes us too far in an unmaintainable direction. But I'm pretty sure it handles this correctly. I'll see if I can dig it up. |
So I don't know when this happened, but it appears that That's gonna put a real damper on automating an audit of this. |
/milestone v1.23 |
/milestone v1.24 |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
This is a followup to #1675 which was focused just on k8s-staging-* GCP projects
While I haven't found docs for it, I am told that over-privileged users (e.g. organization admins) who use the UI are capable of auto-enabling services as they click from project-to-project or service-to-service. I think I often run into this when I'm using a service in my personal project, and then switch to a kubernetes.io project.
#1859 adds an
ensure_only_services "${project}" "${services[@]}"
function to auto-disable services that were directly specified, or direct dependencies of what was specified. I wasn't comfortable enabling it by default for everything, and I didn't want to rewrite ensure-prod-storage.sh just yet.This issue is intended to cover:
The text was updated successfully, but these errors were encountered: