mirror of https://github.com/k3s-io/k3s
![]() Automatic merge from submit-queue Remove closing audit log file and add error check when writing to audit This picks the order fix from #33164. Additionally I've removed entirely closing the log file, since it didn't make sense where it was. I've also added error checks when actually writing to audit logs. @sttts ptal **1.4 justification:** Risk: the code only runs if auditing is enabled with an apiserver flag. So the risk is low. Rollback: nothing should depend on this Cost: the auditing feature is broken because the impersonation filter is applied before and you might not see the proper user when using `--as` flag. Additionally no errors are logged if writing to audit fails. |
||
---|---|---|
.. | ||
authorizer | ||
openapi | ||
options | ||
routes | ||
validation | ||
OWNERS | ||
config.go | ||
default_storage_factory_builder.go | ||
default_storage_factory_builder_test.go | ||
doc.go | ||
genericapiserver.go | ||
genericapiserver_test.go | ||
hooks.go | ||
resource_config.go | ||
resource_config_test.go | ||
resource_encoding_config.go | ||
reststorage_interfaces.go | ||
server_run_options_test.go | ||
storage_factory.go | ||
storage_factory_test.go | ||
tunneler.go | ||
tunneler_test.go |