podman secret create --replace=true name file fails with error if 'name' does not already exist.
Issue Description
Run podman secret create --replace=true name file and it fails to create a new secret.
Steps to reproduce the issue
Steps to reproduce the issue
- Ensure the secret
namedoes not exist podman secret create --replace=true name file
Describe the results you received
An error.
Describe the results you expected
The secret is created.
podman info output
Client:
APIVersion: 6.0.2
BuildOrigin: brew
Built: 1784664683
BuiltTime: Wed Jul 22 06:11:23 2026
GitCommit: ""
GoVersion: go1.26.5
Os: darwin
OsArch: darwin/arm64
Version: 6.0.2
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
No response
Additional information
No response
I'd be happy to work on this. I'll see if I can reproduce first.
/assign
@Firstyear could you provide the whole podman info output? I think it provides more information than just for the client?
also could you provide any error information you get from the command output?
@Firstyear I wasn't able to reproduce this. Could you provide some more data from the "podman info" output. Maybe I need to more closely match your environment.
Other than that were you able to reproduce on a fresh setup, or is there something unusual in your setup, that I should consider?
An example setup for reproduction would also help.
A friendly reminder that this issue had no activity for 30 days.