forseti-security / helm-charts

Apache License 2.0
8 stars 11 forks source link

Run Periodic Scan at random minute #37

Open gkowalski-google opened 4 years ago

gkowalski-google commented 4 years ago

Story

When Forseti is deployed to GKE, the periodic scan will run every hour at the 0th minute(top of the hour). For example, it will run at 1pm, 2pm, 3pm, etc. This should be run every 2 hours at a random minute. CAI exports might be throttled if there are a lot happening at the same time. This issue was addressed for Forseti on GCE.

Proposed Solution

Update the serverSchedule value to run every 2 hours at a random minute.

Acceptance Criteria

GIVEN: Forseti is deployed on GKE with Helm WHEN: The Periodic Scan is run THEN: It is run at a random minute and there are no issues with the CAI export

kevensen commented 4 years ago

Additional notes. If the Helm charts are invoked via Terraform, then whatever cron string with the random minute Terraform created will be applied here.

What we need to consider is the scenario where the Helm charts are deployed via the Helm CLI. So the default behavior in any case should be generate a random minute (definitely possible in the Helm template),