#535: stop auditing ensure-mkdirs that hit already-exists (v0.6.193) #544
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-535"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Root cause of the "mkdir log dump on login": the home-directory ensure (#146) and scope's per-prefix
ensureRealre-run best-effort once per process — so on the first sign-in after every restart/version bump they Mkdir the whole existing tree, andaudit.Driver.Mkdirrecorded every attempt asmkdir — denied · already exists(the two actor-less rows were the home-ensure hook, which runs oncontext.Background()).Fix:
audit.Driver.Mkdirskips the event when the error isstorage.ErrAlreadyExists— a directory that was already there is neither an action nor a denial, in the same spirit as the deliberately-unaudited List/Stat. Real failures (read-only, holds, backend errors) and successful creates still land.TDD: red witnessed on the runner (flooded events), green with the full suite. CHANGELOG v0.6.193.