-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 log: set default max size #16543
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: medyagh, spowelljr The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -121,7 +121,11 @@ func LogCommandEnd(id string) error { | |||
} | |||
|
|||
func getStartIndex(entryCount int) int { | |||
maxEntries := viper.GetInt(config.MaxAuditEntries) | |||
// default to 1000 entries |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm... I wonder what is the best thing to do to if the audilog was already more than that in the files...should delete it ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will truncate the existing file, so if it's currently 2000 lines, it will truncate it to the last 1000
/ok-to-test |
kvm2 driver with docker runtime
Times for minikube start: 51.9s 53.2s 53.0s 54.3s 54.6s Times for minikube ingress: 27.7s 28.2s 28.2s 28.6s 28.2s docker driver with docker runtime
Times for minikube start: 21.5s 23.9s 21.2s 24.5s 21.5s Times for minikube ingress: 20.8s 20.8s 20.8s 20.8s 19.9s docker driver with containerd runtime
Times for minikube (PR 16543) start: 20.8s 23.3s 20.6s 21.1s 23.2s Times for minikube ingress: 31.3s 30.3s 19.3s 18.4s 31.3s |
These are the flake rates of all failed tests.
To see the flake rates of all tests by environment, click here. |
I was looking at some of our CI machines and the audit logging was failing:
Then I looked at the size of the file:
It has over 1.6 million lines of audits:
This PR sets the default number of audit lines to 1000 if not explicitly set by the user.