8000 ConfigMap not working on a single file. · Issue #1306 · secureCodeBox/secureCodeBox · GitHub
[go: up one dir, main page]

Skip to content

ConfigMap not working on a single file. #1306

@renatosazup-zz

Description

@renatosazup-zz

Your Question

I'm trying a configMap on a single file as I'm doing an automation with lambda, did you know this is possible?

apiVersion: "execution.securecodebox.io/v1"
kind: Scan
metadata:
  name: "zap-api-scan-1"
  namespace: securecodebox
  labels:
    organization: "Owasp"
spec:
  scanType: "zap-api-scan"
  parameters:
    # target URL including the protocol
    - "-t"
    - "https://petstore.swagger.io"
    # show debug messages
    - "-d"
    # the number of minutes to spider for (default 1)
    - "-m"
    - "2"
  volumeMounts:
      - name: config
        mountPath: "/config"
        readOnly: true
  volumes:
    - name: config
      configMap:
        name: zap-advanced-scan
        contexts:
          - name: zap-context
            url: https://petstore.swagger.io/
            includePaths:
              - "https://petstore.swagger.io*"
            excludePaths:
              - ".*\\.js"
              - ".*\\.css"
              - ".*\\.png"
              - ".*\\.svg"
              - ".*\\.jpeg"
              - ".*\\swagger.json"
        apis:
          - name: scb-petstore-api
            context: zap-context
            format: openapi
            url: https://petstore.swagger.io/v2/swagger.json
            hostOverride: https://petstore.swagger.io
        session:
          type: "cookieBasedSessionManagement"
        users:
          - name: zap-user-1
            username: "teste@teste.com"
            password:  "***"
            forced: true
        authentication:
          json-based:
              loginUrl: "https://petstore.swagger.io/access"
              loginRequestData: '{"username":"{%username%}","password":"{%password%}"}'
        verification:     
          isLoggedInIndicator: "bearer"
          isLoggedOutIndicator: ""     

Reference:

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0