• Kubernetes Submit Queue's avatar
    Merge pull request #46897 from timstclair/audit-policy · ea4764bf
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 46897, 46899, 46864, 46854, 46875)
    
    Write audit policy file for GCE/GKE configuration
    
    Setup the audit policy configuration for GCE & GKE. Here is the high level summary of the policy:
    
    - Default logging everything at `Metadata`
    - Known write APIs default to `RequestResponse`
    - Known read-only APIs default to `Request`
    - Except secrets & configmaps are logged at `Metadata`
    - Don't log events
    - Don't log `/version`, swagger or healthchecks
    
    In addition to the above, I spent time analyzing the noisiest lines in the audit log from a cluster that soaked for 24 hours (and ran a batch of e2e tests). Of those top requests, those that were identified as low-risk (all read-only, except update kube-system endpoints by controllers) are dropped.
    
    I suspect we'll want to tweak this a bit more once we've had a time to soak it on some real clusters.
    
    For kubernetes/features#22
    
    /cc @sttts @ericchiang
    ea4764bf
Name
Last commit
Last update
..
addons Loading commit data...
aws Loading commit data...
centos Loading commit data...
gce Loading commit data...
gke Loading commit data...
images Loading commit data...
juju Loading commit data...
kubemark Loading commit data...
lib Loading commit data...
libvirt-coreos Loading commit data...
local Loading commit data...
openstack-heat Loading commit data...
photon-controller Loading commit data...
saltbase Loading commit data...
skeleton Loading commit data...
vagrant Loading commit data...
vsphere Loading commit data...
windows Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
README.md Loading commit data...
clientbin.sh Loading commit data...
common.sh Loading commit data...
get-kube-binaries.sh Loading commit data...
get-kube-local.sh Loading commit data...
get-kube.sh Loading commit data...
kube-down.sh Loading commit data...
kube-push.sh Loading commit data...
kube-up.sh Loading commit data...
kube-util.sh Loading commit data...
kubeadm.sh Loading commit data...
kubectl.sh Loading commit data...
log-dump.sh Loading commit data...
options.md Loading commit data...
restore-from-backup.sh Loading commit data...
test-e2e.sh Loading commit data...
test-network.sh Loading commit data...
test-smoke.sh Loading commit data...
update-storage-objects.sh Loading commit data...
validate-cluster.sh Loading commit data...