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

results of running audit script as of 2021-01-13 #1534

Merged
merged 39 commits into from
Feb 18, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
e8c3d1a
Fix audit script secret list typo
spiffxp Jan 13, 2021
c640149
Add TODOs for unhandled services
spiffxp Jan 13, 2021
0c2ca8c
audit: update org admin membership
spiffxp Jan 14, 2021
4083417
audit: add custom prow.viewer role to org
spiffxp Jan 14, 2021
c102166
audit: add k8s-infra-e2e-boskos-scale-* projects
spiffxp Jan 13, 2021
9fbc0f0
audit: add k8s-infra-e2e-boskos-gpu-* projects
spiffxp Jan 13, 2021
5caaf90
audit: add k8s-infra-e2e-boskos-[041-120] projects
spiffxp Jan 13, 2021
8add7de
audit: add k8s-infra-e2e-* manual projects
spiffxp Jan 14, 2021
ab02be3
audit: update existing k8s-infra-e2e-boskos-[001-040] projects
spiffxp Jan 13, 2021
b9b614e
audit: enable services for prow build clusters
spiffxp Jan 14, 2021
29426db
audit: add prow viewer role to manual k8s-infra-e2e projects
spiffxp Jan 14, 2021
af431d1
audit: add prow viewer/oncall groups to k8s-infra-prow-build-trusted
spiffxp Jan 14, 2021
e3d188c
audit: add k8s-infra-prow-build-trusted secrets
spiffxp Jan 14, 2021
6660eae
audit: add prow-deployer service account
spiffxp Jan 14, 2021
5b54a5c
audit: rm k8s-staging-release-test project
spiffxp Jan 13, 2021
7cd3c63
audit: rm k8s-sig-release-prototype project
spiffxp Jan 13, 2021
0612bab
audit: add k8s-staging-* projects
spiffxp Jan 14, 2021
1ff4c21
audit: k8s-staging-* service enables
spiffxp Jan 14, 2021
d64f009
audit: add k8s-conform buckets
spiffxp Jan 14, 2021
924a495
audit: allow k8s-infra-prow-build-trusted to manage gsuite groups
spiffxp Jan 14, 2021
e84f81f
audit: add k8s-gsuite/wg-k8s-infra-billing_pw secret
spiffxp Jan 14, 2021
df80579
audit: add k8s-release project
spiffxp Jan 14, 2021
ed6a857
audit: add kubernetes-public secrets
spiffxp Jan 14, 2021
a495042
audit: bind trusted prow to k8s-infra-gcr-promoter SAs
spiffxp Jan 14, 2021
daf7712
audit: misc project quota / service rename updates
spiffxp Jan 14, 2021
7df09ce
audit: add buckets to k8s-artifacts-prod
spiffxp Jan 14, 2021
de8ae62
audit: add k8s-artifacts-prod/k8s-infra-gcr-vuln-dashboard SA
spiffxp Jan 14, 2021
2c1fae7
audit: add k8s-artifacts-prod/k8s-infra-gcr-vuln-scanning SA
spiffxp Jan 14, 2021
9944317
audit: allow prow-build to write to k8s-release-test-prod bucket
spiffxp Jan 14, 2021
490c7c3
audit: add kubernetes-public/k8s-infra-monitoring-viewer SA
spiffxp Jan 14, 2021
c4c488d
audit: add kubernetes-public/k8s-infra-dns-updater SA
spiffxp Jan 14, 2021
7d31f1f
audit: add k8s.dev, kubernetes.dev DNS to kubernetes-public
spiffxp Jan 14, 2021
0146a9e
audit: FIX disable/delete k8s-staging-csi gke cluster
spiffxp Jan 14, 2021
cf5f5e3
audit: QQ k8s-staging-artifact-promoter: why is compute enabled
spiffxp Jan 14, 2021
d50b705
audit: QQ k8s-staging-capi-docker: why is dns enabled
spiffxp Jan 14, 2021
8b85662
audit: QQ k8s-staging-e2e-test-images: why are all these services ena…
spiffxp Jan 14, 2021
9841ab6
audit: QQ: k8s-gcr-backup-test-prod-bak: why bind this SA to prow-build?
spiffxp Jan 14, 2021
eb88737
audit: QQ kubernetes-public: why is an appengine SA present?
spiffxp Jan 14, 2021
d3ad9b7
audit: QQ kubernetes-public: why cloudfunctions and source enabled?
spiffxp Jan 14, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions audit/projects/k8s-infra-e2e-boskos-scale-01/description.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
Copy link
Member

