podman-secret-inspect(1)

πŸ’– podman-secret-inspect(1) πŸ’–

okay bestie, welcome to the podman-secret-inspect(1) glow-up page ✨ this is where you get the full tea on your secrets β€” like, all the details, not just the vibe.


🌸 NAME 🌸

podman-secret-inspect β€” spill all the detailed info on one or more secrets πŸ«–


✨ SYNOPSIS ✨

podman secret inspect [options] secret [...]

πŸ’… DESCRIPTION πŸ’…

So basically? You point this at a secret and it inspects it. That's it, that's the job. πŸ‘‘

By default it renders all the results in a JSON array. But if you pass a format, then the given template gets executed for each result β€” one run per secret, no cap.

And here's the cute part: you can query secrets individually by giving their full name, or just a unique partial name. Short and sweet, bestie. πŸŽ€


πŸ¦‹ OPTIONS πŸ¦‹

  • --format, -f=format β€” formats the secret output using a Go template. Details below, keep scrolling πŸ’–
  • --help β€” prints the usage statement. the "help me help you" button πŸ™ˆ
  • --pretty β€” prints inspect output in a human-readable format. heads up: it ignores fields from --format. like, fully ignores them, don't even try it πŸ’€
  • --showsecret β€” displays the secret data πŸ‘€ (yes, the actual secret data)

πŸ“ --format, -f=format β€” the placeholder menu πŸ“

Format secret output using a Go template. Here's every placeholder you can use, fr fr:

  • .CreatedAt ... β€” when the secret was created (relative timestamp, human-readable) ⏰
  • .ID β€” ID of secret
  • .SecretData β€” Secret Data (Displayed only with the --showsecret option) πŸ”
  • .Spec ... β€” details of secret
  • .Spec.Driver ... β€” driver info
  • .Spec.Driver.Name β€” driver name (string)
  • .Spec.Driver.Options ... β€” driver options (map of driver-specific options)
  • .Spec.Labels ... β€” labels for this secret
  • .Spec.Name β€” name of secret
  • .UpdatedAt ... β€” when the secret was last updated (relative timestamp, human-readable) ⏰

πŸ’œ --help

Print usage statement. that's it. short queen. πŸ’…


🌈 --pretty

Print inspect output in human-readable format. Ignores fields from --format.

bestie, listen: if you use --pretty, your --format fields are getting ignored. the pretty flag said "not today" 😭

πŸ‘‘ --showsecret

Display secret data. it's giving "yes I really do want to see it" energy. 🫢


πŸ”₯ EXAMPLES πŸ”₯

Inspect the secret mysecret.

$ podman secret inspect mysecret

Inspect the secret mysecret and print it in a human readable format instead of JSON, with the default fields.

$ podman secret inspect --pretty mysecret

Inspect the secret mysecret and display the Name and Labels field.

$ podman secret inspect --format "{{.Spec.Name}} {{.Spec.Labels}}" mysecret

Inspect the secret mysecret and display the Name and SecretData fields. Note this will display the secret data to the screen.

⚠️ okay this one is a big deal: this command literally prints your secret data onto your screen. main character behaviour, but be careful who's watching. 😳
$ podman secret inspect --showsecret --format "{{.Spec.Name}} {{.SecretData}}" mysecret

πŸŽ€ SEE ALSO πŸŽ€

podman(1), podman-secret(1) β€” the whole friend group, go say hi πŸ’–


πŸ“œ HISTORY πŸ“œ

January 2021, originally compiled by Ashley Cui acui@redhat.com ⟨mailto:acui@redhat.com⟩ β€” iconic behaviour, thank you Ashley πŸ’


and that's the whole podman-secret-inspect(1) page, bestie!! ✨ from the January 2021 era of the podman-secret-inspect(1) manual, written by Ashley Cui β€” go forth and inspect your secrets responsibly, mwah πŸ’‹πŸ¦‹πŸ’–

πŸ“¦ where this page comes from