CLI Commands

cnspec vault add-secret

Store a secret in a configured vault environment.

Store a secret in a configured vault environment so cnspec can retrieve it during scans without exposing credentials in plain text.

cnspec vault add-secret SECRETID SECRETVALUE [flags]

Options

  -h, --help                    help for add-secret
      --inventory-file string   Set the path to the inventory file

Options inherited from parent commands

      --api-proxy string   Set the proxy for communications with Mondoo Platform API
      --auto-update        Enable automatic provider installation and update (default true)
      --config string      Set config file path (default $HOME/.config/mondoo/mondoo.yml)
      --log-level string   Set the log level: error, warn, info, debug, trace (default "info")
  -v, --verbose            Enable verbose output

SEE ALSO

On this page