podman icon indicating copy to clipboard operation
podman copied to clipboard

podman secret create --replace=true name file fails with error if 'name' does not already exist.

Open Firstyear opened this issue 3 months ago • 5 comments

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

  1. Ensure the secret name does not exist
  2. 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

Firstyear avatar Aug 21 '26 05:08 Firstyear

I'd be happy to work on this. I'll see if I can reproduce first.

devchris123 avatar Aug 21 '26 09:08 devchris123

/assign

devchris123 avatar Aug 21 '26 09:08 devchris123

@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?

devchris123 avatar Aug 21 '26 10:08 devchris123

@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.

devchris123 avatar Sep 01 '26 06:09 devchris123

A friendly reminder that this issue had no activity for 30 days.

github-actions[bot] avatar Oct 02 '26 01:10 github-actions[bot]