* removes store service from confirm-leave decorator
* updates secret list header tab component to use capabilities service for database type
* removes store service from edit-form component
* removes ember data fetch support from InfoTableItemArray component
* removes store from shamir components
* removes store from replication components in core addon
* adds missing service injection to shamir flow component
* fixes reduced disclosure test
* fixes issues with seal/unseal workflow
* reverts assertion change in info-table-item-array test
* fixes database test
* updates shamir flow test
* removes commented out code
Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
* Update mfa index route beforeModel to use api instead of store
* MFA form...
* Remove mfa method
* WIP
* first arg..
* Working form submit
* Working create forms..
* Put model back in original state..
* Working edit
* Update methods list
* Working detail..
* Working infotablerows
* Use form arg instead of model
* Set up new enforcements form
* MFA enforcement...
* Update remaining pages...
* Add more util helpers
* Refactor
* Update targets initial values
* Update targets to use api
* Update useExisting
* Patch SearchSelect and fix mfa-login-enforcement-form test
* Some more tests fixed..
* Working mfa-method tests
* Passing method-form-test
* Update editDisabled
* Address feedback..
* Add attribute to data for display
* Update displayFields
* Add defaultValue
* Update tests..
* Conditionally show onClose
* Add defaultvalue
Co-authored-by: Kianna <30884335+kiannaquach@users.noreply.github.com>
* VAULT-44904 - edm for keymgmt key views
* resolved pr review comments
* moved distribution fields to component and added util tests
* fixed review comments
* updated key-edit component to use form and fixed failing tests
---------
Co-authored-by: mohit-hashicorp <mohit.ojha@hashicorp.com>
Co-authored-by: Copilot <copilot@github.com>
* updating policies to use api instead of ember models
* minor fixes
* pr comments pt1
* PR comments pt2
* test fix
* updating test
* updating intefaces
* updating to remove model arg
* remove comments
* refactor for pr comments
* fixes
* form field fix
Co-authored-by: Dan Rivera <dan.rivera@hashicorp.com>
* updates oidc assignmenmts list view to use api service
* updates oidc assignments details view to use api service
* updates oidc assignment create and edit views to use api service and form class
* updates oidc assignment-form tests
* updates oidc-key-template component to use form class
* updates oidc-assignment-template component to use form class
* updates teardown in oidc-config clients tests to use api service
Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
* updates oidc key list route to use api service
* updates oidc key details route to use api service
* updates oidc key edit and create routes to use api service
* updates oidc key clients route to use api service
* fixes oidc key tests
* removes console in oidc key-form
Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
* updates oidc scope list view to use api service
* updates oidc scope details route to use api service
* updates oidc scopes edit and create views to use api service and form class
* updates oidc scopes tests
Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
* cleanup from clients migrations
* updates oidc provider list views to use api client
* updates oidc provider details view to use api service
* adds oidc provider form class
* updates oidc provider create and edit routes to use api service and form
* updates oidc provider-form component to support form class
* updates oidc acceptance tests
* updates oidc provider delete to use api service
* test fixes
* updates search-select fallback to check if fallback component is defined
Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
* updates oidc clients list view to use api service
* updates oidc client and client details routes to use api service
* updates form field groups component to yield out form field yields
* adds oidc client form class
* updates oidc client client and edit routes to use api service
* updates oidc client-form component to use form class and removes store/model support
* updates oidc provider client route to use api service
* updates oidc key clients route to use api service
* fixes tests
Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
* updating transition for unsupported engines to route to config, code cleanup
* test updates
* updated tests to assert route & path are called with transition
* fix assertions
Co-authored-by: Dan Rivera <dan.rivera@hashicorp.com>
* [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>
* 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>
* move namespace logic over into page component
* add onPageChange arg and pass @model
* update type and arg accessor
Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com>
* move utils to a folder
* separate methods for serializing
* separate test coverage too
* make formatQueryParams a separate util
* use api service to request export data
* consolidate error templates
* move export request to parent route
* replace EmptyState with ApplicationState
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
* add breadcrumbs to secret recovery pages
* Add breadcrumbs to auth method and mfa pages
* add breadcrumbs for oidc provider pages and fix breadcrumbs comp not checking current param
* remove todo
* update test
* tidy
Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com>
* 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>
* updating routes from mounts/ to enable and updates to breadcrumbs
* updating all relevant tests
* leftover tests
Co-authored-by: Dan Rivera <dan.rivera@hashicorp.com>
* UI Fix: UI permissions banner and side bar nav gating respect Vault glob semantics (+, deny precedence) (#9522)
* add in empty states when no permissions error but no list values found.
* wip
* wip cont.
* a lot closer... I think
* looking good, now to smoke test (Again)
* welp revert fix to adapter that borked it.
* add changelog
* test coverage—a lot
* fix some issues with root vs fallback show sidebar nav
* address pr comments and clean up comments and left over duplicate methods in permission service
* Apply suggestion from @hellobontempo
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
* add resultant-acl in canary paths
* remove from canary and use capability check instead inside permissionsBanner
* clean up
* fix merge things
---------
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
* add conditional for enterprise vs ce
---------
Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
Co-authored-by: Angel Garbarino <argarbarino@gmail.com>
* support wide width splash page
* add enable_self_enrollment param to mfa-method config
* build and implement mfa setup-card display only component
* fix transition bug navigating away from mfa method
* rename mfa card
* WIP implement self-enrollment workflow
* wip integration tests
* convert mfa-form to typescript
* remove unused import
* show alert whenver there is a QR code
* organze mfa steps into Mfa::VerifyForm and Mfa::SelfEnroll
* WIP stretch goals of mfa redesign
* add copyright headers
* update test
* add support for multiple constraints with self-enrollment
* remove comment
* fix multi-method UX
* fix state for failed validation
* remove changing button for error states
* add error handling and validation messages
* minor cleanup for params
* first round of cleanup and reorganization
* final round of logic cleanup and organization
* touch ups after testing with live backend
* fix comment
* final test cleanup!
* Apply suggestions from code review
* improve mirage error handling to more accurately mimic real failures
* add test coverage
* make qr rendering logic easier
* address PR feedback
* submit enroll form on enter, remove code digit number from copy, reset enroll state
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
* delete activity component, convert date-formatters to ts
* add "month" filter to overview tab
* add test coverage for date range dropdown
* add month filtering to client-list
* remove old comment
* wire up clients to route filters for client-list
* adds changelog
* only link to client-list for enterprise versions
* add refresh page link
* render all tabs, add custom empty state for secret sycn clients
* cleanup unused service imports
* revert billing periods as first of the month
* first round of test updates
* update client count utils test
* fix comment typo
* organize tests
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
* add error handling for permission denied
* one more for the error handling business
* remove date range alert
* add more test coverage to date formatters
* update date querying and test coverage
* one more lil cleanup
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
* rename query params to match keys from api response
* move type guard check to util
* update color scheme
* remove passing selected namespace to export activity data request
* remove namespace and mount filter toolbar
* update response, sort by client count number
* remove default page size for testing
* implement table and filters in overview tab
* remove old query params
* cleanup unused args
* revert page header changes
* update mirage, remove month from utils
* update client count utils
* one more color!
* reset table to page 1;
* workaround to force Hds::Pagination::Numbered to update when currentPage changes
* add empty state test for no attribution
* delete unused methods
* add test for new utils
* add changelog
* rename changelog
---------
Co-authored-by: claire bontempo <cbontempo@hashicorp.com>
* adding route and replacing old route usage
* adding comments
* updating secrets tests to new route
Co-authored-by: Dan Rivera <dan.rivera@hashicorp.com>
* build filter toolbar component
* delete unused controllers
* rename enum and move to client count utils
* wire up filters to route query params
* update test coverage
* add support for appliedFilters from parent
* update type of ns param
* move lists to client-list page component
* updates api client vars to snake_case for custom messages
* updates api client vars to snake_case for tools
* updates api client vars to snake_case for sync
* updates api client vars to snake_case for secrets engine
* updates api client vars to snake_case for auth
* updates api client vars to snake_case for usage
* updates api client dep to point to gh repo
* fixes custom-messages service unit tests
* fixes configure-ssh test
* fixes configure-ssh test...again
* 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
* 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
* [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>
* namespace link using router.transitionTo and doesn't re-auth to match namespace-picker
* remove namespace link component and use interactive dd item
* update fn name + test
* trigger build
* add test
* update test
* test updates
* remove unneeded var