vault/ui/vault-reporting
2025-07-09 10:56:51 -07:00
..
declarations [UI] [VAULT-37770] [Updated] Update vault-reporting addon to remove the survey link (#31236) 2025-07-09 10:56:51 -07:00
dist [UI] [VAULT-37770] [Updated] Update vault-reporting addon to remove the survey link (#31236) 2025-07-09 10:56:51 -07:00
addon-main.cjs [UI] Vault reporting generated files (#30260) 2025-04-17 14:45:23 -07:00
LICENSE.md [UI] Vault reporting generated files (#30260) 2025-04-17 14:45:23 -07:00
package.json [UI] - introduce Posthog for Vault Dedicated managed clusters (#30425) 2025-05-23 19:40:29 +00:00
README.md [UI] Vault reporting generated files (#30260) 2025-04-17 14:45:23 -07:00

Vault Reporting

This repo contains shared UI components for Vault Enterprise and Cloud reporting views.

Publishing

At this time this packages is not published to the NPM registry. Since this repo is private and all enterprise features are built into the public open source vault repo we need a way to "publish" updates to vault. There are a couple of utilities to help with tihs.

Github workflow

When your changes are ready and you want to consume them in vault you can trigger a github action to automatically open a PR with the updates in the vault repo.

  1. Visit the publish-reporting-to-vault workflow for shared-secure-ui repo.
  2. Click the "Run workflow" button in the top right
  3. Enter the branch in vault you want the PR to go into, by default it will be main
  4. Submit the form

This should trigger the workflow and after a short amount of time you should be a new draft PR in the vault repo with the vault-reporting updates.

Publishing locally

You will need to have this repo and the vault repo checked out locally.

  1. Build the addon npm run build
  2. Export an environment variable called VAULT_UI_PATH with the path to your vault/ui directory (if unset it will try to find it at ~/projects/vault/ui/)
  3. Run the sync script npm run sync-to-vault --workspace @hashicorp/vault-reporting

You should see the updated dist files in the vault-reporting directory inside of vault.