149 Commits

Author SHA1 Message Date
Vault Automation
16f98c11ce
[UI] Dismiss Wizards in Playwright Tests (#12699) (#12728)
* adds constants util for wizards and updates service to use WizardId type

* updates wizards to use WIZARD_ID_MAP values

* updates wizard tests to use the service for dismissal

* updates playwright setup to add all wizard ids as dismissed in localStorage

* removes wizard dismissal step from existing playwright tests

* fixes issues accessing owner in beforeEach hooks of namespaces acceptance tests

Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
2026-03-20 15:51:44 -04:00
Vault Automation
b057aac746
[VAULT-43339] 1/2 Chore update TS (#13050) (#13105)
* Initial ts updgrade

* Migrate linked-block to ts to squash ts errors

* [VAULT-43339] 2/2 Update vault-reporting and add ember-intl (#13062)

* Update vault-reporting and add ember-intl

* Add setupIntl for rendering tests

Co-authored-by: Jim Wright <jim.wright@hashicorp.com>
2026-03-17 15:52:40 -07:00
Vault Automation
c852fa2542
UI: Cert auth method Vault UI (#12890) (#12922)
* add cert auth method to ui

* add test coverage

* add changelog

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2026-03-11 17:53:58 +00:00
Vault Automation
24c3412135
Add V2 Form generator script (#12062) (#12089)
Add automated form config generation from OpenAPI specs.
Generator script can be utilized by passing API method name
which will then parse the OAS and generate the necessary form
configuration to be used with the upcoming V2 Form systems.

Co-authored-by: Angelo Cordon <angelo.cordon@hashicorp.com>
2026-02-25 19:09:42 +00:00
Vault Automation
b593ca128e
Backport [VAULT-40813] ManageDropdown component into ce/main (#12508)
* [VAULT-40813] ManageDropdown component (#12295)

* [VAULT-40813] ManageDropdown component

* address pr comments, add routing test coverage

* fix test: generate policy is an enterprise-only feature

---------

Co-authored-by: Shannon Roberts (Beagin) <beagins@users.noreply.github.com>
Co-authored-by: Shannon Roberts <shannon.roberts@hashicorp.com>
2026-02-25 10:37:43 -08:00
Vault Automation
4148334d42
UI: Hide agent_registry backend from secrets engines list page (#12459) (#12466)
* add agent registry to hidden backend list

* consolidate excluded mounts to a single list

---------

Co-authored-by: Dan Rivera <dan.rivera@hashicorp.com>
Co-authored-by: claire bontempo <cbontempo@hashicorp.com>
2026-02-21 00:53:43 +00:00
Vault Automation
504334f8bb
UI: Add policy flyout to PKI (#12335) (#12373)
* make router-lookup helper

* add policyPaths arg to flyout and update route cache to map

* update kv flyouts and test coverage

* round out test coverage, rename method from get to lookup

* alphabetize PATH_MAP

* support other change events for inputSearch to allow copy/pasting items

* update overview requests and improve ux for limited permissions

* request each key permissions

* add flyout to pki page header

* update changelog

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2026-02-17 19:28:47 -08:00
Vault Automation
af07b60f99
[VAULT-33083] support mount external engine (#11659) (#12284)
* [VAULT-33083] support mount external engine

* add "Plugin type" and "Plugin version" fields to the enable mount page

* add changelog

* address copilot review comments

* address PR comments, code cleanup

* fix test failures

* Add support for external plugins registered without a plugin version

* external plugin should be enabled for enterprise only, plugin version should be mandatory for external plugins

* fix tests

* address copilot feedback

* fix failing tests, add unit test coverage

* address PR comments

* address PR comments

* remove dead code

* move no external versions alert

* Only show un-versioned plugin message if there are un-versioned plugins in the catalog.

* address PR comments

* use ApiService instead of custom PluginPinsService; fix failing tests

* revert changes to forms/mount.ts and forms/auth/method.ts

Co-authored-by: Shannon Roberts (Beagin) <beagins@users.noreply.github.com>
2026-02-10 14:18:14 -08:00
Vault Automation
80a651c342
UI: Secrets Engines tune support clean up (#12125) (#12178)
* removing isOldEngine, moving list view actions into header

* removing old unused config page

Co-authored-by: Dan Rivera <dan.rivera@hashicorp.com>
2026-02-04 21:25:39 +00:00
Vault Automation
5d869440c3
[UI] Ember Data Migration - Client Counts (#12026) (#12132)
* updates flags service to use api service

* converts clients index route to ts

* updates clients config workflows to use api service

* updates clients date-range component to handle Date objects rather than ISO strings

* updates clients page-header component to handle Date objects and use api and capabilities services

* updates clients route to use api and capabilities services

* updates types in client-counts helpers

* updates client counts route to use api service

* updates types for client-counts serializers

* updates date handling in client counts page component

* updates clients overview page component

* converts clients page-header component to ts

* fixes type errors in clients page-header component

* updates client counts tests

* updates client-count-card component to use api service

* converts client-count-card component to ts

* removes model-form-fields test that uses clients/config model

* removes clients/version-history model usage from client-counts helpers tests

* removes migrated models from adapter and model registries

* removes clients ember data models, adapters and serializers

* updates clients date-range component to format dates in time zone

* cleans up references to activityError in client counts route

* adds clients/activity mirage model

* updates activation flags assertions in sync overview tests

* fixes issue selecting current period in clients date-range component and adds test

* fixes issues with enabled state for client counts

* updates parseAPITimestamp to handle date object formatting

* removes unnecesarry type casting for format return in parseAPITimestamp util

* updates parseAPITimestamp to use formatInTimeZone for strings

* updates parseAPITimestamp comment

* updates enabled value in clients config component to boolean

* adds date-fns-tz to core addon

* removes parseISO from date-formatters util in favor of new Date

* updates comments for client counts

* updates retention months validation for client counts config

* updates comment and min retention months default for client counts config

Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
2026-02-03 16:18:52 +00:00
Vault Automation
8edcbc5a04
UI: Add tune support to KMIP Secrets Engine (#12028) (#12105)
* adding kmip header

* updating header usage across pages

* updating config routes to use new pages

* fixes to config page & test

* Remove unused comp

* fixes for headers

* fix in router

* update headers to use page comp directly, add tabs comp

* remember copywrite

* code cleanup

Co-authored-by: Dan Rivera <dan.rivera@hashicorp.com>
2026-01-30 15:03:28 -05:00
Vault Automation
2eb6905459
UI: remove cluster route and model boundary route mixins (#11873) (#12025)
* remove cluster route and model boundary route mixins

* add copyright header

* remove old unit test

* change replication/application route

* don't use cluster route in replication

* why have a base class at all?

* test tweaks

* remove afterModel redirect in replication

* refactor targetRouteName to use derived state

* Update route class name on replication-dr-promote.js



---------

Co-authored-by: Matthew Irish <39469+meirish@users.noreply.github.com>
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2026-01-29 11:02:04 -06:00
Vault Automation
0d0a06c491
Update eslint console rule (#11883) (#11948)
Allow for console error and warn and fail for everything else.
Remove disable rules for console.

Co-authored-by: Angelo Cordon <angelo.cordon@hashicorp.com>
2026-01-23 13:26:41 -08:00
Vault Automation
e21dfb9707
UI: Add tune support to Kubernetes Secrets Engine (#11855) (#11935)
* updating kub to use new config pages

* fix tests

* remove cta

* fix test

* updating configure route data, adding tests for dropdown/exit button

Co-authored-by: Dan Rivera <dan.rivera@hashicorp.com>
2026-01-23 17:27:22 +00:00
Vault Automation
60eb60c24f
[UI] Ember Data Migration - KMIP Cleanup (#11838) (#11865)
* updates kmip scope roles route to ts

* updates kmip scope roles route to use api service and adds page component

* converts kmip role route to ts

* fixes a11y error in kmip header-credentials component

* updates kmip role route to use api service and adds page component

* removes kmip operation-field-display component that was moved into role page component

* converts kmip role create route to ts

* moves kmip role form component to component directory root

* converts kmip role form component to ts

* adds operation-groups helper and refactors kmip role page to use it

* adds operation-label helper and updates kmip role page to use it

* converts kmip edit role route to ts

* updates kmip role test to use operation-groups helper

* adds kmip role form

* updates kmip role edit and create routes to use api service and form class

* updates kmip role form component to work with form class

* updates kmip acceptance tests

* converts kmip credentials index route to ts

* updates kmip credentials route to use api service

* adds kmip credentials page component

* converts kmip credentials show route to ts

* updates kmip credentials show route to use api service and adds page component

* fixes flash message issue on kmip role form submit success

* converts kmip credentials generate route to ts

* reverts kmip credentials show page component in favor of details-credentials component which is also used in generate route

* fixes kmip details-credentials tests

* update kmip credentials generate route to use api service and updates page component

* removes store and pagination services from kmip engine

* converts kmip breadcrumb component to ts

* converts kmip header scope component to ts

* removes kmip Ember Data models and adapters

* removes store reference from kmip acceptance tests

* fixes issues routing back to secrets engine via breadcrumb in kmip roles and credentials routes

* removes kmip role adapter test

* updates open api helpers tests

Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
2026-01-21 17:20:19 +00:00
Vault Automation
5e36c2417f
[UI] Ember Data Migration - KMIP Credentials (#11837) (#11858)
* updates kmip scope roles route to ts

* updates kmip scope roles route to use api service and adds page component

* converts kmip role route to ts

* fixes a11y error in kmip header-credentials component

* updates kmip role route to use api service and adds page component

* removes kmip operation-field-display component that was moved into role page component

* converts kmip role create route to ts

* moves kmip role form component to component directory root

* converts kmip role form component to ts

* adds operation-groups helper and refactors kmip role page to use it

* adds operation-label helper and updates kmip role page to use it

* converts kmip edit role route to ts

* updates kmip role test to use operation-groups helper

* adds kmip role form

* updates kmip role edit and create routes to use api service and form class

* updates kmip role form component to work with form class

* updates kmip acceptance tests

* converts kmip credentials index route to ts

* updates kmip credentials route to use api service

* adds kmip credentials page component

* converts kmip credentials show route to ts

* updates kmip credentials show route to use api service and adds page component

* fixes flash message issue on kmip role form submit success

* converts kmip credentials generate route to ts

* reverts kmip credentials show page component in favor of details-credentials component which is also used in generate route

* fixes kmip details-credentials tests

* update kmip credentials generate route to use api service and updates page component

Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
2026-01-20 23:15:13 +00:00
Vault Automation
8b300cf6eb
[UI] Ember Data Migration - KMIP Roles (#11801) (#11854)
* updates kmip scope roles route to ts

* updates kmip scope roles route to use api service and adds page component

* converts kmip role route to ts

* fixes a11y error in kmip header-credentials component

* updates kmip role route to use api service and adds page component

* removes kmip operation-field-display component that was moved into role page component

* converts kmip role create route to ts

* moves kmip role form component to component directory root

* converts kmip role form component to ts

* adds operation-groups helper and refactors kmip role page to use it

* adds operation-label helper and updates kmip role page to use it

* converts kmip edit role route to ts

* updates kmip role test to use operation-groups helper

* adds kmip role form

* updates kmip role edit and create routes to use api service and form class

* updates kmip role form component to work with form class

* updates kmip acceptance tests

* fixes flash message issue on kmip role form submit success

Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
2026-01-20 20:38:18 +00:00
Vault Automation
48dbd17974
UI: Add tune support for PKI Secrets engine (#11761) (#11826)
* add dropdown

* first pass

* adding configure page w creation, edit and routing

* remove route

* remote route usage

* test fixes

* fix title

* add things back

* test fixes

* testing

* moving to template

* fixing configure

* applying suggestions & updating tests

* removing login lines to mend tests

* update header

* fix test

Co-authored-by: Dan Rivera <dan.rivera@hashicorp.com>
2026-01-16 21:30:18 +00:00
Vault Automation
673f170d03
[UI] Ember Data Migration - KMIP Scopes (#11763) (#11781)
* converts kmip scopes index route to ts

* adds capabilities service to kmip engine

* updates kmip scopes index route to use api service

* adds kmip scopes page component

* adds kmip scopes create page component

* adds pagination component to scopes page

* adds tests for kmip scopes page component

* fixes path for kmip scope capabilities in scopes route

* fixes issue with linked block linkPrefix in kmip scopes page

Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
2026-01-14 23:09:23 +00:00
Vault Automation
12e793039a
[UI] - migrate to pnpm for JS package management (#11651) (#11661)
* move from yarn to pnpm for package management

* remove lodash.template patch override

* remove .yarn folder

* update GHA to use pnpm

* add @babel/plugin-proposal-decorators

* remove .yarnrc.yml

* add lock file to copywrite ignore

* add @codemirror/view as a dep for its types

* use more strict setting about peerDeps

* address some peerDep issues with ember-power-select and ember-basic-dropdown

* enable TS compilation for the kubernetes engine

* enable TS compilation in kv engine

* ignore workspace file

* use new headless mode in CI

* update enos CI scenarios

* add qs and express resolutions

* run 'pnpm up glob' and 'pnpm up js-yaml' to upgrade those packages

* run 'pnpm up preact' because posthog-js had a vulnerable install. see https://github.com/advisories/GHSA-36hm-qxxp-pg3

* add work around for browser timeout errors in test

* update other references of yarn to pnpm

Co-authored-by: Matthew Irish <39469+meirish@users.noreply.github.com>
2026-01-09 11:45:14 -06:00
Vault Automation
5013a5e764
UI: Updating KVV2 to use new config/tune flow (#11256) (#11511)
* separate header comp

* replacing header

* redirect to general settings

* moving kv configure under plugin settings

* add exit button

* removing all use of old header with new, updated logic

* reuse secretPath, add button to badge

* test updates pt1

* test updates pt2, refactors

* test fixes

* testing

* removing extendedConfig

* put tabs out of header

* adding new config edit page & updates

* adding page test

* pr comments

* replace type with effectiveType

* test fixes

* adding badges, cleanup test

Co-authored-by: Dan Rivera <dan.rivera@hashicorp.com>
2025-12-18 23:19:37 +00:00
Vault Automation
91025c9ce7
[VAULT-33083] UI: support builtin plugins as external plugins (#11244) (#11489)
* [VAULT-33083] UI: support builtin plugins as external plugins

* address copilot review comments

* add changelog

* remove unused id property

* address some nits & add test coverage

* should use utils instead of mixins

* update comments

* move/consolidate logic for 'transform' engine type into ENGINE_TYPE_TO_MODEL_TYPE_MAP, added/updated test coverage

* cleanup: extract transform engine model type logic into helper functions

* address pr comment

* separation of concerns - move relevant vars/fns from all engines metadata to external plugin helpers & secret engine model helpers files

* add TODO; remove unnecessary exports

* rename secret-engine-model-helpers to secret-engine-helpers

* update unknown engine metadata from var to fn to handle a methodType param

* remove unnecessary test

* update changelog; return methodType for unknown engine metadata, simplify code for readability

* add optional chaining for fail-safe

* address kvv1 edge case - on exit configuration, kvv1 should redirect to list-root while kvv2 should redirect to the engineRoute defined in all-engines-metadata

* add ibm header

* fix test failure after updating unknown engine type

Co-authored-by: Shannon Roberts (Beagin) <beagins@users.noreply.github.com>
2025-12-18 18:29:20 +00:00
Vault Automation
304ba958fe
[UI] Ember Data Migration - Kubernetes Roles (#11403) (#11419)
* enables typescript in kubernetes engine

* adds api service to kubernetes engine

* removes mounts handler from kubernetes mirage handler

* adds kubernetes application route to handle withConfig decorator check

* updates usage of application model in kubernetes engine

* updates kubernetes configuration route to use api service fetched config

* adds kubernetes config form class

* updates error route backend references to secretsEngine

* updates kubernetes configure workflow to use api service and form class

* fixes tests

* converts kubernetes index route to ts

* adds capabilities service to kubernetes engine

* updates kubernetes roles view to use api service

* converts kubernetes role details component to ts

* updates kubernetes role details route to use api service

* reverts kubernetes mirage handler change

* converts kubernetes role index route to ts

* updates kubernetes generate credentials workflow to use api service

* converts kubernetes role edit and create routes to ts

* converts kubernetes create-and-edit component to ts

* adds form class for kubernetes role

* updates kubernetes create and edit routes to use api service and form class

* fixes tests

Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
2025-12-16 23:13:18 +00:00
Vault Automation
1934f2698c
UI: Updating non-ember engines to utilize new config tune flow (#10853) (#11236)
* removing flags

* small changes

* fixes

* move things back

* utilizing aftermodel w mods, testing aws

* fix ssh tests

* fixing aws and azure

* fix gcp

* fix test and flip kv

* fix kv2 tests

* adding model to fix tests

* updates and removals

* fix tests

* no showing empty state, redirect to plugin settings after config save

* test fixes

* update subtitle to include namepsace, fix test

* removing index, replacing with general settings, updates

* updates and fix tests

* more test fixes

* wif tests

* updates to nav tests

* update tests and cleanup configuration logic

* add todos

* fix remaining tests, add nav test to gcp

* test tweak

* address todos, test update

* Update ui/app/routes/vault/cluster/secrets/backend/configuration/plugin-settings.ts



* I love prettier so much

---------

Co-authored-by: Dan Rivera <dan.rivera@hashicorp.com>
Co-authored-by: claire bontempo <cbontempo@hashicorp.com>
Co-authored-by: Shannon Roberts (Beagin) <beagins@users.noreply.github.com>
2025-12-12 11:23:32 -08:00
Vault Automation
2e0f2f1646
[UI] Ember Data Migration - LDAP Library (#11254) (#11260)
* removes withConfig decorator and moves check to application route

* updates backendModel references in ldap engine to secretsEngine

* adds ldap config form class

* updates ldap config type in application route

* updates ldap configure and configuration routes to use api service

* adds capabilities service to ldap engine

* updates ldap mirage handler and scenario

* adds ldap capabilities constants and helper for fetching capabilities for roles

* updates ldap roles view to use api service

* updates ldap role details view to use api service

* updates ldap role create/edit views to use api service and form classes

* updates ldap role subdirectory view to use api service

* updates ldap role credentials view to use api service

* updates ldap libraries list views to use api service

* updates ldap library details view to use api service

* updates ldap library details accounts view to use api service

* updates ldap library details accounts check out view to use api service

* updates ldap library details configuration view to use api service

* updates ldap library create/edit workflows to use api service and form class

* fixes lint errors

* removes errant log

Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
2025-12-10 10:38:40 -07:00
Vault Automation
80a5800c16
[UI] Ember Data Migration - LDAP Roles (#11196) (#11249)
* removes withConfig decorator and moves check to application route

* updates backendModel references in ldap engine to secretsEngine

* adds ldap config form class

* updates ldap config type in application route

* updates ldap configure and configuration routes to use api service

* adds capabilities service to ldap engine

* updates ldap mirage handler and scenario

* adds ldap capabilities constants and helper for fetching capabilities for roles

* updates ldap roles view to use api service

* updates ldap role details view to use api service

* updates ldap role create/edit views to use api service and form classes

* updates ldap role subdirectory view to use api service

* updates ldap role credentials view to use api service

Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
2025-12-09 17:26:04 +00:00
Vault Automation
c34e25fb76
[UI] Ember Data Migration - LDAP Config (#11048) (#11194)
* removes withConfig decorator and moves check to application route

* updates backendModel references in ldap engine to secretsEngine

* adds ldap config form class

* updates ldap config type in application route

* updates ldap configure and configuration routes to use api service

Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
2025-12-05 17:43:38 +00:00
Vault Automation
51c6f056bb
UI: Remove extra request for LDAP engine config (#10919) (#10947)
* remove request for ldap config;

* simplify tabs to accept routes as args

* reuse tabs in ember engines

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2025-11-20 00:26:36 +00:00
Jordan Reimer
66faca3a63
[UI] Ember Data Migration - PKI Issuers (#10757) (#10896)
* updates issuers list route to use api service

* updates issuer details route to use api service

* updates issuer edit route to use api service

* updates issuer cross sign route to use api service

* updates issuer sign intermediate route to use api service

* updates rotate root route to use api service

* fixes a11y violation in pki-issuer-edit component

* updates subject_serial_number to serial_number for pki
2025-11-18 10:39:26 -07:00
Vault Automation
71dee6b2e5
[UI] Ember Data Migration - PKI Configuration (#10328) (#10523)
* [UI] Ember Data Migration - PKI Config Setup (#10320)

* adds api and capabilities services to pki engine

* updates eslintrc to ignore rest siblings for no-unused-vars rule

* adds ember-template-lint to pki engine

* updates check-issuers decorator to use api service

* adds constants for pki capabilities paths

* updates pki configuration route to use api service and fetch capabilities

* [UI] Ember Data Migration - PKI Config Generate Form (#10322)

* updates form class data object to tracked

* adds isNot validator

* updates tsconfig to resolve json modules

* updates open-api form class to use the spec file rather than help response for form field/group generation

* adds pki config generate form

* [UI] Ember Data Migration - PKI Config Create (#10331)

* updates pki configure create route and component

* updates pki generate csr component to use api service and form class

* updates pki generate root component to use api service and form class

* updates pki import bundle component to use api service

* [UI] Ember Data Migration - PKI Config Generate Sub Components (#10332)

* updates pki generate toggle groups component to support form class

* updates pki key parameters component to support form class

* updates pki generate immediate component based on csr component changes

* updates pki generate root component based on root component changes

* more pki config sub component updates

* updates pki issuer rotate root component to use api serivce and form

* updates pki acceptance tests (#10341)

* [UI] Ember Data Migration - PKI Configuration Edit (#10339)

* adds forms for pki config acme, cluster, crl and urls

* updates pki config edit worflow to use api service and forms

* updates pki config details workflow to use api service (#10340)

* updates auth configure section route to pass schema key to OpenApiForm constructor

Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
2025-11-18 09:42:22 -07:00
Vault Automation
a629acd818
[UI] VAULT-40825 LDAP Engine Plugin Settings Follow-on Tickets (#10768) (#10870)
* VAULT-40827 Remove isOldEngine property

* VAULT-40826 clean up plugin links logic

* Fix plugin settings logic..

* Add comments..

* Fix bug!

* AAdd configEdit and configRead route

* Configure tabs suggestion (#10795)

* refactor logic into one local helper

* refactor to pass in metadata

* update comments

* fix arg typo

* don't make assumptions! explicitly check whether an engine isConfigurable

* pass in @isConfigured arg and add isConfigurable boolean for any engine

* add integration test

* add acceptance test

* Use configs

* Remove unused vars

* Use configurableEngines

* Add aftermodel hook..

* add list route nav test

* Remove dropdown

* Remove mount config test

* Fix failign tests

* Fix tests..

---------

Co-authored-by: Kianna <30884335+kiannaquach@users.noreply.github.com>
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
Co-authored-by: claire bontempo <cbontempo@hashicorp.com>
2025-11-17 17:48:12 -08:00
Vault Automation
621e3686f0
UI: LDAP Plugin settings (#10476) (#10763)
* Update plugin-settings tab routes

* Get LDAP engine working with plugin-settings and general-settings

* Add copyright headers

* Fix ts error

* Fix more failing tests

* Gate header by ff

* Update failing tests and fix bugs

* Add changelog

* Fix configure tabs route name

* Update comment

* Address some comments

* configuration route..

* Update configure and configuration routes to use header

* Update tab-page-header component name

* Fix onClose modal issue where screen locks up

* Put configure back..

* Fix template errors

* Update manage dropdown..

* Move things back..

* Fix tests!

* Fix modal locked in bug

* Fix failing test where it wasnt transitioning to the configuration route

* Use ember concurrency instead

* Check if onConfirm exists before calling it

* Update variable

* Remove unused ConfigureTabs

* Fix JS doc and remove conditional

Co-authored-by: Kianna <30884335+kiannaquach@users.noreply.github.com>
2025-11-12 18:02:16 -08:00
Vault Automation
0e6dc73772
UI: fix PKI certificate key_usage parsing and add extended key flags to role form (#10416) (#10479)
* fix parsing of key_usage VAULT-40303

* VAULT-40220 add extended key usage flags and test coverage

* add test coverage

* add changelog

* fix mislabeled role parameter

* update tests

* VAULT-40219 link jira

* update changelog text

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2025-10-29 18:47:57 +00:00
Vault Automation
0c6c13dd38
license: update headers to IBM Corp. (#10229) (#10233)
* license: update headers to IBM Corp.
* `make proto`
* update offset because source file changed

Signed-off-by: Ryan Cragun <me@ryan.ec>
Co-authored-by: Ryan Cragun <me@ryan.ec>
2025-10-21 15:20:20 -06:00
Vault Automation
0b939eaaf4
[UI] Ember Data Migration - KV Secrets/Metadata (#9508) (#9762)
* adds error handling for control groups to api service as post request middleware

* updates kv list route to use api service

* updates kv config route to use api service

* updates kv secrets overview route to use api service

* updates kv secret details route to use api service

* adds kv form

* updates kv metadata details route to use api service

* updates kv paths and version history routes to use api service

* refactors kv-data-fields component to form component

* updates kv secret create route to use api service

* updates kv secret edit route to use api service

* updates kv metadata edit route to use api service

* adds waitFor to async middleware in api service to attempt to fix race conditions in tests

* adds kvMetadata path to capabilities path map

* fixes kv list item delete test selector

* fixes kv v2 workflow create tests

* fixes issue returning metadata for secret when latest version is deleted

* decodes uri in path returned by api service parseError method

* fixes kv v2 edge cases tests

* fixes issue deleteing control group token in api service

* decodes url for control group token lookup in api service

* fixes version history linked block link

* defaults cas to 0 when creating new secret

* removes log

* adds ember-template-lint to kv engine

* more test fixes

* updates kv helpers from classic format

* updates kv helpers imports

* reverts to use secret.version in details edit route

* fixes isDeleted import in kv version history test

* adds waitFor to api service parseError method

* reverts removing async from addQueryParams api method

Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
2025-10-02 10:44:22 -06:00
Vault Automation
425e80a933
[UI] Ember Data Migration - KV List/Config (#9493) (#9676)
* adds error handling for control groups to api service as post request middleware

* updates kv list route to use api service

* updates kv config route to use api service

* adds waitFor to async middleware in api service to attempt to fix race conditions in tests

* adds kvMetadata path to capabilities path map

* fixes kv list item delete test selector

Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
2025-10-01 10:35:31 -06:00
Vault Automation
91eabbd0db
[Feature][UI]: General Settings Follow Up Items (#8965) (#9262)
* UI: VAULT-39172 VAULT-38567 general settings followup (#8910)

* Add unsaved changes fields

* Set up default values for TTL and update general-settings

* Add form error state

* Ass TODO cmment

* Move actions back!

* Update unsaved changes state

* Address comments and add TODOs

* UI: VAULT-39264 Lease Duration TTL picker (#9080)

* Update default and max ttl to show correct default

* Query sys/internal endpoint for ttl values

* WIP ttl-picker-v2

* Intialize values and check for if ttl value is unset

* Use ttlKey instead of name

* Set name to be ttlKey

* Show validation for ttl picker

* Fix validation bugs

* Remove lease duration files

* Add copyright headers

* Initalize only when its a custom value

* Update ttl-picker to not have a dropdown

* Validate field before converting to secs

* [UI] Fix styling and update version card component (#9214)

* Fix styling and update version card component

* Update unsaved changes

* Code cleanup

* More code cleanup!

* Add helper function

* Remove query for lease duration

* Fix outstanding issues

* Captialize unsaved changes

* Update util name

* Remove action helper

* [UI]: General Settings design feedback updates (#9257)

* Small refactor based on design feedback

* More refactoring!

* Rename variables so it makes more sense!

* Remove unused modal fields

Co-authored-by: Kianna <30884335+kiannaquach@users.noreply.github.com>
2025-09-10 15:27:45 -07:00
Vault Automation
b79dcd715a
[UI] Ember Data Migration - Auth Method/Config Cleanup (#9033) (#9058)
* removes remaining instances of auth-method model/adapter use

* removes auth method and config models/adapters/serializers

* fixes field to attrs tests

* fixes mfa tests

* fixes password reset

Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
Co-authored-by: Jordan Reimer <jordan.reimer@hashicorp.com>
2025-09-04 11:00:29 -06:00
Jordan Reimer
d8ecd066b8
Copy [UI] Ember Data Migration - Auth Method Configs into main (#9000) (#9099)
* updates auth method options route to use form and api client

* updates auth method config and section routes to use api client and open api form

* updates display attrs for auth method configs

* fixes plugin identity util fields tests

* fixes js lint error

* updates enable-tune-form tests

* hides specific form field for jwt/oidc auth config types

* Revert "updates display attrs for auth method configs"

This reverts commit 5d382f79276f56b3fdbe64fcbc9c8365c5f4b421.

* Revert "fixes plugin identity util fields tests"

This reverts commit 6d4acbe3228c796745f2dea6279c1540bb053c62.

* fixes config section test

* bumps api client version

* updates auth config form options component to use proper endpoint

* fixes enable tune form tests

* fixes auth config form options tests

* fixes type errors in snapshot-manage component

* updates recover_source_path arg to undefined so it is not included in the query params

* fixes remaining test failures related to user_lockout_config

---------

Co-authored-by: Vault Automation <github-team-secure-vault-core@hashicorp.com>
2025-09-03 17:11:41 -07:00
Vault Automation
4a885a8ec8
[VAULT-34035] UI: Retrieve plugin catalog data on enable a secrets engine (#8832) (#9050) 2025-09-02 11:17:17 -07:00
Dan Rivera
53bd1e2af2
UI: Adding flag for displaying old or new page views for secret engines (#31451)
* adding oldengine flag and comments in metadata util

* remnant
2025-08-07 17:40:32 -04:00
Jordan Reimer
863ab9408c
[UI] Ember Data Migration - Auth Method Enable (#31394)
* adds form for auth method and updates mount backend form to use it

* fixes tests
2025-08-01 08:54:41 -06:00
claire bontempo
31051ef1e4
UI: Implement api service in auth components (#31085)
* change entity_id to camel casing, remove "backends" key from stored auth data

* fix tokenExpirationEpoch returning NaN, use authSuccess in auth service tests

* camel case mfa_requirement references

* refactor auth service

* implement api service for token method

* implement api service in standard auth methods

* add lookupSelf request to persistAuthData method in auht service instead of calling in components

* implement api service in oidc-jwt component

* implement api service in okta component

* implement api service in saml component

* use api service for wrapped_token query param

* remaining test updates, enterprise tests and stabilize auth helpers

* upate renew() to use new persistAuthData method, add a test

* revert as this will be addressed upstream

* rename supported-login-methods to auth-form-helpers and delete old supported-auth-backends helper, update tests

* cleanup normalize after testing mfa validation for each auth method

* update type declarations, set displayName in each method component

* stabilize redirect tests by waiting for login before asserting url

* stabilize tests

* modernize typescript syntax, move error const to util

* use mirage instead of vault server to resolve test race conditions

* fix file import
2025-07-09 10:11:23 -07:00
Jordan Reimer
75e1108750
[UI] Ember Data Migration - Auth Method List/Config (#31203)
* updates auth method list and config views to use api service

* adds capabilities checks to auth methods route

* fixes auth method config tests

* updates SecretsEngine type to Mount

* updates listingVisibility value in config test

* adds missing copyright header
2025-07-08 11:50:38 -06:00
Dan Rivera
008835ba36
UI: Surface plugin version & cleanup utils (#31001)
* surface plugin version & removing mountable-auth-methods.js

* UI: Removing mountable-secret-engines.js (#30950)

* first pass, removing all related imports

* fix usage

* fix category

* fix typos

* fix more tests

* fix more tests pt2

* attempting WIF const removal

* fix wif tests, removing config consts

* fixing tests

* please

* removing fallback

* cleanup

* fix type ent test

* remove isaddon

* Revert "remove isaddon"

This reverts commit ee114197b7299711e35e3c8e5aca9694063726eb.

* adding tab click

* update case

* fix case, rename to isOnlyMountable

* fix backend form

* more test fix

* adding changelog

* pr comments

* renaming params, adding requiresADP

* updates

* updates and pr comments

* perhaps update the test
2025-06-19 15:10:09 -04:00
Jordan Reimer
2417aa9aad
[UI] Ember Data Migration - Secrets Engine (#30829)
* [UI] Ember Data Migration - Secrets Engine Resource (#30791)

* adds base factory for resources and secrets engine resource

* updates dashboard and secret-engine list route to fetch mounts from api service

* updates secret backends routes to use api service

* updates secrets engine config routes to use api service

* updates secrets backend route to use internal mounts endpoint and fixes error handling

* updates property casing in config details card component

* fixes dashboard tests

* fixes issues with engine configuration

* updates api service to only set token header if value is defined in auth service

* fixes more tests

* Update ui/app/routes/vault/cluster/secrets/backend/configuration/index.js

Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>

* removes alwaysRender from publicKey field in secret engine configuration details component

* removes unused hideToggle arg from secret engine mount config template

* updates kv config route to load secret-engine model

* fixes kv config route

---------

Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>

* [UI] Ember Data Migration - Secrets Engine Forms (#30951)

* adds secrets engine form class

* updates mount-secret-backend route and form component to use secrets engine form class and api service

* updates to form class proxy for nested form data properties

* adds form classes for configurable secrets engines

* updates secrets engine config edit route and components to use form classes and api service

* adds missing copyright header

* fixes tests

* fixes type error

* updates configure-ssh component to use form class and api service

* updates configure-ssh tests

* updates configuration-wif component tests

* fixes mount secret backend and form tests

* adds method to normalize request key casing to api service

* addresses pr review feedback

* removes unused secrets engine config models, adapters and serializers (#30980)

* fixes azure config tests

* fixes more ent tests

---------

Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
2025-06-16 14:29:17 -06:00
Evan Moncuso
689ede2da5
[UI] - introduce Posthog for Vault Dedicated managed clusters (#30425)
* add dummy provider and wire it into the app

* add tests for analytics service

* add posthog provider

* wire in posthog

* add HVD limitation for analytics and add unit test

* filter out sensitive event properties

* add changelog

* run copywrite headers

* update logging tests for analytics service

* update changelog format

* disable telemetry in test mode

* remove unnecessary test

* self review

* Update vault-reporting addon with analytics tracking changes

* address review feedback

---------

Co-authored-by: Jim Wright <jim.wright@hashicorp.com>
2025-05-23 19:40:29 +00:00
Dan Rivera
fbb446f974
UI: Custom login settings views (#30592)
* UI: Adding routes for custom login settings  (#30404)

* adding route block

* adding to side nav

* jk its diff

* adding TODO, adding empty files

* UI: Adding List view component for custom login settings (#30459)

* first pass setting up list view

* style fix

* messing with routes

* fix

* undo

* using mock data

* renaming

* [UI] API Service Error Parsing (#30454)

* adds error parsing method to api service

* replaces apiErrorMessage util instances with api service parseError

* removes apiErrorMessage util and tests

* removes ApiError type

* fixes issue in isLocalStorageSupported error handling

* remove cli folder (#30458)

* [DOCS] Add explicit links to older release notes (#30461)

* Add explicit links to older release notes

* remove domain from URLs

* add link to important changes as well

* bump timeout for single flaky test (#30460)

* adds list response parsing to api service (#30455)

* update versions, and replace summary in important changes section (#30471)

* Update CHANGELOG.md (#30456)

* UI: Update Enterprise Client Count Datepicker (#30349)

* date picker changes (mostly) for ent client counts

* Move edit modal button + padding

* only show start time in dropdown and add changelog

* remove unused variable and update toggle width

* remove unnecessary period end dates

* tidy

* update tests

* Update changelog/30349.txt

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>

* improve date logic

* add export button back in, re-arrange header, update dropdown

* update when date is shown

* add default for retention months

* update tests and remove unnecessary tests

* account for retention months that are not whole periods

* update logic to show end date on export modal

* update exported file name

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>

* Prevent early-exit of plugin reload (#30329)

* update to use util, update to this.cap

---------

Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
Co-authored-by: Ellie <ellie.sterner@hashicorp.com>
Co-authored-by: Tony Wittinger <anwittin@users.noreply.github.com>
Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com>
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
Co-authored-by: kpcraig <3031348+kpcraig@users.noreply.github.com>

* UI: Create details component for custom login rules (#30530)

* setup

* adding to view

* fixing table keys

* add breadcrumbs

* fixes

* removing default vals

* pr comments

* adding delete button to toolbar

* adding delete functionality

* reorder and fix error handling

* updating api call, adding error template, fixing selectors

* remove param

* UI: Updating visibility attr on auth config to be a toggle with direct login link (#30548)

* updating visibility attr to be a toggle, adding link placeholder

* update test

* test fix pt2

* updating to build link + copy button

* updates

* use the right word

* using hds text

* updating helper text, path

* use encode directly

* updating capabilities check, creating test files, empty state

* UI: Update custom login to use api instead of mirage (#30640)

* updating to use api, removing store

* temp test fix

* fixes on types, remove test funcs

* fix assertion

* adding tests

* updating test

* adding to tests

* stub delete?

* removing stubs, updating tests

* fixes

* moving cmd placement, updating inheritance

* adding changelog

* fix changelog

* pr comments

* update check & update test

* remove empty state block

* remove comment

* Revert "remove empty state block"

This reverts commit ce34d8c76fea3b43bb96c6acd342a5ba0471f441.

* remove the right empty state

---------

Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
Co-authored-by: Ellie <ellie.sterner@hashicorp.com>
Co-authored-by: Tony Wittinger <anwittin@users.noreply.github.com>
Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com>
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
Co-authored-by: kpcraig <3031348+kpcraig@users.noreply.github.com>
2025-05-22 14:17:14 -04:00
lane-wetmore
cdbb0c49cc
UI: Vault update client count charts to show new clients only (#30506)
* increase bar width, show new clients only, add timestamp to header, update bar color

* remove extra timestamps, switch to basic bar chart

* update docs and styling

* remove unneeded timestamp args

* show new client running totatls

* initial test updates

* update test

* clean up new client total calc into util fn

* bits of clean up and todos

* update tests

* update to avoid activity call when in CE and missing either start or end time

* update todos

* update tests

* tidying

* move new client total onto payload for easier access

* update more tests to align with copy changes and new client totals

* remove addressed TODOs

* Update comment

* add changelog entry

* revert to using total, update tests and clean up

* Update ui/app/components/clients/page/counts.hbs

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>

* remove duplicate charts and update descriptions

* update tests after removing extra charts

* tidy

* update instances of byMonthActivityData to use byMonthNewClients and update tests

* Update ui/app/components/clients/running-total.ts

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>

* update chart styles

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2025-05-19 15:57:32 -05:00
Jordan Reimer
771d8c6e7f
[UI] Ember Data Migration - Sync Destination Create/Edit (#30620)
* adds field group support to forms

* adds forms for sync destination types

* adds type for sync destination form

* adds readonlyParams to sync-destinations helper and error handling to findDestination util

* updates sync destinations create/edit routes to use forms

* updates sync create-and-edit component to use form class and api service

* updates sync destinations tests
2025-05-14 20:00:28 -06:00