id: apache-nifi-detect

info:
  name: Apache NiFi detect
  author: dwisiswant0
  severity: info
  metadata:
    max-request: 7
  tags: tech,apache,nifi,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/access/config"
      - "{{BaseURL}}/controller/config"
      - "{{BaseURL}}/controller/registry-clients"
      - "{{BaseURL}}/counters"
      - "{{BaseURL}}/flow/registries"
      - "{{BaseURL}}/system-diagnostics"
      - "{{BaseURL}}/nifi-api/access/config"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "supportsLogin"
          - "disconnectedNodeAcknowledged"
          - "(aggregate|node)Snapshots?"
        condition: or

      - type: status
        status:
          - 200
# digest: 490a0046304402206312d29f5c1d878970621a4e1e831fa5df2711854b6bddf820909fb2552b68f2022066c19d20b0842b143e3c111af3f7e96a41bdbcf3594f83ac381e097b5f75f251:922c64590222798bb761d5b6d8e72950