-
Notifications
You must be signed in to change notification settings - Fork 38
Extend webserver collection #264
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
Conversation
|
What version should I put at line 873? See question marks. |
|
Any news on this? |
|
@Schamper do you have some time to take a second look at this? |
|
I'd like @twiggler to have an opinion too. |
|
@twiggler do you have some time to review this? |
|
One detail I don't like is that we are invoking a private method in target from acquire. I think this is a design oversight in the implementation of fox-it/dissect.target#1082. Clearly, Perhaps we should rename Otherwise it looks fine! |
Not necessarily. fox-it/dissect.target#1082 (review) goes into more detail here:
|
Ah yes, we decided to defer. Although I don´t see any config paths yet in the companion target PR, I think it would indeed be a good idea to introduce |
|
To clarify, you want me to create a function I do think the naming is confusing. Maybe something like would be clearer? |
Yes. Although I think we can leave the config_file part, because we don´t need that yet (I don´t see them in fox-it/dissect.target#1287) The implementation of Plugin::get_all_paths() indeed invokes You can then remove the snippet, and indeed invoke The implementations of I agree that the naming of the functions is not ideal. Actually, this is a bit of a contentious issue because I would like to keep the direct files feature restricted to these plugin, primarily because I don´t like how it works :). I would advocate for users to run parsers directly on log files without the target machinery. Next week I am away, these are my 2 cents, Schamper can take over in my absence. |
Only a very small amount of plugins work on "logs", so the name is fine in my opinion. Most artifacts are not "logs".
And not every "other" path is a config.
That doesn't change how a |
Correct, because that is handled by I don´t feel particularly strong about |
|
I see these functions in Why do we need to create a new function |
|
@qmadev It's all very confusing but I've not had a better idea yet. |
|
Is this what you guys meant? All seems to work fine. Config files get collected as well. |
twiggler
left a comment
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.
Indeed this is how we envisioned it.
|
@twiggler comments here and in dissect.target should be resolved! |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #264 +/- ##
==========================================
+ Coverage 44.90% 44.94% +0.03%
==========================================
Files 26 26
Lines 3543 3558 +15
==========================================
+ Hits 1591 1599 +8
- Misses 1952 1959 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-authored-by: twiggler <12800443+twiggler@users.noreply.github.com>
Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
f2ae8b8 to
9224463
Compare
twiggler
left a comment
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.
Also remove the chain import
acquire/acquire.py
Outdated
| DeprecationWarning, | ||
| stacklevel=2, | ||
| ) | ||
| return WebserverLog.get_spec_additions(cls, target, cli_args) |
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.
| return WebserverLog.get_spec_additions(cls, target, cli_args) | |
| return Webserver.get_spec_additions(cls, target, cli_args) |
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.
fixed!
|
don't forget to change the dissect.target dependency inside the pyproject.toml file diff --git a/pyproject.toml b/pyproject.toml
index 36d7e33..9032ab7 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -26,7 +26,7 @@ classifiers = [
]
dependencies = [
"dissect.cstruct>=4,<5",
- "dissect.target>=3.24,<4",
+ "dissect.target>=3.25.dev,<4", # TODO: update on release
]
dynamic = ["version"]
@@ -47,7 +47,7 @@ full = [
dev = [
"acquire[full]",
"dissect.cstruct>=4.0.dev,<5.0.dev",
- "dissect.target[dev]>=3.24.dev,<4.0.dev",
+ "dissect.target[dev]>=3.25.dev,<4.0.dev",
]
[dependency-groups] |
|
Will fix this Thursday. |
closes #139
Testing on VMs with IIS, Nginx and Caddy seems to work fine with an adjusted version of
dissect.target#1287.The issue specifies that tests should be written. Do we still want that, even with the tests that are already there in
dissect.target?