Repository navigation
fix(traffic): keep store directories out of host deletion - #556
Merged
Merged
Conversation
DeleteHostsExact built a directory path from every requested host. A name that sanitizes to _index, _blobs, _ca, or _delete_staging is the store itself, so the batch delete moved those directories out with the host trees. Index rows for the host are still removed.
Contributor
|
Review notes Correct on Linux, and the test fails without the fix. It can still be bypassed on case-insensitive filesystems, though. Required:
Nit: the |
BaaRai
force-pushed
the
fix/traffic-host-reserved
branch
from
November 26, 2026 22:09
483d174 to
ed6d0cb
Compare
BaaRai
force-pushed
the
fix/traffic-host-reserved
branch
from
November 26, 2026 22:24
ed6d0cb to
e47776f
Compare
BaaRai
added a commit
to 5P34R/ARTEX
that referenced
this pull request
Nov 26, 2026
Owner
|
Merged, thanks @Coff0xc. Rebased on current main and verified with its tests and negative control. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Deleting an exact host list built a directory from every requested name.
_index,_blobs,_ca, and_delete_stagingare the capture index, the blob store, the MITM CA, and the delete staging area, so those names were moved out with the host trees..and..named the traffic directory or its parent.Index rows for such a host are still removed. Those directories are not.
go test -count=1 -run "TestHostDirSkipsStorePaths|TestDeleteHostsExactSkipsStoreDirs|TestDeleteHostsExact$" ./traffic/passed.