Skip to content

Commit

Permalink
Merge pull request kubernetes#2001 from cncf-ci/autoaudit-prow
Browse files Browse the repository at this point in the history
audit: update as of 2021-05-05
  • Loading branch information
k8s-ci-robot authored May 5, 2021
2 parents f0b0cb0 + c8149ac commit 2cfeed5
Show file tree
Hide file tree
Showing 35 changed files with 285 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@
"group:[email protected]"
],
"role": "roles/storage.objectAdmin"
},
{
"members": [
"group:[email protected]"
],
"role": "roles/storage.objectViewer"
}
]
}
12 changes: 12 additions & 0 deletions audit/projects/k8s-artifacts-prod/iam.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,24 @@
],
"role": "roles/errorreporting.user"
},
{
"members": [
"serviceAccount:[email protected]"
],
"role": "roles/errorreporting.writer"
},
{
"members": [
"serviceAccount:[email protected]"
],
"role": "roles/iam.serviceAccountTokenCreator"
},
{
"members": [
"serviceAccount:[email protected]"
],
"role": "roles/logging.logWriter"
},
{
"members": [
"group:[email protected]"
Expand Down
8 changes: 8 additions & 0 deletions ...ccounts/[email protected]/description.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"displayName": "k8s-infra container image auditor",
"email": "[email protected]",
"name": "projects/k8s-artifacts-prod/serviceAccounts/[email protected]",
"oauth2ClientId": "113024649066440988760",
"projectId": "k8s-artifacts-prod",
"uniqueId": "113024649066440988760"
}
11 changes: 11 additions & 0 deletions ...ervice-accounts/[email protected]/iam.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"bindings": [
{
"members": [
"group:[email protected]"
],
"role": "roles/iam.serviceAccountUser"
}
],
"version": 1
}
1 change: 1 addition & 0 deletions audit/projects/k8s-artifacts-prod/services/enabled.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ cloudtrace.googleapis.com Cloud Trace API
compute.googleapis.com Compute Engine API
containeranalysis.googleapis.com Container Analysis API
containerregistry.googleapis.com Container Registry API
containerscanning.googleapis.com Container Scanning API
datastore.googleapis.com Cloud Datastore API
logging.googleapis.com Cloud Logging API
monitoring.googleapis.com Cloud Monitoring API
Expand Down
2 changes: 1 addition & 1 deletion audit/projects/k8s-infra-prow-build-trusted/iam.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"members": [
"group:[email protected]"
],
"role": "projects/k8s-infra-prow-build-trusted/roles/ServiceAccountLister"
"role": "organizations/758905017065/roles/iam.serviceAccountLister"
},
{
"members": [
Expand Down

This file was deleted.

8 changes: 4 additions & 4 deletions audit/projects/k8s-infra-prow-build/iam.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"bindings": [
{
"members": [
"group:k8s-infra-prow-viewers@kubernetes.io"
"group:k8s-infra-cluster-admins@kubernetes.io"
],
"role": "organizations/758905017065/roles/prow.viewer"
"role": "organizations/758905017065/roles/iam.serviceAccountLister"
},
{
"members": [
"group:k8s-infra-cluster-admins@kubernetes.io"
"group:k8s-infra-prow-viewers@kubernetes.io"
],
"role": "projects/k8s-infra-prow-build/roles/ServiceAccountLister"
"role": "organizations/758905017065/roles/prow.viewer"
},
{
"members": [
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Bucket Policy Only setting for gs://artifacts.k8s-staging-test-infra.appspot.com:
Enabled: True
LockedTime: 2021-08-02 20:28:08.351000+00:00

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gs://artifacts.k8s-staging-test-infra.appspot.com/ has no CORS configuration.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"bindings": [
{
"members": [
"group:[email protected]",
"projectEditor:k8s-staging-test-infra",
"projectOwner:k8s-staging-test-infra"
],
"role": "roles/storage.legacyBucketOwner"
},
{
"members": [
"projectViewer:k8s-staging-test-infra"
],
"role": "roles/storage.legacyBucketReader"
},
{
"members": [
"group:[email protected]"
],
"role": "roles/storage.legacyBucketWriter"
},
{
"members": [
"group:[email protected]",
"group:[email protected]"
],
"role": "roles/storage.objectAdmin"
},
{
"members": [
"allUsers"
],
"role": "roles/storage.objectViewer"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gs://artifacts.k8s-staging-test-infra.appspot.com/ has no logging configuration.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Bucket Policy Only setting for gs://k8s-staging-test-infra-gcb:
Enabled: True
LockedTime: 2021-08-02 20:29:19.330000+00:00

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gs://k8s-staging-test-infra-gcb/ has no CORS configuration.
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"bindings": [
{
"members": [
"group:[email protected]",
"projectEditor:k8s-staging-test-infra",
"projectOwner:k8s-staging-test-infra"
],
"role": "roles/storage.legacyBucketOwner"
},
{
"members": [
"projectViewer:k8s-staging-test-infra"
],
"role": "roles/storage.legacyBucketReader"
},
{
"members": [
"group:[email protected]"
],
"role": "roles/storage.legacyBucketWriter"
},
{
"members": [
"group:[email protected]",
"group:[email protected]"
],
"role": "roles/storage.objectAdmin"
},
{
"members": [
"serviceAccount:[email protected]",
"serviceAccount:[email protected]"
],
"role": "roles/storage.objectCreator"
},
{
"members": [
"allUsers",
"serviceAccount:[email protected]",
"serviceAccount:[email protected]"
],
"role": "roles/storage.objectViewer"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gs://k8s-staging-test-infra-gcb/ has no logging configuration.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Bucket Policy Only setting for gs://k8s-staging-test-infra:
Enabled: True
LockedTime: 2021-08-02 20:28:41.006000+00:00

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gs://k8s-staging-test-infra/ has no CORS configuration.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"bindings": [
{
"members": [
"group:[email protected]",
"projectEditor:k8s-staging-test-infra",
"projectOwner:k8s-staging-test-infra"
],
"role": "roles/storage.legacyBucketOwner"
},
{
"members": [
"projectViewer:k8s-staging-test-infra"
],
"role": "roles/storage.legacyBucketReader"
},
{
"members": [
"group:[email protected]"
],
"role": "roles/storage.legacyBucketWriter"
},
{
"members": [
"group:[email protected]",
"group:[email protected]"
],
"role": "roles/storage.objectAdmin"
},
{
"members": [
"allUsers"
],
"role": "roles/storage.objectViewer"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gs://k8s-staging-test-infra/ has no logging configuration.
11 changes: 11 additions & 0 deletions audit/projects/k8s-staging-test-infra/description.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"createTime": "2021-05-04T20:26:34.947Z",
"lifecycleState": "ACTIVE",
"name": "k8s-staging-test-infra",
"parent": {
"id": "758905017065",
"type": "organization"
},
"projectId": "k8s-staging-test-infra",
"projectNumber": "958928310150"
}
68 changes: 68 additions & 0 deletions audit/projects/k8s-staging-test-infra/iam.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"bindings": [
{
"members": [
"serviceAccount:[email protected]",
"serviceAccount:[email protected]",
"serviceAccount:[email protected]"
],
"role": "roles/cloudbuild.builds.builder"
},
{
"members": [
"group:[email protected]"
],
"role": "roles/cloudbuild.builds.editor"
},
{
"members": [
"serviceAccount:[email protected]"
],
"role": "roles/cloudbuild.serviceAgent"
},
{
"members": [
"serviceAccount:[email protected]"
],
"role": "roles/containeranalysis.ServiceAgent"
},
{
"members": [
"serviceAccount:k8s-infra-gcr-vuln-scanning@k8s-artifacts-prod.iam.gserviceaccount.com"
],
"role": "roles/containeranalysis.occurrences.viewer"
},
{
"members": [
"serviceAccount:[email protected]"
],
"role": "roles/containerregistry.ServiceAgent"
},
{
"members": [
"serviceAccount:service-958928310150@gcp-sa-containerscanning.iam.gserviceaccount.com"
],
"role": "roles/containerscanning.ServiceAgent"
},
{
"members": [
"serviceAccount:[email protected]"
],
"role": "roles/pubsub.serviceAgent"
},
{
"members": [
"group:[email protected]"
],
"role": "roles/serviceusage.serviceUsageConsumer"
},
{
"members": [
"group:[email protected]",
"group:[email protected]"
],
"role": "roles/viewer"
}
],
"version": 1
}
11 changes: 11 additions & 0 deletions audit/projects/k8s-staging-test-infra/services/enabled.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
NAME TITLE
cloudbuild.googleapis.com Cloud Build API
cloudkms.googleapis.com Cloud Key Management Service (KMS) API
containeranalysis.googleapis.com Container Analysis API
containerregistry.googleapis.com Container Registry API
containerscanning.googleapis.com Container Scanning API
logging.googleapis.com Cloud Logging API
pubsub.googleapis.com Cloud Pub/Sub API
secretmanager.googleapis.com Secret Manager API
storage-api.googleapis.com Google Cloud Storage JSON API
storage-component.googleapis.com Cloud Storage
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"bindings": [
{
"members": [
"group:[email protected]"
"group:[email protected]",
"user:[email protected]"
],
"role": "roles/storage.admin"
},
{
"members": [
"group:[email protected]",
"projectEditor:kubernetes-public",
"projectOwner:kubernetes-public"
],
"role": "roles/storage.legacyBucketOwner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
{
"members": [
"group:[email protected]",
"projectEditor:kubernetes-public",
"projectOwner:kubernetes-public"
],
"role": "roles/storage.legacyBucketOwner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
{
"members": [
"group:[email protected]",
"projectEditor:kubernetes-public",
"projectOwner:kubernetes-public"
],
"role": "roles/storage.legacyBucketOwner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
{
"members": [
"group:[email protected]",
"projectEditor:kubernetes-public",
"projectOwner:kubernetes-public"
],
"role": "roles/storage.legacyBucketOwner"
Expand Down
Loading

0 comments on commit 2cfeed5

Please sign in to comment.