Title: "NullPointerException" error when sending kubeaudit scan results to DefectDojo · Issue #2272 · secureCodeBox/secureCodeBox · GitHub
Open Graph Title: "NullPointerException" error when sending kubeaudit scan results to DefectDojo · Issue #2272 · secureCodeBox/secureCodeBox
X Title: "NullPointerException" error when sending kubeaudit scan results to DefectDojo · Issue #2272 · secureCodeBox/secureCodeBox
Description: 🐞 Bug report Describe the bug We scan Kubernetes cluster using kubeaudit scanner and the hook secureCodeBox/persistence-defectdojo fails with the following error: Exception in thread "main" java.lang.NullPointerException at java.base/jav...
Open Graph Description: 🐞 Bug report Describe the bug We scan Kubernetes cluster using kubeaudit scanner and the hook secureCodeBox/persistence-defectdojo fails with the following error: Exception in thread "main" java.la...
X Description: 🐞 Bug report Describe the bug We scan Kubernetes cluster using kubeaudit scanner and the hook secureCodeBox/persistence-defectdojo fails with the following error: Exception in thread "main&quo...
Opengraph URL: https://github.com/secureCodeBox/secureCodeBox/issues/2272
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"NullPointerException\" error when sending kubeaudit scan results to DefectDojo","articleBody":"## 🐞 Bug report\r\n\u003c!--\r\nThank you for reporting an issue in our project 🙌\r\n\r\nBefore opening a new issue, please make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.\r\n--\u003e\r\n\r\n### Describe the bug\r\n\r\nWe scan Kubernetes cluster using `kubeaudit` scanner and the hook `secureCodeBox/persistence-defectdojo` fails with the following error:\r\n\r\n```\r\nException in thread \"main\" java.lang.NullPointerException\r\n\tat java.base/java.util.Objects.requireNonNull(Objects.java:209)\r\n\tat io.securecodebox.persistence.util.DescriptionGenerator.generate(DescriptionGenerator.java:30)\r\n\tat io.securecodebox.persistence.strategies.VersionedEngagementsStrategy.createTest(VersionedEngagementsStrategy.java:266)\r\n\tat io.securecodebox.persistence.strategies.VersionedEngagementsStrategy.run(VersionedEngagementsStrategy.java:93)\r\n\tat io.securecodebox.persistence.DefectDojoPersistenceProvider.main(DefectDojoPersistenceProvider.java:43)\r\n```\r\n### Steps To Reproduce\r\n\r\nRun trivy scan with the following yaml:\r\n```\r\napiVersion: \"execution.securecodebox.io/v1\"\r\nkind: Scan\r\nmetadata:\r\n name: \"kubeaudit-all-1\"\r\nspec:\r\n scanType: \"kubeaudit\"\r\n```\r\n\r\nCheck if the hook `persistence-defectdojo` sucсeeds.\r\n\r\n### Expected behavior\r\n\r\nThe hook should succeed.\r\n\r\n### System (please complete the following information):\r\n\r\n- operator-4.3.0\r\n- kubeaudit-4.3.0\r\n- persistence-defectdojo-4.3.0\r\n\r\nGoogle Kubernetes Engine\r\n\r\n```\r\nClient Version: version.Info{Major:\"1\", Minor:\"25\", GitVersion:\"v1.25.4\", GitCommit:\"872a965c6c6526caa949f0c6ac028ef7aff3fb78\", GitTreeState:\"clean\", BuildDate:\"2022-11-09T13:28:30Z\", GoVersion:\"go1.19.3\", Compiler:\"gc\", Platform:\"darwin/arm64\"}\r\nKustomize Version: v4.5.7\r\nServer Version: version.Info{Major:\"1\", Minor:\"26\", GitVersion:\"v1.26.10-gke.1101000\", GitCommit:\"375ed214cfa092ed25d2472c1709db5d7dcda078\", GitTreeState:\"clean\", BuildDate:\"2023-11-06T09:23:17Z\", GoVersion:\"go1.20.10 X:boringcrypto\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n```\r\n\r\n### Screenshots / Logs\r\n\u003c!-- If applicable, add screenshots to help explain your problem. --\u003e\r\n\r\n### Additional context\r\n\u003c!-- Add any other context about the problem here. --\u003e\r\n","author":{"url":"https://github.com/danil-smirnov","@type":"Person","name":"danil-smirnov"},"datePublished":"2024-02-09T10:10:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/2272/secureCodeBox/issues/2272"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:29b23d8b-210d-3e09-4758-998485b69b7a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D888:3D3E2:5176BD:6A77D8:698EB8F0 |
| html-safe-nonce | b19c748e8b0e3ca71ca56fd2f4cea320261f3c4601e2af5486f92976dbec39e1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODg4OjNEM0UyOjUxNzZCRDo2QTc3RDg6Njk4RUI4RjAiLCJ2aXNpdG9yX2lkIjoiNzkzNjU1ODI5MTUyNTQ4MjczNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ba82638704df49aa84734a88c068a42eca44f5f15e78f38a4e37316eca2f5439 |
| hovercard-subject-tag | issue:2126828897 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/secureCodeBox/secureCodeBox/2272/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1435affff74413f4e415c4c8c924a9cdf69e158e624be471ddf2185a3fd88789/secureCodeBox/secureCodeBox/issues/2272 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1435affff74413f4e415c4c8c924a9cdf69e158e624be471ddf2185a3fd88789/secureCodeBox/secureCodeBox/issues/2272 |
| og:image:alt | 🐞 Bug report Describe the bug We scan Kubernetes cluster using kubeaudit scanner and the hook secureCodeBox/persistence-defectdojo fails with the following error: Exception in thread "main" java.la... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | danil-smirnov |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/secureCodeBox/secureCodeBox git https://github.com/secureCodeBox/secureCodeBox.git |
| octolytics-dimension-user_id | 34573705 |
| octolytics-dimension-user_login | secureCodeBox |
| octolytics-dimension-repository_id | 80711933 |
| octolytics-dimension-repository_nwo | secureCodeBox/secureCodeBox |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 80711933 |
| octolytics-dimension-repository_network_root_nwo | secureCodeBox/secureCodeBox |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width