← 输入框|github.com|刷新
Skip to content

➹ Add a crontab configuration option to scheduledScans #150

Closed

Description

@rfelber

Is your feature request related to a problem? Please describe.
As a security tester i would like to configure the start time pattern for scheduledScans more precisely. For now it is possible to configure the time interval (hours) between to scans but the starting point relates to the installation time of the scheduledScan.

Describe the solution you'd like
To be able to configure a more complex schedule for my security scan it would be great to support a crontab syntax as an alternative option.

Example

apiVersion: "execution.securecodebox.io/v1"
kind: ScheduledScan
metadata:
  name: "nmap-scanme.nmap.org-daily"
spec:
  crontab: "0 12 * * *"
  scanSpec:
    scanType: "nmap"
    parameters:
        # Use nmaps service detection feature
        - "-sV"
        - scanme.nmap.org
  historyLimit: 3

Describe alternatives you've considered
none

Additional context

Activity

  1. added
    enhancementNew feature or request
    CRDImprovements or additions to CRDs
    on Oct 15, 2020
  2. added this to the v4.0.0 milestone on Feb 22, 2023
  3. moved this from Backlog to Todo in secureCodeBoxon Feb 22, 2023
  4. Weltraumschaf commented on Feb 22, 2023

    @Weltraumschaf
    Member

    I suggest the format from Ansible Cron module:

    apiVersion: "execution.securecodebox.io/v1"
    kind: ScheduledScan
    metadata:
      name: "nmap-scanme.nmap.org-daily"
    spec:
      cron: 
        minute: 0
        hour: 12   
      scanSpec:
        ...

    All fields:

    cron: 
        minute: *
        hour: *
        day: *
        month: *
        weekday *
  5. self-assigned this
    on May 2, 2023
  6. moved this from Todo to In Progress in secureCodeBoxon May 2, 2023
  7. added 3 commits that reference this issue on May 12, 2023
  8. added a commit that references this issue on May 23, 2023
  9. added a commit that references this issue on Jun 6, 2023
  10. 44 remaining items

  11. added 4 commits that reference this issue on Jul 14, 2023
  12. moved this from In Progress to Done in secureCodeBoxon Jul 14, 2023
  13. added 9 commits that reference this issue on Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

CRDImprovements or additions to CRDsHacktoberfesthttps://hacktoberfest.digitalocean.com/enhancementNew feature or request

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions