minder icon indicating copy to clipboard operation
minder copied to clipboard

Message when deleting bundle rules is unclear

Open eleftherias opened this issue 1 year ago • 0 comments

Describe the issue

When Minder is using a bundle and I run minder ruletype delete --all, I see the following:

The following rule type(s) are referenced by existing profiles and were not deleted:
stacklok/actions_check_pinned_tags
stacklok/artifact_attestation_slsa
stacklok/artifact_signature
stacklok/branch_protection_allow_deletions
stacklok/branch_protection_allow_force_pushes
stacklok/branch_protection_allow_fork_syncing
stacklok/branch_protection_enabled
stacklok/branch_protection_enforce_admins
stacklok/branch_protection_lock_branch
stacklok/branch_protection_require_conversation_resolution
stacklok/branch_protection_require_linear_history
stacklok/branch_protection_require_pull_request_approving_review_count
stacklok/branch_protection_require_pull_request_code_owners_review
stacklok/branch_protection_require_pull_request_dismiss_stale_reviews
stacklok/branch_protection_require_pull_request_last_push_approval
stacklok/branch_protection_require_pull_requests
stacklok/branch_protection_require_signatures
stacklok/codeql_enabled
stacklok/dependabot_configured
stacklok/invisible_characters_check
stacklok/license
stacklok/mixed_scripts_check
stacklok/no_binaries_in_repo
stacklok/no_open_security_advisories
stacklok/pr_trusty_check
stacklok/pr_vulnerability_check
stacklok/repo_action_allow_list
stacklok/secret_push_protection
stacklok/secret_scanning
stacklok/trivy_action_enabled

This is correct from the perspective that bundle ruletypes cannot be deleted. However, we should show a better message, for example "The following rule type(s) cannot be deleted because they are part of a the bundle stacklok/healthcheck"

To Reproduce

No response

What version are you using?

No response

eleftherias avatar Jan 15 '25 09:01 eleftherias