Skip to content

running vault read -format=json produces warning in audit log #32081

Description

@jhrcz-ls

Describe the bug
when doing vault read -format=json <somepath> we get in audit log warning
Endpoint ignored these unrecognized parameters: [-format] (its in field message.response.warnings in case of our logging of audit log to ELK)

To Reproduce
Steps to reproduce the behavior:

  1. Run vault read -format=json <somepath> ...
  2. See error in audit log

Expected behavior
no warning happens because i expect this is the correct parametr position

Environment:

  • Vault Server Version (retrieve with vault status): 2.0.3
  • Vault CLI Version (retrieve with vault version): 2.0.4
  • Server Operating System/Architecture: linux/amd64

Additional info
i see that the request goes to /v1/myengine/some/path/mysecret?-format=json

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUsed to indicate a potential bugcore/cli

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions