OpenKAT scans networks, finds vulnerabilities and creates accessible reports. It integrates the most widely used network tools and scanning software into a modular framework, accesses external databases such as shodan, and combines the information from all these sources into clear reports. It also includes lots of cat hair.
Expose deadline_at field in the post request to the schedules endpoint. This allows rocky to set a 'start date' for a schedule to commence. In order words:
"I want this task to be recurring with this interval (cron) and we're going to start at 'start date'"
The deadline_at in the scheduler is used to push a task onto the queue at that moment: "the deadline". After that is done the next deadline is calculated based on the cron expression specified.
QA notes
Not a notable change unless, the schedule at this date in the report scheduling of rocky is integrated.
Just make sure that all normal stuff continues to work. Let me know, and we can qa it together
Code Checklist
[x] All the commits in this PR are properly PGP-signed and verified.
[x] This PR only contains functionality relevant to the issue.
[x] I have written unit tests for the changes or fixes I made.
[x] I have checked the documentation and made changes where necessary.
[x] I have performed a self-review of my code and refactored it to the best of my abilities.
[x] Tickets have been created for newly discovered issues.
[x] For any non-trivial functionality, I have added integration and/or end-to-end tests.
[x] I have informed others of any required .env changes files if required and changed the .env-dist accordingly.
[x] 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.
Changes
Expose
deadline_at
field in the post request to theschedules
endpoint. This allows rocky to set a 'start date' for a schedule to commence. In order words:"I want this task to be recurring with this interval (cron) and we're going to start at 'start date'"
The
deadline_at
in the scheduler is used to push a task onto the queue at that moment: "the deadline". After that is done the next deadline is calculated based on the cron expression specified.QA notes
Not a notable change unless, the schedule at this date in the report scheduling of rocky is integrated.
Just make sure that all normal stuff continues to work. Let me know, and we can qa it together
Code Checklist
.env
changes files if required and changed the.env-dist
accordingly.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.