-
Notifications
You must be signed in to change notification settings - Fork 26
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
CSAF checker: mixing domains, failing validations #522
Comments
Unfortunately I lost the log files from the workshop 🤷 sorry for that. |
It is intended that the checker should reset its state after working on one domain. Maybe there |
And while Go puts that into the "closures and goroutines" area, this can also be triggered in more basic scenarios, like: package main
func main() {
a := []int{1, 2, 3}
var b []*int
for _, v := range a {
b = append(b, &v)
}
for _, v := range a {
print(v, " ")
}
println()
for _, v := range b {
print(*v, " ")
}
println()
} And the code here feels a bit like that: https://github.com/csaf-poc/csaf_distribution/blob/6c8b3757aacef4e45d6fccf818a4218add03eed6/cmd/csaf_checker/processor.go#L249-L291 |
Sorry, I don't have the setup of the workshop anymore. That was as a set of |
I'm am pretty aware of this as this a long discussed flaw. I really would like to reproduce this issue before guessing about the reasons. |
Looking at the code https://github.com/csaf-poc/csaf_distribution/blob/6c8b3757aacef4e45d6fccf818a4218add03eed6/cmd/csaf_checker/processor.go#L290 does not get called if one of the |
I am sorry, I don't have one. But I think it should be easy to set one up with some wildcard DNS, cert and bash. |
I have created PR #523 to do the reset in any case. But this could only one reason for the issue. @ctron: If you find the time to reproduce it you may check the PR if it helps. |
Re-opening it for further examination by @JanHoefelmeyer . Maybe gets closed again soon. |
I need a short clarification @ctron : Do you remember the exact error you got for failing domains? Or whether the report was successful and a domain that should've passed via the checker was reported as faulty or whether the report couldn't be done? (Resulting in "Could not parse the Provider-Metadata.json of: 'insert domain name here'".) |
This sounds familiar. But I am not 100% sure, sorry. |
Okay, then since the only bugs I could reproduce are indeed those where the processor reset was skipped (fixed via #523), I'll consider this solved for now as well. |
During the CSAF workshop one task was to use
csaf_checker
to download and validate CSAF documents. As we had multiple (more than 10) "domains", I was using the command likecsaf_checker dns1 dns2 dns3 …
.That resulted in successful downloads, but failing validations for some domains, due to DNS in mismatches. Validating all domains with one domain each worked though.
It somehow feels like this is suffering from: https://go.dev/doc/faq#closures_and_goroutines … but maybe it is something different.
The text was updated successfully, but these errors were encountered: