Skip to content

UI: redirect of URL change for KV v2 secrets engine does not consider type generic #27221

@luanaBanana

Description

@luanaBanana

Describe the bug
This bug fix fixed the problem for secret engines of type kv and version 2 but does not consider secret engines of type generic and version 2.

To Reproduce
Steps to reproduce the behavior:

  1. Select secret engine of type generic and version 2
  2. No secrets in this backend

Expected behavior
Secrets should be shown.

Environment:

  • Vault Server Version: 1.16.2
  • Vault CLI Version (retrieve with vault version): -
  • Server Operating System/Architecture: RedHat 8.8

Vault server configuration file(s):

Additional context

the above mentioned fix introduces this condition:

if (secretEngine.type === 'kv' && secretEngine.version === 2)
which does not include secretEngine.type === 'generic'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions