-
Notifications
You must be signed in to change notification settings - Fork 13
Br1 extraction #537
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
base: main
Are you sure you want to change the base?
Br1 extraction #537
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #537 +/- ##
==========================================
+ Coverage 58.38% 58.92% +0.55%
==========================================
Files 75 95 +20
Lines 8821 9296 +475
==========================================
+ Hits 5149 5477 +328
- Misses 3672 3819 +147 ☔ View full report in Codecov by Sentry. |
b1edbea to
878c97e
Compare
J08nY
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.
Cool PR. Thanks for the work! Really nicely done. It adds a bunch of code, though I guess that is understandable and most of it is in the JSON describing the format and the table dataclasses. I am not sure whether sec_certs.br1 is the right package for this. I think it makes the most sense to have it under sec_certs.br1.heuristics? (wdyt @adamjanovsky ?) Even though it is not a heuristic necessarily (the matching is a bit of a heuristic). Just having it top-level feels weird given that it is a bit of a niche feature in the grand scheme of things.
Also, when #525 lands, there should be tests that show the successful parsing of a BR1 policy.
|
|
||
|
|
||
| @dataclass | ||
| class ApprovedAlgo: |
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.
All of these DataClasses are quite verbose, though I like that it allows the type information to carry a lot of the structure and meta information about the data. Do you have any additional descriptions of these fields from the BR1? If so, could you (perhaps in an automated way or not) add them as docstrings to the classes and attributes? Just a single sentence (if available) would suffice.
The names are usually quite descriptive so this is not that important, more of a nice to have.
src/sec_certs/heuristics/br1/table_parsing/model/entry_types/self_tests.py
Show resolved
Hide resolved
878c97e to
134c128
Compare
ad45b66 to
0c0d61d
Compare
bf5d360 to
5d82e64
Compare
No description provided.