Title: Make Inheritlabels apply to scans and not only pods · Issue #683 · secureCodeBox/secureCodeBox · GitHub
Open Graph Title: Make Inheritlabels apply to scans and not only pods · Issue #683 · secureCodeBox/secureCodeBox
X Title: Make Inheritlabels apply to scans and not only pods · Issue #683 · secureCodeBox/secureCodeBox
Description: 🐞 Bug report Describe the bug Despite setting inheritLabels = false, the cascading Scans still include the parent scan's labels I'm using Grafana Tanka which relies on injecting a label "tanka.dev/environment: " in order to "prune" objec...
Open Graph Description: 🐞 Bug report Describe the bug Despite setting inheritLabels = false, the cascading Scans still include the parent scan's labels I'm using Grafana Tanka which relies on injecting a label "tanka.dev/...
X Description: 🐞 Bug report Describe the bug Despite setting inheritLabels = false, the cascading Scans still include the parent scan's labels I'm using Grafana Tanka which relies on injecting a label &qu...
Opengraph URL: https://github.com/secureCodeBox/secureCodeBox/issues/683
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make Inheritlabels apply to scans and not only pods","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### Describe the bug\r\n\u003c!-- A clear and concise description of what the bug is. --\u003e\r\nDespite setting inheritLabels = false, the cascading Scans still include the parent scan's labels\r\nI'm using Grafana Tanka which relies on injecting a label \"tanka.dev/environment: \u003chash\u003e\" in order to \"prune\" objects within an environment, if the scans inherit this label it will force an unwanted deletion of the cascading scans\r\n\r\n### Steps To Reproduce\r\nExecute any cascading scan with inheritlabels: false, I launched an nmap scan:\r\n```yaml\r\nspec:\r\n cascades:\r\n inheritLabels: false\r\n matchExpressions:\r\n - key: securecodebox.io/intensive\r\n operator: In\r\n values:\r\n - light\r\n - medium\r\n - high\r\n - key: securecodebox.io/invasive\r\n operator: In\r\n values:\r\n - non-invasive\r\n - invasive\r\n parameters:\r\n - scan.me\r\n scanType: nmap\r\n\r\n```\r\nThe Scan objects that get created through cascades, include the original scan's labels\r\n```yaml\r\napiVersion: execution.securecodebox.io/v1\r\nkind: Scan\r\nmetadata:\r\n annotations:\r\n cascading.securecodebox.io/chain: securecodebox-scanners-zap-https\r\n cascading.securecodebox.io/matched-finding: 99652536-76a7-471e-afef-a5da7d79c62f\r\n cascading.securecodebox.io/parent-scan: securecodebox-scanners-network\r\n securecodebox.io/hook: cascading-scans\r\n creationTimestamp: \"2021-09-29T00:18:17Z\"\r\n finalizers:\r\n - s3.storage.securecodebox.io\r\n generateName: securecodebox-scanners-network-securecodebox-scanners-zap-https-\r\n generation: 2\r\n labels:\r\n tanka.dev/environment: 6a2b816247aad89622120ae34db00790e8b0e49713341819\r\n name: securecodebox-scanners-network-securecodebox-scanners-zap-6dmpw\r\n namespace: nonprod-alldevopsservices\r\n ownerReferences:\r\n - apiVersion: execution.securecodebox.io/v1\r\n blockOwnerDeletion: true\r\n controller: true\r\n kind: Scan\r\n name: securecodebox-scanners-network\r\n uid: 6069b242-e596-48a4-8e61-b52c38f8a02c\r\n resourceVersion: \"497099\"\r\n uid: 10d779f7-2fda-4bd7-ae49-0802af0e655e\r\nspec:\r\n cascades:\r\n matchExpressions:\r\n - key: securecodebox.io/intensive\r\n operator: In\r\n values:\r\n - light\r\n - medium\r\n - high\r\n - key: securecodebox.io/invasive\r\n operator: In\r\n values:\r\n - non-invasive\r\n - invasive\r\n parameters:\r\n - -t\r\n - https://scan.me\r\n scanType: zap-advanced-scan\r\nstatus:\r\n findingDownloadLink: ...\r\n findings:\r\n severities: {}\r\n rawResultDownloadLink: ...\r\n rawResultFile: zap-results.xml\r\n rawResultType: zap-advanced-xml\r\n state: Scanning\r\n```\r\n### Expected behavior\r\n\u003c!-- A clear and concise description of what you expected to happen. --\u003e\r\nNot the Scan nor the backing pod should inherit the parent scan's labels when inheritLabels: false. This isnt true for the Scan\r\n\r\n### System (please complete the following information):\r\n - secureCodeBox image: latest\r\n - helm chart: 3.1.1\r\n","author":{"url":"https://github.com/RixTmobilender","@type":"Person","name":"RixTmobilender"},"datePublished":"2021-09-29T00:37:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/683/secureCodeBox/issues/683"}
| 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:23414f5c-7e62-71a2-a51a-5b0acd1b497a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8B9C:D24C7:17D4474:1EAF286:698FEE9B |
| html-safe-nonce | 539b1b4252d1ac60aba18c1eef4cfcebc597178a746028dc513d87f7eca2585d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjlDOkQyNEM3OjE3RDQ0NzQ6MUVBRjI4Njo2OThGRUU5QiIsInZpc2l0b3JfaWQiOiI3NzA0NjM4MDkzNDI1MzcyODI3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a430ee7440a1e4d5ce5bf5be9328f4104255d8c12cc910d41648408dcfa1b781 |
| hovercard-subject-tag | issue:1010343446 |
| 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/683/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ff8b49f3ecc13e9c2cb5d12fc7558b7e0ea821586de25c87f940d047043c1de4/secureCodeBox/secureCodeBox/issues/683 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ff8b49f3ecc13e9c2cb5d12fc7558b7e0ea821586de25c87f940d047043c1de4/secureCodeBox/secureCodeBox/issues/683 |
| og:image:alt | 🐞 Bug report Describe the bug Despite setting inheritLabels = false, the cascading Scans still include the parent scan's labels I'm using Grafana Tanka which relies on injecting a label "tanka.dev/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RixTmobilender |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| 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 | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width