Skip to content

Allow multiple scantypes to be used in the service and container autodiscovery (closes #1384) - #1447

Merged
Ilyesbdlala merged 26 commits into
mainfrom
feature/adr-13
Mar 22, 2023
Merged

Ilyesbdlala merged 26 commits into
mainfrom
feature/adr-13

Conversation

@Ilyesbdlala

Copy link
Copy Markdown
Member

ref: https://www.securecodebox.io/docs/architecture/architecture_decisions/adr_0013

BREAKING CHANGE:

Co-authored-by: Simon Hülkenberg simon.huelkenberg@iteratec.com

Signed-off-by: Ilyes Ben Dlala ilyes.bendlala@iteratec.com

Description

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.

@Ilyesbdlala Ilyesbdlala added auto-discovery breaking Changes requiring a major release labels Nov 18, 2022
@Ilyesbdlala
Ilyesbdlala marked this pull request as draft November 18, 2022 09:57
@secureCodeBoxBot

Copy link
Copy Markdown
Contributor

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

@github-actions

github-actions Bot commented Nov 18, 2022 •

Copy link
Copy Markdown

MegaLinter status: ⚠️ WARNING

Descriptor Linter Files Fixed Errors Elapsed time
⚠️ GO golangci-lint 10 10 12.46s
✅ SPELL misspell 12 0 0.08s
⚠️ YAML prettier 2 1 0.95s

See errors details in artifact MegaLinter reports on CI Job page
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

@Ilyesbdlala Ilyesbdlala changed the title feat(auto-discovery): Allow multiple scantypes to be used in the service autodiscovery feat(auto-discovery): Allow multiple scantypes to be used in the service and container autodiscovery Dec 5, 2022
@rfelber rfelber added this to the v4.0.0 milestone Dec 11, 2022
@the-simmon
the-simmon marked this pull request as ready for review December 13, 2022 12:10

@J12934 J12934 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Also looks good and nearly ready to go, I had a bit of a problem with the scanConfigs as it was still just called scanConfig in the default local config.
Made some suggestions ton fix this and make this mistake more transparent if users also stumble across it.

Comment thread UPGRADING.md Outdated
Comment thread auto-discovery/kubernetes/auto-discovery-config.yaml Outdated
Comment thread auto-discovery/kubernetes/auto-discovery-config.yaml Outdated
Comment thread auto-discovery/kubernetes/controllers/service_scan_controller.go
Comment thread auto-discovery/kubernetes/controllers/container_scan_controller.go
Comment thread UPGRADING.md Outdated
Comment thread auto-discovery/kubernetes/values.yaml Outdated
Comment thread auto-discovery/kubernetes/values.yaml Outdated
J12934
J12934 previously approved these changes Mar 21, 2023
J12934
J12934 previously approved these changes Mar 22, 2023
Ilyesbdlala and others added 11 commits March 22, 2023 15:27
…ice autodiscovery

ref: https://www.securecodebox.io/docs/architecture/architecture_decisions/adr_0013

BREAKING CHANGE:

Co-authored-by: Simon Hülkenberg <simon.huelkenberg@iteratec.com>

Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
Signed-off-by: Simon Hülkenberg <simon.huelkenberg@iteratec.com>
Signed-off-by: Simon Hülkenberg <simon.huelkenberg@iteratec.com>
…tiple ScanConfigs

Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
…can to fit the unit tests

Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
Signed-off-by: Simon Hülkenberg <simon.huelkenberg@iteratec.com>
…n the name of th scheduledScan to

including a custom name
This is done to ensure the uniqueness of each scheduledScan

Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
…to discovery

Signed-off-by: Simon Hülkenberg <simon.huelkenberg@iteratec.com>
Signed-off-by: Simon Hülkenberg <simon.huelkenberg@iteratec.com>
Signed-off-by: Simon Hülkenberg <simon.huelkenberg@iteratec.com>
Signed-off-by: Simon Hülkenberg <simon.huelkenberg@iteratec.com>
the-simmon and others added 15 commits March 22, 2023 15:27
…en though multiple scan configs were given

Signed-off-by: Simon Hülkenberg <simon.huelkenberg@iteratec.com>
… by mistake

Signed-off-by: Simon Hülkenberg <simon.huelkenberg@iteratec.com>
…nt ScanConfigs

i.e two different names
DRAFT

Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
…cans of different ScanConfigs

Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
Signed-off-by: Simon Hülkenberg <simon.huelkenberg@iteratec.com>
Signed-off-by: Simon Hülkenberg <simon.huelkenberg@iteratec.com>
* using context.Background() instead of ctx for SetupWithManager(): it better to use it in
initialization since it returns a non-nil, empty Context that it is never canceled, has no values, and has no deadline.

Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
Signed-off-by: Simon Hülkenberg <simon.huelkenberg@iteratec.com>
Co-authored-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
Co-authored-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
Co-authored-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
These issues arose after a rebase

Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
Made the upgrading note more explicit, detailing how to exactly perform the upgrade.

Co-authored-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
@Ilyesbdlala
Ilyesbdlala merged commit 53f0f9e into main Mar 22, 2023
@Ilyesbdlala
Ilyesbdlala deleted the feature/adr-13 branch March 22, 2023 15:27
@rfelber rfelber added the enhancement New feature or request label Mar 27, 2023
@rfelber rfelber changed the title feat(auto-discovery): Allow multiple scantypes to be used in the service and container autodiscovery Allow multiple scantypes to be used in the service and container autodiscovery Mar 27, 2023
@rfelber rfelber changed the title Allow multiple scantypes to be used in the service and container autodiscovery Allow multiple scantypes to be used in the service and container autodiscovery (closes #1384) Mar 27, 2023
@rfelber rfelber linked an issue Mar 27, 2023 that may be closed by this pull request
5 of 6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-discovery breaking Changes requiring a major release enhancement New feature or request

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Implement ADR13: Autodiscovery v2

5 participants