8000 Update / Fix `trivy k8s` scope and change default to `namespace` by J12934 · Pull Request #3025 · secureCodeBox/secureCodeBox · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@J12934
Copy link
Member
@J12934 J12934 commented May 7, 2025

Description

  • kubeauditScope never really made sense for trivy, this was always more of a copy paste misstake, taken from the kubeaudit scanner
  • Change default trivy k8sScanScope to namespace to make the default installation path easier / require less RBAC
    permissions
  • Fix / update required RBAC permissions for trivy k8s scan. The current RBAC setup was missing some permissions, which caused error logs by the scanner
  • Split example into a cluster wide and a namespaced example, to better clarify how it can be used.

Checklist

  • Test your changes as thoroughly as possible before you commit them. Preferably, automate your test by unit/integration tests.
  • Make sure that all your commits are signed-off and that you are added to the Contributors file.
  • Make sure that all CI finish successfully.
  • Optional (but appreciated): Make sure that all commits are Verified.

J12934 added 5 commits May 7, 2025 20:50
kubeauditScope never really made sense for trivy, this was always more of a copy paste misstake, taken from the kubeaudit scanner

Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
…stallation path easier / require less RBAC permissions

Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
@J12934 J12934 self-assigned this May 7, 2025
@J12934 J12934 added bug Bugs breaking Changes requiring a major release labels May 7, 2025
@secureCodeBoxBot
Copy link
Contributor

This pull request includes breaking changes. Please make sure that you included the breaking changes and the steps required to upgrade in Upgrading.
✨ Thank you for your contribution! ✨

@netlify
Copy link
netlify bot commented May 7, 2025

Deploy Preview for docs-securecodebox canceled.

Name Link
🔨 Latest commit 9a4ca20
🔍 Latest deploy log https://app.netlify.com/sites/docs-securecodebox/deploys/681ccb135d4fa40008bb15ea

@J12934 J12934 mentioned this pull request May 7, 2025
4 tasks
J12934 added 2 commits May 7, 2025 21:06
Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
@J12934 J12934 moved this from Triage to In Progress in secureCodeBox May 8, 2025
…ecurecodebox-system namespace

Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
@sonarqubecloud
Copy link
sonarqubecloud bot commented May 8, 2025

@github-project-automation github-project-automation bot moved this from In Progress to Reviewer Approved in secureCodeBox May 9, 2025
@Reet00 Reet00 merged commit 280520b into secureCodeBox:main May 9, 2025
50 checks passed
@github-project-automation github-project-automation bot moved this from Reviewer Approved to Done in secureCodeBox May 9, 2025
@J12934 J12934 deleted the bugfix/correct-trivy-scope branch May 9, 2025 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Changes requiring a major release bug Bugs

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants

0