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

[fluentd-gcp addon] Remove audit logs from the fluentd configuration #52777

Merged

Conversation

crassirostris
Copy link

Since this approach is deprecated, remove support for basic auditing from the fluentd configuration

[fluentd-gcp addon] Default configuration no longer supports basic audit logging.

@crassirostris crassirostris added area/logging area/platform/gce area/provider/gcp Issues or PRs related to gcp provider kind/bug Categorizes issue or PR as related to a bug. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/instrumentation Categorizes an issue or PR as relevant to SIG Instrumentation. labels Sep 20, 2017
@crassirostris crassirostris added this to the v1.8 milestone Sep 20, 2017
@crassirostris crassirostris requested a review from piosz September 20, 2017 09:12
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Sep 20, 2017
@piosz
Copy link
Member

piosz commented Sep 20, 2017

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 20, 2017
@crassirostris
Copy link
Author

/approve no-issue

@k8s-github-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: crassirostris, piosz

Associated issue requirement bypassed by: crassirostris

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

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-github-robot k8s-github-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 20, 2017
@crassirostris
Copy link
Author

/retest

@k8s-github-robot
Copy link

/test all [submit-queue is verifying that this PR is safe to merge]

@k8s-github-robot
Copy link

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here..

@k8s-github-robot k8s-github-robot merged commit 7755dee into kubernetes:master Sep 20, 2017
@cknowles
Copy link

@crassirostris, may I ask what the new approach is? We're using a downstream version of the same config across clouds directing our logs to Stackdriver so we just want to be aware of whatever the new approach is so we can update appropriately.

@crassirostris
Copy link
Author

@cknowles
Copy link

@crassirostris thanks! I take it that means a switch to the webhook backend for GKE. I've been digging around to figure out if that'll be supported by non-GCP clouds or we have to have different approaches now.

@crassirostris
Copy link
Author

@c-knowles Sorry, what I meant in this PR is that basic auditing is deprecated, but advanced auditing or just auditing can be used now with the old approach, you can just consume JSONs from the audit log file. There are example of configuring logging agent to do just that in the article I linked above

@cknowles
Copy link

@crassirostris ok thanks. We'll use that for now. I don't have much visibility on advanced auditing and what's to come but I'm also working on the kube-aws project so would like a sensible default there (it defaults to file output right now). I take it the deprecation here means for GKE and perhaps it uses some other mechanism or a flag value of - for stdout. BTW, if there is a better place for this I'm happy to post it elsewhere.

@crassirostris
Copy link
Author

@c-knowles No, deprecation happened on the Kubernetes level. There used to be an old mechanism for auditing and now there's a completely new one, grasped in the following design proposal, old one is (being) removed from Kubernetes altogether

@cknowles
Copy link

@crassirostris thanks for the design link, it will be very useful for me. I understand there's a new mechanism just I thought the addon code was the base fluentd config for kubernetes, at least on GKE/GCP. I could have missed something in the recent updates but in the base fluentd config after this PR it appears there's nothing which covers audit logs at all? Maybe my question should have been whether the overall plan is to document example fluentd config only on kubernetes.io instead of in addons source?

@crassirostris
Copy link
Author

@c-knowles

in the base fluentd config after this PR it appears there's nothing which covers audit logs at all?

Yes, that's intended. The approach here is that config is not set in stone, it's intended to be changed for each concrete case. E.g. in GKE environment audit logs are collected using webhook, so there's no need to configure logging agent

the overall plan is to document example fluentd config only on kubernetes.io instead of in addons source?

Yes, you can say that

@cknowles
Copy link

@crassirostris great, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/logging area/platform/gce area/provider/gcp Issues or PRs related to gcp provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/instrumentation Categorizes an issue or PR as relevant to SIG Instrumentation. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants