telekom-mms / trivy-dojo-report-operator

This Kubernetes operator listens for vulnerability reports generated by the Trivy Operator and forwards them to Defect Dojo for further analysis and tracking.
GNU General Public License v3.0
13 stars 15 forks source link

[Enhancement] #17

Closed rndmh3ro closed 1 year ago

rndmh3ro commented 1 year ago

Description

When submitting a report fails, it won't be retried.

[2023-11-02 09:14:20,570] kopf.objects         [INFO    ] [cmcc-operator/replicaset-cmcc-operator-5d45b775b8-cmcc-operator] Working on replicaset-cmcc-operator-5d45b775b8-cmcc-operator
[2023-11-02 09:14:20,650] kopf.objects         [ERROR   ] [cmcc-operator/replicaset-cmcc-operator-5d45b775b8-cmcc-operator] Handler 'send_to_dojo' failed permanently: Other error occurred: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 0 bytes read))
[2023-11-02 09:14:20,651] kopf.objects         [INFO    ] [cmcc-operator/replicaset-cmcc-operator-5d45b775b8-cmcc-operator] Creation is processed: 0 succeeded; 1 failed.

Somewhere here is probably a solution: https://kopf.readthedocs.io/en/stable/errors/

Additional information

No response

rndmh3ro commented 1 year ago

Fixed by #18