Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing breadcrumbs when navigating secrets v1 engine in Vault UI #27483

Open
delfuego opened this issue Jun 13, 2024 · 0 comments
Open

Missing breadcrumbs when navigating secrets v1 engine in Vault UI #27483

delfuego opened this issue Jun 13, 2024 · 0 comments
Labels

Comments

@delfuego
Copy link

Describe the bug
In the UI for a secrets v1 engine, the breadcrumbs at the top of the UI only update when viewing a secret itself, but not when viewing any of the "folders" above the secrets.

In other words, if I have a secrets v1 engine mounted at secret/, and I click on that engine on the home page of the UI dashboard, the breadcrumb at the top reads Secrets / secret. Then, if I navigate to a secret that lives at secret/apps/portal-app/prod/db-password by clicking on each of the folders in turn, the breadcrumb at the top continues to simply read Secrets / secret until I finally click on the actual db-password entry, when the breadcrumbs finally update to read secret / apps / portal-app / prod / db-password.

This is different from the UI for the secrets v2 engine, which includes all the "subfolders" in the breadcrumbs as they are navigated.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new secrets v1 engine and mount it at any path (e.g., secretsv1).
  2. Create a new secret at a path that includes "folders" — e.g., secretsv1/this/is/a/secret).
  3. From the home page of the Vault UI, navigate serially through the "folders" to get to the new secret, and watch the breadcrumbs at the top of the UI.

Expected behavior
The breadcrumbs would include each "subfolder" as it's navigated, similar to how the secrets v2 UI does.

Environment:

Vault Server Version (retrieve with vault status):

Key                     Value
---                     -----
Seal Type               shamir
Initialized             true
Sealed                  false
Total Shares            1
Threshold               1
Version                 1.17.0
Build Date              2024-06-10T10:11:34Z
Storage Type            raft
Cluster Name            vault-cluster-4895dc59
Cluster ID              c42f9ba2-be0a-0a96-56f2-8e9624953492
HA Enabled              true
HA Cluster              https://localhost:8201
HA Mode                 active
Active Since            2024-06-13T14:31:28.272185825Z
Raft Committed Index    116806
Raft Applied Index      116806

Vault CLI Version (retrieve with vault version):

Vault v1.17.0 (72850df1bc10581b74ba5f0f7b3736f31c034235), built 2024-06-10T10:11:34Z

Server Operating System/Architecture

Running as a standard Vault Docker hub image, using the most recent v1.17.0 arm64 image.

Vault server configuration file(s):

{
        "storage": {
                "raft": {
                        "path": "/data/raft/",
                        "node_id": "node_1"
                }
        },
        "ui": true,
        "listener": {
                "tcp": {
                        "address": "[::]:8200",
                        "cluster_address": "[::]:8201",
                        "tls_cert_file": "/config/ssl/server.crt",
                        "tls_key_file": "/config/ssl/server.key",
                        "tls_disable_client_certs": true,
                        "custom_response_headers": {
                                "default": {
                                        "Strict-Transport-Security": []
                                }
                        }
                }
        },
        "api_addr": "https://hostname:8200",
        "cluster_addr": "https://hostname:8201",
        "default_lease_ttl": "168h",
        "max_lease_ttl": "0h"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants