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

Legg til en limit for sårbarhetsvarsling på slack #17

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

Kristianrosland
Copy link
Contributor

No description provided.

Eks. kun varsle ved CRITICAL sårbarheter.
@Kristianrosland Kristianrosland requested review from hermanwh and a team February 29, 2024 14:01
draperunner
draperunner approved these changes Feb 29, 2024
@@ -48,6 +49,7 @@ suspend fun main(): Unit = coroutineScope {
}
}

val severityLimitForNotifications = if (System.getenv().containsKey("severity_limit")) SecurityAdvisorySeverity.safeValueOf(System.getenv("severity_limit")) else SecurityAdvisorySeverity.CRITICAL
Copy link
Contributor

Choose a reason for hiding this comment

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

Kanskje defaulten burde vere mindre alvorlig enn CRITICAL. Kanskje alle? Det er den tryggaste defaulten på eit vis.

Copy link
Contributor

Choose a reason for hiding this comment

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

Enig med Mats 👍

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, forresten, vi snakket vel om at dette skulle være opt-in? Er det det p.t.? 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

Typ slack_notification_of_new_vulns.enabled, med default false. Så kan det brukes as is av andre uten å sette opp Slack-integrasjon.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hvis du ikke har gitt webhook-url til slack, så er ikke varsling til slack satt opp. Tenkte det ga mening, så vi slipper å håndtere caset med notifications.enabled = true og webhook-url undefined

@Kristianrosland Kristianrosland merged commit 46100d0 into main Mar 5, 2024
1 check passed
@Kristianrosland Kristianrosland deleted the limit-for-notifications branch March 5, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants