8000 Unknown field "initContainers" in io.securecodebox.execution.v1.Scan.spec · Issue #784 · secureCodeBox/secureCodeBox · GitHub
[go: up one dir, main page]

Skip to content

Unknown field "initContainers" in io.securecodebox.execution.v1.Scan.spec #784

@l4mb0san

Description

@l4mb0san

🐞 Bug report

Describe the bug

secureCodeBox/semgrep gives 'failed to download" error when I install, in this case I installed through scanners/semgrep via repository (helm -f value.yaml ...) . Next, I used scanners/semgrep/example/vulnerable-flask-app/scan.yaml to generate a scan but got the error message 'error: error validating "scan.yaml": error validating data: ValidationError (Scan.spec): unknown field "initContainers" in io.securecodebox.execution.v1.Scan.spec; if you choose to ignore these errors, turn validation off with --validate=false'

Steps To Reproduce

  1. Upgrade secureCodeBox
    helm --namespace securecodebox-system upgrade --install securecodebox-operator secureCodeBox/operator
  2. Install Semgrep scanner (Error: failed to download "secureCodeBox/semgrep")
    helm upgrade --install semgrep secureCodeBox/semgrep -n securecodebox-system
  3. Install Semgrep scanner with source
    git clone https://github.com/secureCodeBox/secureCodeBox.git
    cd secureCodeBox/scanners/semgrep
    helm upgrade --install -f values.yaml semgrep . -n securecodebox-system
  4. Create scan (Error: unknown field "initContainers" in io.securecodebox.execution.v1.Scan.spec)
    cd scanners/semgrep/examples/vulnerable-flask-app
    kubectl apply -f scan.yaml

Expected behavior

How can I install semgrep scanner and make a scan with semgrep type working properly?

System (please complete the following information):

  • secureCodeBox: 2021-10-28 11:54:04.600105 +0700 +07 deployed operator-3.1.1
  • helm: version.BuildInfo{Version:"v3.7.0", GitTreeState:"clean", GoVersion:"go1.17"}
  • kubectl:
    Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.5", BuildDate:"2020-07-04T15:01:15Z", GoVersion:"go1.14.4", Compiler:"gc", Platform:"darwin/amd64"}
    Server Version: version.Info{Major:"1", Minor:"19+", GitVersion:"v1.19.13-gke.1900", BuildDate:"2021-08-11T09:19:42Z", GoVersion:"go1.15.13b5", Compiler:"gc", Platform:"linux/amd64"}

Screenshots / Logs

Screen Shot 2021-10-28 at 12 24 23

Screen Shot 2021-10-28 at 12 26 12

Additional context

I have seen the instructions and followed 2 ways but none of them work

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0