Skip to content
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

fix schema errors on empty / missing schemas #2744

Merged
merged 11 commits into from
Apr 3, 2024

Conversation

underdarknl
Copy link
Contributor

@underdarknl underdarknl commented Mar 29, 2024

Changes

Dont error on missing optional plugin schemas anymore

Issue link

Closes #2740

Code Checklist

  • All the commits in this PR are properly PGP-signed and verified.
  • This PR only contains functionality relevant to the issue; tickets have been created for newly discovered issues.
  • I have written unit tests for the changes or fixes I made.
  • For any non-trivial functionality, I have added integration and/or end-to-end tests.
  • I have performed a self-review of my code and refactored it to the best of my abilities.

Communication

  • I have informed others of any required .env changes files if required and changed the .env-dist accordingly.
  • I have made corresponding changes to the documentation, if necessary.
  • I have included comments in the code to elaborate on what is not self-evident from the code itself, including references to issues and discussions online, or implicit behavior of an interface.

Checklist for code reviewers:

Copy-paste the checklist from the docs/source/templates folder into your comment.


Checklist for QA:

Copy-paste the checklist from the docs/source/templates folder into your comment.

@underdarknl underdarknl requested a review from a team as a code owner March 29, 2024 11:43
ammar92
ammar92 previously approved these changes Mar 29, 2024
@underdarknl
Copy link
Contributor Author

More fixes for the other issues.

Copy link
Contributor

@ammar92 ammar92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I've manually run these commands to compile a list of consumes and produces and confirmed that there are no remaining issues anymore:
find . -name 'boefje.json' | xargs -n 1 jq '.consumes | .[]'
find . -name 'normalizer.json' | xargs -n 1 jq '.consumes | .[]'
find . -name 'normalizer.json' | xargs -n 1 jq '.produces | .[]'

@stephanie0x00
Copy link
Contributor

Checklist for QA:

  • I have checked out this branch, and successfully ran a fresh make reset.
  • I confirmed that there are no unintended functional regressions in this branch:
    • I have managed to pass the onboarding flow
    • Objects and Findings are created properly
    • Tasks are created and completed properly
  • I confirmed that the PR's advertised feature or hotfix works as intended.

What works:

Looks good, enabled all boefjes that do not require some user configuration (eg. API key), ran the boefjes against mispo.es and not seeing the 'invalid schema' errors in the rocky logs anymore or new issues appear.

What doesn't work:

n/a

Bug or feature?:

n/a

@dekkers dekkers merged commit 6ed8ddd into main Apr 3, 2024
15 checks passed
@dekkers dekkers deleted the fix/schema-errors-when-missing branch April 3, 2024 09:25
jpbruinsslot added a commit that referenced this pull request Apr 4, 2024
* main: (51 commits)
  Fix static files for container images/Debian packages when DEBUG is on (#2742)
  OOI selection at Aggregate report does not remember changed selection (#2619)
  fix schema errors on empty / missing schemas (#2744)
  Updated `phonenumbers` and `django-phonenumber-field` (#2757)
  Remove octopoes coverage workflow (#2755)
  Bump actions/configure-pages from 4 to 5 (#2745)
  Add xtdb-cli tool to Octopoes (#2733)
  Dont report vulnerabilities without version info of the software for snyk (#2730)
  Feature/boefjes to oci images (#2709)
  Query non-reference fields and subclass-specific fields through path queries (#2662)
  Fix in System Specific (#2732)
  Plugins overview in appendix not showing any plugins (#2694)
  Feat stepper design v2 (#2704)
  Undo project-directory in Rocky (#2734)
  Remove Docker Compose: "version" (#2718)
  Upgrade `pre-commit` hooks (#2729)
  Fix #1739 (#2705)
  Improve generate report (#2633)
  Fix critical vulnerability counter (#2712)
  Fix pdf alignment (#2674)
  ...
dekkers added a commit that referenced this pull request Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Invalid schema in rocky logs for various plugins
4 participants