Choose a reason for hiding this comment

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

I wrote a quick script to diff all 30 of these.

06-30 have higher quotas than 01-05.

Not enough to abort this audit, but worth noting. Issue filed

"createTime": "2020-05-26T23:20:18.783Z",
"lifecycleState": "ACTIVE",
"name": "k8s-infra-e2e-boskos-scale-01",
"parent": {
"id": "758905017065",
"type": "organization"
},
"projectId": "k8s-infra-e2e-boskos-scale-01",
"projectNumber": "40460865376"
}
40 changes: 40 additions & 0 deletions audit/projects/k8s-infra-e2e-boskos-scale-01/iam.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"bindings": [
{
"members": [
"group:[email protected]"
],
"role": "organizations/758905017065/roles/prow.viewer"
},
{
"members": [
"serviceAccount:[email protected]"
],
"role": "roles/compute.serviceAgent"
},
{
"members": [
"serviceAccount:[email protected]",
"serviceAccount:[email protected]",
"serviceAccount:[email protected]",
"serviceAccount:[email protected]"
],
"role": "roles/editor"
},
{
"members": [
"group:[email protected]",
"group:[email protected]",
"user:[email protected]"
],
"role": "roles/owner"
},
{
"members": [
"group:[email protected]"
],
"role": "roles/viewer"
}
],
"version": 1
}
8 changes: 8 additions & 0 deletions ...le-01/service-accounts/[email protected]/description.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"displayName": "Compute Engine default service account",
"email": "[email protected]",
"name": "projects/k8s-infra-e2e-boskos-scale-01/serviceAccounts/[email protected]",
"oauth2ClientId": "104531253745867244065",
"projectId": "k8s-infra-e2e-boskos-scale-01",
"uniqueId": "104531253745867244065"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
{
"commonInstanceMetadata": {
"items": [
{
"key": "ssh-keys",
"value": "prow:ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCmYxHh/wwcV0P1aChuFLpl28w6DFyc7G5Xrw1F8wH1Re9AdxyemM2bTZ/PhsP3u9VDnNbyOw3UN00VFdumkFLjLf1WQ7Q6rZDlPjlw7urBIvAMqUecY6ae1znqsZ0dMBxOuPXHznlnjLjM5b7O7q5WsQMCA9Szbmz6DsuSyCuX0It2osBTN+8P/Fa6BNh3W8AF60M7L8/aUzLfbXVS2LIQKAHHD8CWqvXhLPuTJ03iSwFvgtAK1/J2XJwUP+OzAFrxj6A9LW5ZZgk3R3kRKr0xT/L7hga41rB1qy8Uz+Xr/PTVMNGW+nmU4bPgFchCK0JBK7B12ZcdVVFUEdpaAiKZ prow\nprow:prow:ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCmYxHh/wwcV0P1aChuFLpl28w6DFyc7G5Xrw1F8wH1Re9AdxyemM2bTZ/PhsP3u9VDnNbyOw3UN00VFdumkFLjLf1WQ7Q6rZDlPjlw7urBIvAMqUecY6ae1znqsZ0dMBxOuPXHznlnjLjM5b7O7q5WsQMCA9Szbmz6DsuSyCuX0It2osBTN+8P/Fa6BNh3W8AF60M7L8/aUzLfbXVS2LIQKAHHD8CWqvXhLPuTJ03iSwFvgtAK1/J2XJwUP+OzAFrxj6A9LW5ZZgk3R3kRKr0xT/L7hga41rB1qy8Uz+Xr/PTVMNGW+nmU4bPgFchCK0JBK7B12ZcdVVFUEdpaAiKZ prow"
}
],
"kind": "compute#metadata"
},
"creationTimestamp": "2020-05-26T16:20:31.143-07:00",
"defaultNetworkTier": "PREMIUM",
"defaultServiceAccount": "[email protected]",
"id": "5770691874643778257",
"kind": "compute#project",
"name": "k8s-infra-e2e-boskos-scale-01",
"quotas": [
{
"limit": 5000,
"metric": "SNAPSHOTS"
},
{
"limit": 15,
"metric": "NETWORKS"
},
{
"limit": 200,
"metric": "FIREWALLS"
},
{
"limit": 2000,
"metric": "IMAGES"
},
{
"limit": 21,
"metric": "STATIC_ADDRESSES"
},
{
"limit": 250,
"metric": "ROUTES"
},
{
"limit": 45,
"metric": "FORWARDING_RULES"
},
{
"limit": 150,
"metric": "TARGET_POOLS"
},
{
"limit": 150,
"metric": "HEALTH_CHECKS"
},
{
"limit": 69,
"metric": "IN_USE_ADDRESSES"
},
{
"limit": 150,
"metric": "TARGET_INSTANCES"
},
{
"limit": 30,
"metric": "TARGET_HTTP_PROXIES"
},
{
"limit": 30,
"metric": "URL_MAPS"
},
{
"limit": 9,
"metric": "BACKEND_SERVICES"
},
{
"limit": 300,
"metric": "INSTANCE_TEMPLATES"
},
{
"limit": 15,
"metric": "TARGET_VPN_GATEWAYS"
},
{
"limit": 30,
"metric": "VPN_TUNNELS"
},
{
"limit": 9,
"metric": "BACKEND_BUCKETS"
},
{
"limit": 10,
"metric": "ROUTERS"
},
{
"limit": 30,
"metric": "TARGET_SSL_PROXIES"
},
{
"limit": 30,
"metric": "TARGET_HTTPS_PROXIES"
},
{
"limit": 30,
"metric": "SSL_CERTIFICATES"
},
{
"limit": 175,
"metric": "SUBNETWORKS"
},
{
"limit": 30,
"metric": "TARGET_TCP_PROXIES"
},
{
"limit": 10,
"metric": "SECURITY_POLICIES"
},
{
"limit": 100,
"metric": "SECURITY_POLICY_RULES"
},
{
"limit": 45,
"metric": "PACKET_MIRRORINGS"
},
{
"limit": 300,
"metric": "NETWORK_ENDPOINT_GROUPS"
},
{
"limit": 6,
"metric": "INTERCONNECTS"
},
{
"limit": 5000,
"metric": "GLOBAL_INTERNAL_ADDRESSES"
},
{
"limit": 15,
"metric": "VPN_GATEWAYS"
},
{
"limit": 2000,
"metric": "MACHINE_IMAGES"
},
{
"limit": 20,
"metric": "SECURITY_POLICY_CEVAL_RULES"
},
{
"limit": 15,
"metric": "EXTERNAL_VPN_GATEWAYS"
},
{
"limit": 1,
"metric": "PUBLIC_ADVERTISED_PREFIXES"
},
{
"limit": 10,
"metric": "PUBLIC_DELEGATED_PREFIXES"
},
{
"limit": 1024,
"metric": "STATIC_BYOIP_ADDRESSES"
}
],
"selfLink": "https://www.googleapis.com/compute/v1/projects/k8s-infra-e2e-boskos-scale-01",
"xpnProjectStatus": "UNSPECIFIED_XPN_PROJECT_STATUS"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
NAME TITLE
compute.googleapis.com Compute Engine API
logging.googleapis.com Cloud Logging API
monitoring.googleapis.com Cloud Monitoring API
oslogin.googleapis.com Cloud OS Login API
storage-component.googleapis.com Cloud Storage
11 changes: 11 additions & 0 deletions audit/projects/k8s-infra-e2e-boskos-scale-02/description.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"createTime": "2020-05-26T23:25:53.498Z",
"lifecycleState": "ACTIVE",
"name": "k8s-infra-e2e-boskos-scale-02",
"parent": {
"id": "758905017065",
"type": "organization"
},
"projectId": "k8s-infra-e2e-boskos-scale-02",
"projectNumber": "660290009727"
}
40 changes: 40 additions & 0 deletions audit/projects/k8s-infra-e2e-boskos-scale-02/iam.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"bindings": [
{
"members": [
"group:[email protected]"
],
"role": "organizations/758905017065/roles/prow.viewer"
},
{
"members": [
"serviceAccount:[email protected]"
],
"role": "roles/compute.serviceAgent"
},
{
"members": [
"serviceAccount:[email protected]",
"serviceAccount:[email protected]",
"serviceAccount:[email protected]",
"serviceAccount:[email protected]"
],
"role": "roles/editor"
},
{
"members": [
"group:[email protected]",
"group:[email protected]",
"user:[email protected]"
],
"role": "roles/owner"
},
{
"members": [
"group:[email protected]"
],
"role": "roles/viewer"
}
],
"version": 1
}
8 changes: 8 additions & 0 deletions ...e-02/service-accounts/[email protected]/description.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"displayName": "Compute Engine default service account",
"email": "[email protected]",
"name": "projects/k8s-infra-e2e-boskos-scale-02/serviceAccounts/[email protected]",
"oauth2ClientId": "115516548101087659210",
"projectId": "k8s-infra-e2e-boskos-scale-02",
"uniqueId": "115516548101087659210"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Loading