podman-secret-exists(1)

πŸ“¦
version 6.1.4 Β· 3 versions
, in arch rolling, fedora 43, fedora 44, ubuntu resolute

✨ podman-secret-exists(1) β€” the "does my lil secret even exist" check ✨

okay bestie, so this is a page from the General Commands Manual family, and it's about podman-secret-exists. it's short, it's sweet, it's giving "one job and it does it flawlessly" πŸ’…


🌸 NAME 🌸

podman-secret-exists β€” check if the given secret exists


πŸ¦‹ SYNOPSIS πŸ¦‹

podman secret exists secret

πŸ’– DESCRIPTION πŸ’–

so like, podman secret exists literally just checks if a secret exists. that's it, that's the whole vibe πŸŽ€

the way it talks to you is through exit codes, which is very demure, very mindful:

  • 0 β€” returned when the secret is found. slay, it's there πŸŽ‰
  • 1 β€” returned otherwise. nope, not there πŸ™ˆ
  • 125 β€” this one means there was another issue. like, a whole different problem. not a "secret doesn't exist" problem, an actual problem-problem πŸ’€
no cap, read those exit codes carefully β€” 1 and 125 are NOT the same thing and confusing them will ruin your day fr fr.

✨ OPTIONS ✨

  • --help, -h β€” print usage statement. your lil emergency exit when you forget how anything works 🫢

🌈 EXAMPLE 🌈

first up: check if a secret called mysecret exists β€” and spoiler, it does actually exist πŸ‘‘

$ podman secret exists mysecret
$ echo $?
0
$

see that 0? iconic. main character energy. the secret is real and it's thriving ✨


next up: check if a secret called mypassword exists β€” and nope, this one does not actually exist 😭

$ podman secret exists mypassword
$ echo $?
1
$

1 means not found, bestie. it's not broken, it's just not there πŸ“


πŸ‘‘ SEE ALSO πŸ‘‘


πŸ’œ HISTORY πŸ’œ

April 2023, originally compiled by Ygal Blum <ygal.blum@gmail.com> β€” thank you for your service, legend 🫑


and that's the whole page, babe 🧚 go forth, check your secrets, trust the exit codes, and remember: 0 is love, 1 is absence, 125 is chaos πŸ’€πŸ’–

πŸ“¦ where this page comes from