Skip to content

Conversation

@estebanreyl
Copy link
Contributor

@estebanreyl estebanreyl commented Dec 19, 2025

Purpose of the PR

Previously, the --ago flag could overflow, resulting in a negative timeframe and unintended cleanup of all images in a repository. This PR introduces a cap of 150 years for the ago value. While ACR is far younger than that, this limit prevents accidental misuse from excessively large inputs.

Additionally, the documentation has been updated to clarify how to use filters for cleaning up only untagged images, which was the original scenario that led to discovering this bug.

Fixes #560

Copy link
Member

@FeynmanZhou FeynmanZhou left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @estebanreyl

Copy link
Member

@northtyphoon northtyphoon left a comment

Choose a reason for hiding this comment

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

LGTM

@northtyphoon northtyphoon merged commit ecb605a into Azure:main Dec 19, 2025
6 checks passed
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.

Bug Report: acr purge --ago flag ignores time filter with large values

4 participants