logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

podman-secret-ls - List all available secrets

Description

       Lists all the secrets that exist. The output can be formatted to a Go template using the --format option.

Examples

       List all secrets.

       $ podman secret ls

       List the name field of all secrets.

       $ podman secret ls --format "{{.Name}}"

       List all secrets whose name includes the specified string.

       $ podman secret ls --filter name=confidential

History

       January 2021, Originally compiled by Ashley Cui acui@redhat.commailto:acui@redhat.compodman-secret-ls(1)

Name

       podman-secret-ls - List all available secrets

Options

--filter,-f=filter=value
       Filter  output  based  on  conditions  given.   Multiple  filters  can be given with multiple uses of the
       --filter option.

       Valid filters are listed below:

       ┌────────┬────────────────────────────────────┐
       │ FilterDescription                        │
       ├────────┼────────────────────────────────────┤
       │ name   │ [Name] Secret name (accepts regex) │
       ├────────┼────────────────────────────────────┤
       │ id[ID]FullorpartialsecretID     │
       └────────┴────────────────────────────────────┘

   --format=format
       Format secret output using Go template.

       Valid placeholders for the Go template are listed below:

       ┌──────────────────────────┬───────────────────────────────────────┐
       │ PlaceholderDescription                           │
       ├──────────────────────────┼───────────────────────────────────────┤
       │ .CreatedAt...           │ When  secret  was  created  (relative │
       │                          │ timestamp, human-readable)            │
       ├──────────────────────────┼───────────────────────────────────────┤
       │ .IDIDofsecret                          │
       ├──────────────────────────┼───────────────────────────────────────┤
       │ .SecretData              │ Secret   Data  (Displayed  only  with │
       │                          │ --showsecret option)                  │
       ├──────────────────────────┼───────────────────────────────────────┤
       │ .Spec...Detailsofsecret                     │
       ├──────────────────────────┼───────────────────────────────────────┤
       │ .Spec.Driver...Driverinfo                           │
       ├──────────────────────────┼───────────────────────────────────────┤
       │ .Spec.Driver.NameDrivername(string)                  │
       ├──────────────────────────┼───────────────────────────────────────┤
       │ .Spec.Driver.Options... │ Driver  options   (map   of   driver- │
       │                          │ specific options)                     │
       ├──────────────────────────┼───────────────────────────────────────┤
       │ .Spec.Labels...Labelsforthissecret                │
       ├──────────────────────────┼───────────────────────────────────────┤
       │ .Spec.NameNameofsecret                        │
       ├──────────────────────────┼───────────────────────────────────────┤
       │ .UpdatedAt...           │ When    secret   was   last   updated │
       │                          │ (relative timestamp, human-readable)  │
       └──────────────────────────┴───────────────────────────────────────┘

   --noheading,-n
       Omit the table headings from the listing.

   --quiet,-q
       Print secret IDs only.

See Also

podman(1), podman-secret(1)

Synopsis

podmansecretls [options]

See Also