René's URL Explorer Experiment


Title: Can't delete scan or scan CRD · Issue #1101 · secureCodeBox/secureCodeBox · GitHub

Open Graph Title: Can't delete scan or scan CRD · Issue #1101 · secureCodeBox/secureCodeBox

X Title: Can't delete scan or scan CRD · Issue #1101 · secureCodeBox/secureCodeBox

Description: 🐞 Bug report Describe the bug I was testing my setup using IAM roles. I had a few problems setting up a scan due to permissions on S3. I fixed them but then I want to delete a scan object I created and the delete gets stuck. I run: % kub...

Open Graph Description: 🐞 Bug report Describe the bug I was testing my setup using IAM roles. I had a few problems setting up a scan due to permissions on S3. I fixed them but then I want to delete a scan object I created...

X Description: 🐞 Bug report Describe the bug I was testing my setup using IAM roles. I had a few problems setting up a scan due to permissions on S3. I fixed them but then I want to delete a scan object I created...

Opengraph URL: https://github.com/secureCodeBox/secureCodeBox/issues/1101

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Can't delete scan or scan CRD","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\nI was testing my setup using IAM roles. I had a few problems setting up a scan due to permissions on S3. I fixed them but then I want to delete a scan object I created and the delete gets stuck.\r\nI run:\r\n```\r\n % kubectl get scan\r\nNAME                  TYPE            STATE   FINDINGS\r\nzap-full-scan-admin   zap-full-scan           \r\n\r\n % kubectl delete scan zap-full-scan-admin\r\nscan.execution.securecodebox.io \"zap-full-scan-admin\" deleted\r\n... then it gets stuck here for one hour until my AWS session expires then:\r\nerror: You must be logged in to the server (Unauthorized)\r\nexit 1\r\n```\r\n\r\nI tried uninstalling the zap scanner and operator using helm, both uninstalled fine, but the zap scan was still there and still wouldn't delete.\r\nSo I went to the uninstallation steps page ( https://docs.securecodebox.io/docs/getting-started/uninstallation ) and deleted lurkers (there were no parsers), roles, binding and service accounts. All went good.\r\n\r\nHowever when I tried to delete the CRDs it got stuck in the scheduled scans:\r\n```\r\n% kubectl delete crd cascadingrules.cascading.securecodebox.io \\\r\nparsedefinitions.execution.securecodebox.io \\\r\nscancompletionhooks.execution.securecodebox.io \\\r\nscans.execution.securecodebox.io \\\r\nscantypes.execution.securecodebox.io \\\r\nscheduledscans.execution.securecodebox.io\r\ncustomresourcedefinition.apiextensions.k8s.io \"cascadingrules.cascading.securecodebox.io\" deleted\r\ncustomresourcedefinition.apiextensions.k8s.io \"parsedefinitions.execution.securecodebox.io\" deleted\r\ncustomresourcedefinition.apiextensions.k8s.io \"scancompletionhooks.execution.securecodebox.io\" deleted\r\ncustomresourcedefinition.apiextensions.k8s.io \"scans.execution.securecodebox.io\" deleted\r\ncustomresourcedefinition.apiextensions.k8s.io \"scantypes.execution.securecodebox.io\" deleted\r\ncustomresourcedefinition.apiextensions.k8s.io \"scheduledscans.execution.securecodebox.io\" deleted\r\n... then if got stuck here and won't finish so I ctrl+C, but notice the scans.execution.securecodebox.io which says deleted.\r\n\r\n% kubectl get crds                                   \r\nNAME                                         CREATED AT\r\nalertmanagerconfigs.monitoring.coreos.com    2021-08-04T01:47:22Z\r\nalertmanagers.monitoring.coreos.com          2021-08-04T01:47:25Z\r\neniconfigs.crd.k8s.amazonaws.com             2021-06-09T02:15:07Z\r\npodmonitors.monitoring.coreos.com            2021-08-04T01:47:27Z\r\nprobes.monitoring.coreos.com                 2021-08-04T01:47:30Z\r\nprometheuses.monitoring.coreos.com           2021-08-04T01:47:33Z\r\nprometheusrules.monitoring.coreos.com        2021-08-04T01:47:35Z\r\nprovisioners.karpenter.sh                    2021-12-14T05:33:10Z\r\nscans.execution.securecodebox.io             2022-04-07T06:54:40Z    \u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c Won't delete\r\nsecuritygrouppolicies.vpcresources.k8s.aws   2021-06-09T02:15:11Z\r\nservicemonitors.monitoring.coreos.com        2021-08-04T01:47:37Z\r\nthanosrulers.monitoring.coreos.com           2021-08-04T01:47:39Z\r\n```\r\n\r\nNow, I described the scan object and found it is marked for deletion:\r\n```\r\n% kubectl describe scan zap-full-scan-admin\r\nName:         zap-full-scan-admin\r\nNamespace:    default\r\nLabels:       organization=OWASP\r\nAnnotations:  \u003cnone\u003e\r\nAPI Version:  execution.securecodebox.io/v1\r\nKind:         Scan\r\nMetadata:\r\n  Creation Timestamp:             2022-04-08T00:11:04Z\r\n  Deletion Grace Period Seconds:  0\r\n  Deletion Timestamp:             2022-04-08T00:13:07Z     \u003c\u003c\u003c\u003c\u003c so it is marked for deletion so should be deleted but it isn't\r\n  Finalizers:\r\n    s3.storage.securecodebox.io\r\n...\r\n```\r\n\r\nI decided to test and create another scan to compare with the first scan object and got:\r\n```\r\n% kubectl apply -f zap-full-scan-admin2.yaml\r\nError from server (MethodNotAllowed): error when creating \"zap-full-scan-admin.yaml\": create not allowed while custom resource definition is terminating\r\n```\r\n\r\nSo I got the scan CRD definition:\r\n```\r\n% kubectl describe crd scans.execution.securecodebox.io\r\nName:         scans.execution.securecodebox.io\r\nNamespace:    \r\nLabels:       \u003cnone\u003e\r\nAnnotations:  controller-gen.kubebuilder.io/version: v0.4.1\r\nAPI Version:  apiextensions.k8s.io/v1\r\nKind:         CustomResourceDefinition\r\nMetadata:\r\n  Creation Timestamp:             2022-04-07T06:54:40Z\r\n  Deletion Grace Period Seconds:  0\r\n  Deletion Timestamp:             2022-04-12T00:29:03Z\r\n  Finalizers:\r\n    customresourcecleanup.apiextensions.k8s.io\r\n... a loong definition\r\nStatus:\r\n  Accepted Names:\r\n    Kind:       Scan\r\n    List Kind:  ScanList\r\n    Plural:     scans\r\n    Singular:   scan\r\n  Conditions:\r\n    Last Transition Time:  2022-04-07T06:54:40Z\r\n    Message:               no conflicts found\r\n    Reason:                NoConflicts\r\n    Status:                True\r\n    Type:                  NamesAccepted\r\n    Last Transition Time:  2022-04-07T06:54:40Z\r\n    Message:               the initial names have been accepted\r\n    Reason:                InitialNamesAccepted\r\n    Status:                True\r\n    Type:                  Established\r\n    Last Transition Time:  2022-04-12T00:29:03Z\r\n    Message:               CustomResource deletion is in progress\r\n    Reason:                InstanceDeletionInProgress\r\n    Status:                True\r\n    Type:                  Terminating         \u003c\u003c\u003c\u003c\u003c So it is deleting... but its stuck for some reason\r\n  Stored Versions:\r\n    v1\r\nEvents:  \u003cnone\u003e\r\n\r\n```\r\n\r\nIn conclusion, I got a scan CRD and a scan object that won't delete and are stuck for some unknown reason.\r\n\r\n### Steps To Reproduce\r\n\u003c!--\r\nSteps to reproduce the behavior:\r\n1. Go to '...'\r\n2. Click on '....'\r\n3. Scroll down to '....'\r\n4. See error\r\n--\u003e\r\nDescribed the problem above.\r\n\r\n### Expected behavior\r\n\u003c!-- A clear and concise description of what you expected to happen. --\u003e\r\nI expect CRDs and Scans to delete correctly and be removed from kubernetes resources.\r\n\r\n### System (please complete the following information):\r\n\u003c!--\r\n - secureCodeBox Version/Release 2.11.1 / Helm Chart 3.9.1 \r\n - OS: macOS Catalina\r\n - Kubernetes Version \r\n```\r\nClient Version: version.Info{Major:\"1\", Minor:\"22\", GitVersion:\"v1.22.5\", GitCommit:\"5c99e2ac2ff9a3c549d9ca665e7bc05a3e18f07e\", GitTreeState:\"clean\", BuildDate:\"2021-12-16T08:38:33Z\", GoVersion:\"go1.16.12\", Compiler:\"gc\", Platform:\"darwin/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"21+\", GitVersion:\"v1.21.5-eks-bc4871b\", GitCommit:\"5236faf39f1b7a7dabea8df12726f25608131aa9\", GitTreeState:\"clean\", BuildDate:\"2021-10-29T23:32:16Z\", GoVersion:\"go1.16.8\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n```\r\n--\u003e\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\r\n","author":{"url":"https://github.com/Spritekin","@type":"Person","name":"Spritekin"},"datePublished":"2022-04-12T01:46:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/1101/secureCodeBox/issues/1101"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7d2da2a9-3547-d82c-3919-4c018d79095d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC5F0:227D2F:620FEC:7FCBCC:6991E766
html-safe-noncee543d15b12e4a5081091a7e26aead82c6b5462bd4667817f73b263255bf0a74b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUYwOjIyN0QyRjo2MjBGRUM6N0ZDQkNDOjY5OTFFNzY2IiwidmlzaXRvcl9pZCI6IjUzNjc1ODQ2NjA2NzgzNzExNzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1bde8d3e676ccf87b0885d7563081b39c0f3821493885c0384498f2be66eb2a5
hovercard-subject-tagissue:1200794677
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/secureCodeBox/secureCodeBox/1101/issue_layout
twitter:imagehttps://opengraph.githubassets.com/727d193090c8a49a0e72f20ca1b77eab0992374de5304974cd302b844ab17e80/secureCodeBox/secureCodeBox/issues/1101
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/727d193090c8a49a0e72f20ca1b77eab0992374de5304974cd302b844ab17e80/secureCodeBox/secureCodeBox/issues/1101
og:image:alt🐞 Bug report Describe the bug I was testing my setup using IAM roles. I had a few problems setting up a scan due to permissions on S3. I fixed them but then I want to delete a scan object I created...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSpritekin
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
go-importgithub.com/secureCodeBox/secureCodeBox git https://github.com/secureCodeBox/secureCodeBox.git
octolytics-dimension-user_id34573705
octolytics-dimension-user_loginsecureCodeBox
octolytics-dimension-repository_id80711933
octolytics-dimension-repository_nwosecureCodeBox/secureCodeBox
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id80711933
octolytics-dimension-repository_network_root_nwosecureCodeBox/secureCodeBox
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release848bc6032dcc93a9a7301dcc3f379a72ba13b96e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/secureCodeBox/secureCodeBox/issues/1101#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FsecureCodeBox%2FsecureCodeBox%2Fissues%2F1101
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FsecureCodeBox%2FsecureCodeBox%2Fissues%2F1101
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=secureCodeBox%2FsecureCodeBox
Reloadhttps://github.com/secureCodeBox/secureCodeBox/issues/1101
Reloadhttps://github.com/secureCodeBox/secureCodeBox/issues/1101
Reloadhttps://github.com/secureCodeBox/secureCodeBox/issues/1101
secureCodeBox https://github.com/secureCodeBox
secureCodeBoxhttps://github.com/secureCodeBox/secureCodeBox
Notifications https://github.com/login?return_to=%2FsecureCodeBox%2FsecureCodeBox
Fork 179 https://github.com/login?return_to=%2FsecureCodeBox%2FsecureCodeBox
Star 955 https://github.com/login?return_to=%2FsecureCodeBox%2FsecureCodeBox
Code https://github.com/secureCodeBox/secureCodeBox
Issues 72 https://github.com/secureCodeBox/secureCodeBox/issues
Pull requests 5 https://github.com/secureCodeBox/secureCodeBox/pulls
Discussions https://github.com/secureCodeBox/secureCodeBox/discussions
Actions https://github.com/secureCodeBox/secureCodeBox/actions
Projects 1 https://github.com/secureCodeBox/secureCodeBox/projects
Security 1 https://github.com/secureCodeBox/secureCodeBox/security
Insights https://github.com/secureCodeBox/secureCodeBox/pulse
Code https://github.com/secureCodeBox/secureCodeBox
Issues https://github.com/secureCodeBox/secureCodeBox/issues
Pull requests https://github.com/secureCodeBox/secureCodeBox/pulls
Discussions https://github.com/secureCodeBox/secureCodeBox/discussions
Actions https://github.com/secureCodeBox/secureCodeBox/actions
Projects https://github.com/secureCodeBox/secureCodeBox/projects
Security https://github.com/secureCodeBox/secureCodeBox/security
Insights https://github.com/secureCodeBox/secureCodeBox/pulse
New issuehttps://github.com/login?return_to=https://github.com/secureCodeBox/secureCodeBox/issues/1101
New issuehttps://github.com/login?return_to=https://github.com/secureCodeBox/secureCodeBox/issues/1101
#1900https://github.com/secureCodeBox/secureCodeBox/pull/1900
Can't delete scan or scan CRDhttps://github.com/secureCodeBox/secureCodeBox/issues/1101#top
#1900https://github.com/secureCodeBox/secureCodeBox/pull/1900
https://github.com/Zero3141
bugBugshttps://github.com/secureCodeBox/secureCodeBox/issues?q=state%3Aopen%20label%3A%22bug%22
documentationImprovements or additions to documentationhttps://github.com/secureCodeBox/secureCodeBox/issues?q=state%3Aopen%20label%3A%22documentation%22
good first issueGood for newcomershttps://github.com/secureCodeBox/secureCodeBox/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
https://github.com/Spritekin
https://github.com/Spritekin
Spritekinhttps://github.com/Spritekin
on Apr 12, 2022https://github.com/secureCodeBox/secureCodeBox/issues/1101#issue-1200794677
https://docs.securecodebox.io/docs/getting-started/uninstallationhttps://docs.securecodebox.io/docs/getting-started/uninstallation
Zero3141https://github.com/Zero3141
bugBugshttps://github.com/secureCodeBox/secureCodeBox/issues?q=state%3Aopen%20label%3A%22bug%22
documentationImprovements or additions to documentationhttps://github.com/secureCodeBox/secureCodeBox/issues?q=state%3Aopen%20label%3A%22documentation%22
good first issueGood for newcomershttps://github.com/secureCodeBox/secureCodeBox/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
secureCodeBoxhttps://github.com/orgs/secureCodeBox/projects/6
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.