Add a new AutoDiscovery Operator for automated Scans in Kubernetes Clusters#461
Merged
Add a new AutoDiscovery Operator for automated Scans in Kubernetes Clusters#461
Conversation
nigthknight
reviewed
Jun 1, 2021
Member
nigthknight
left a comment
There was a problem hiding this comment.
Great Work!
I just have some questions and minor issues.
- Why do we need a
kubernetesdirectory? - I think it would be best to include the short SPDX Header instead of the Apache Header
- Trying to run the tests locally with
make testfails with
•STEP: tearing down the test environment
------------------------------
Failure [20.014 seconds]
[AfterSuite] AfterSuite
/home/yfuhrmeister/Projects/scb/secureCodeBox/auto-discovery/kubernetes/controllers/suite_test.go:119
Unexpected error:
<errors.aggregate | len:1, cap:1>: [
{
s: "timeout waiting for process kube-apiserver to stop",
},
]
timeout waiting for process kube-apiserver to stop
occurred
/home/yfuhrmeister/Projects/scb/secureCodeBox/auto-discovery/kubernetes/controllers/suite_test.go:122| COPY pkg/ pkg/ | ||
|
|
||
| # Build | ||
| RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager main.go |
Member
There was a problem hiding this comment.
Is there a reason not to use the Makefile at this point as well?
Member
Author
There was a problem hiding this comment.
This is directly taken from the defaukt kubebuilder starting point, so not sure what the exact reasoning here is to doing it like this, I'd guess that this gives them more controll over the flags used for the go build but I'm not sure.
Co-authored-by: Yannik Fuhrmeister <12710254+fuhrmeistery@users.noreply.github.com>
Member
Author
@fuhrmeistery
|
Member
|
Member
Author
|
Mh interesting, hopefully that's actually related to your system and not that the test suite is flaky 😅 |
Signed-off-by: GitHub Actions <securecodebox@iteratec.com>
Signed-off-by: GitHub Actions <securecodebox@iteratec.com>
Signed-off-by: GitHub Actions <securecodebox@iteratec.com>
Signed-off-by: GitHub Actions <securecodebox@iteratec.com>
Member
Author
|
This should make the PR look a bit more green :) Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a "AutoDiscovery" feature for workloads running inside kubernetes.
Currently only supports http / https types of workloads by "auto-discovering" kubernetes services and starting scans against them.
For more info check out the readme of the AutoDiscovery subfolder: https://github.com/secureCodeBox/secureCodeBox/tree/auto-discovery/auto-discovery/kubernetes
Todos