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

audit as of 2020-02-17 #1676

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Bucket Policy Only setting for gs://k8s-conform-provider-openstack:
Copy link
Member

Choose a reason for hiding this comment

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

I see no trace of this in the codebase? Why does it exist?

Copy link
Member

Choose a reason for hiding this comment

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

@dims 2/15/21

Explain?

Copy link
Member

Choose a reason for hiding this comment

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

looks like we have a bunch of these. i only run scripts, i don't know enough to meddle in the UI :) I believe i was re-running some of the conform buckets

[dims@dims-a01 07:15] ~/go/src/k8s.io/k8s.io ⟩ rg -i "Bucket Policy Only" | wc -l
     244

In this instance i think i was trying to re-run scripts again to see how to help with:
kubernetes/test-infra#20914

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Ultimately I would like for us to have this enabled across the org, and enforced via an org policy

per-object ACLs are much trickier to audit and enforce

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, my point in tagging @dims was that I can't find any trace of these projects in git. Did someone forget to send a PR?

Copy link
Member

Choose a reason for hiding this comment

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

i know we cleaned some stuff up in:
#1311 (comment)

Only reference to k8s-conform-provider-openstack i can find is:
theopenlab/openlab#691

may be @chrigl knows more?

Copy link
Member Author

Choose a reason for hiding this comment

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

@thockin it is in the codebase

Copy link
Member

Choose a reason for hiding this comment

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

I apologize. I got bitten by master/main - I had not resynced this copy in a while and was trying to sync master and not noticing that it failed.

Indeed, it is in the tree. Mea culpa, my apologies.

Enabled: True
LockedTime: 2021-05-16 15:12:16.571000+00:00

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gs://k8s-conform-provider-openstack/ has no CORS configuration.
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"bindings": [
{
"members": [
"group:[email protected]",
"projectEditor:k8s-conform",
"projectOwner:k8s-conform"
],
"role": "roles/storage.legacyBucketOwner"
},
{
"members": [
"projectViewer:k8s-conform"
],
"role": "roles/storage.legacyBucketReader"
},
{
"members": [
"group:[email protected]",
"serviceAccount:[email protected]"
],
"role": "roles/storage.legacyBucketWriter"
},
{
"members": [
"group:[email protected]",
"group:[email protected]",
"serviceAccount:[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-conform-provider-openstack/ has no logging configuration.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"createTime": "2021-02-15T15:18:08.840992Z",
"name": "projects/228988630781/secrets/service-provider-openstack-key",
"replication": {
"automatic": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"bindings": [
{
"members": [
"group:[email protected]"
],
"role": "roles/secretmanager.secretAccessor"
}
],
"version": 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"createTime": "2021-02-15T15:18:09.874889Z",
"name": "projects/228988630781/secrets/service-provider-openstack-key/versions/1",
"replicationStatus": {
"automatic": {}
},
"state": "ENABLED"
}
]
8 changes: 8 additions & 0 deletions ...-accounts/[email protected]/description.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"displayName": "service-provider-openstack",
"email": "[email protected]",
"name": "projects/k8s-conform/serviceAccounts/[email protected]",
"oauth2ClientId": "114482259319052246948",
"projectId": "k8s-conform",
"uniqueId": "114482259319052246948"
}
1 change: 1 addition & 0 deletions .../service-accounts/[email protected]/iam.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}