Skip to content

Conversation

@Samathingamajig
Copy link

When replacing an existing secret, the delete operation should ran on the old driver, which is not necessarily the new one.

When replacing a nonexisting secret (Replace=true), ignore the replace flag, treat it as an entirely new secret. (previous behavior: would attempt to delete a secret whose name or id matches an empty string query, which either failed due to ambiguity or successfully deleted an existing secret if exactly 1 secret was present)

Solves issues 1 and 2 of containers/podman#27130

When replacing an existing secret, the delete operation should ran on the old driver, which is not necessarily the new one.

When replacing a nonexisting secret (Replace=true), ignore the replace flag, treat it as an entirely new secret. (previous behavior: would attempt to delete a secret whose name or id matches an empty string query, which either failed due to ambiguity or successfully deleted an existing secret if exactly 1 secret was present)

Solves issues 1 and 2 of containers/podman#27130

Signed-off-by: Samuel Gunter <sgunter@utexas.edu>
@github-actions github-actions bot added the common Related to "common" package label Dec 10, 2025
podmanbot pushed a commit to podmanbot/buildah that referenced this pull request Dec 10, 2025
@podmanbot
Copy link

✅ A new PR has been created in buildah to vendor these changes: containers/buildah#6590

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common Related to "common" package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants