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 Update for kubernetes-public #1650

Closed
wants to merge 1 commit into from

Conversation

hh
Copy link
Member

@hh hh commented Feb 16, 2021

This is not a full audit update. It's missing secrets and is only for Kubernetes-public.

More to come as I work through them in manageable batches.

This is the first PR authored by @cncf-ci bot, so we'll need to figure out how to get the CLA signed... by the CNCF?

@k8s-ci-robot
Copy link
Contributor

Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA.

It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please sign in with your organization's credentials at https://identity.linuxfoundation.org/projects/cncf to be authorized.
  • If you have done the above and are still having issues with the CLA being reported as unsigned, please log a ticket with the Linux Foundation Helpdesk: https://support.linuxfoundation.org/
  • Should you encounter any issues with the Linux Foundation Helpdesk, send a message to the backup e-mail support address at: [email protected]

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. I understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Feb 16, 2021
@k8s-ci-robot k8s-ci-robot requested review from dims and thockin February 16, 2021 01:28
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: hh
To complete the pull request process, please assign mikedanese after the PR has been reviewed.
You can assign the PR to them by writing /assign @mikedanese in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added area/audit Audit of project resources, audit followup issues, code in audit/ wg/k8s-infra size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Feb 16, 2021
@@ -36,6 +36,7 @@ gcloud \
--filter="parent.id=${CNCF_GCP_ORG}" \
--format="value(name, projectNumber)" \
| sort \
| tail -1 | head -1 \
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the temporary limit to a single org. I'll remove this once we have all orgs updated.

Copy link
Member

Choose a reason for hiding this comment

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

can you move the script update to a separate commit (and/or PR)

# | jq 'del(.etag)' \
# > "${path}/iam.json"
# done
# ;;
Copy link
Member Author

Choose a reason for hiding this comment

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

Until #1648 passes, we'll skip this for now.

Comment on lines +75 to +77
Copy link
Member Author

Choose a reason for hiding this comment

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

I know these folks! All the right folks for org-admins!

],
"name": "organizations/758905017065/roles/prow.viewer",
"stage": "ALPHA",
"title": "Prow Viewer"
Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like a new monitoring roll... I think I saw this in yaml form:
https://github.com/kubernetes/k8s.io/blob/main/infra/gcp/roles/prow.viewer.yaml#L1

Though I'm unsure the tool used to load it into GCP.

"group:[email protected]"
],
"role": "roles/logging.privateLogViewer"
},
Copy link
Member Author

Choose a reason for hiding this comment

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

Does this the PII log field / IP addresses on k8s.gcr.io?
I'd like to understand that role a bit better.

"oauth2ClientId": "103924646831481972185",
"projectId": "kubernetes-public",
"uniqueId": "103924646831481972185"
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah for automation on this front! I think this happened a while back.

},
{
"limit": 1024,
"metric": "STATIC_BYOIP_ADDRESSES"
Copy link
Member Author

Choose a reason for hiding this comment

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

Are we used BYOIP from CNCF? Do the CNCF or Kubernetes community have an AS number to use with services at other cloud providers?

@@ -15,7 +16,9 @@ logging.googleapis.com Cloud Logging API
monitoring.googleapis.com Cloud Monitoring API
oslogin.googleapis.com Cloud OS Login API
pubsub.googleapis.com Cloud Pub/Sub API
secretmanager.googleapis.com Secret Manager API
Copy link
Member Author

Choose a reason for hiding this comment

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

I think this may be the new part of the audit/logging issues.
I suspect folks who have run the audit-gcp.sh script since adding secrets have had access to secret manager.

serviceusage.googleapis.com Service Usage API
source.googleapis.com Legacy Cloud Source Repositories API
Copy link
Member Author

Choose a reason for hiding this comment

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

What are we using here?

@@ -3,6 +3,7 @@ bigquery.googleapis.com BigQuery API
bigquery.googleapis.com BigQuery API
bigquerystorage.googleapis.com BigQuery Storage API
clouderrorreporting.googleapis.com Error Reporting API
cloudfunctions.googleapis.com Cloud Functions API
Copy link
Member Author

Choose a reason for hiding this comment

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

We'll need to setup auditing for the cloudfunctions config here, and any new entries. (I think there are still quite a few in the backlog).

@cncf-ci cncf-ci force-pushed the audit-kubernetes-public branch from 2fa9b08 to 4a3905f Compare February 16, 2021 02:29
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Feb 16, 2021
@spiffxp
Copy link
Member

spiffxp commented Feb 16, 2021

/hold
I'd like to first merge the initial audit PR I opened since it has much more granular comments #1534 (comment)

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 16, 2021
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 18, 2021
@k8s-ci-robot
Copy link
Contributor

@hh: PR needs rebase.

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.

@hh
Copy link
Member Author

hh commented Feb 18, 2021

I think with the other content merged, and it being a manual process. I think we'll leave further changes to the bot fully across the repo.

/close

@k8s-ci-robot
Copy link
Contributor

@hh: Closed this PR.

In response to this:

I think with the other content merged, and it being a manual process. I think we'll leave further changes to the bot fully across the repo.

/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/audit Audit of project resources, audit followup issues, code in audit/ cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants