Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --delete parameter to the manage images command #1149

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

berendt
Copy link
Member

@berendt berendt commented Dec 15, 2024

No description provided.

Signed-off-by: Christian Berendt <berendt@osism.tech>
Comment on lines 185 to 196
help="Hide images that should be deleted",
action="store_true",
)
parser.add_argument(
"--delete",
default=False,
help="Delete images that should be deleted",
action="store_true",
)
parser.add_argument(
"--latest",
default=False,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default Values and Argument Handling Concerns

The default values for the command-line arguments (--hide, --delete, --latest) are set in a way that might not align with typical user expectations or security best practices. For instance, --delete is set to False by default, which is safe, but --hide is set to True, which might unintentionally obscure information from the user.

Recommendation:

  • Review and document the rationale behind the default values for these flags to ensure they meet the intended use cases and security posture.
  • Consider implementing additional checks or confirmations in the CLI tool when destructive actions (like --delete) are enabled, to prevent accidental data loss.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant