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>
* 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>
* 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 automation snippets to policy and convert to page component
* only show for acl types
* remove unnecessary tag
* update test coverage
* last fix, oops!
* wait for dropdown to close
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
* 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>
* 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>
* add support for initializing with capability paths
* only render flyout for enterprise versions
* update PolicyStanza to support object
* add policy generator to kv
* only set preset stanzas if no changes have been made
* add test coverage for kv adding policy generate to page headers
* add community test
* add test coverage to capabilities service
* add changelog
* add close callback
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
* Replace direct use of hds::pageheader with page::header
* Update test selector
* Remove unused selector
Co-authored-by: Kianna <30884335+kiannaquach@users.noreply.github.com>
* 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>
* parse error
* add test coverage
* update test so original code fails the same way
* remove unused vars
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
* VAULT-17006 - Replaced EmptyState component with HDS ApplicationState for "identity" directory
* reverted top margin spacing to use top padding instead
Co-authored-by: mohit-hashicorp <mohit.ojha@hashicorp.com>
Co-authored-by: Dan Rivera <dan.rivera@hashicorp.com>
* VAULT-17006 - Replaced EmptyState component with HDS ApplicationState for "clients" directory
* added missing data-test values to HDS:ApplicationState header and body
* reverted top margin spacing to use top padding instead
* updated class for consistent spacing and added icon & errorCode args
* fixed failing test
* fixed vertical alignment for Hds Application State error
* VAULT-17006 - Replaced EmptyState component with HDS ApplicationState for "clients" directory
* added missing data-test values to HDS:ApplicationState header and body
* reverted top margin spacing to use top padding instead
* updated class for consistent spacing and added icon & errorCode args
* fixed failing test
* fixed vertical alignment for Hds Application State error
* fixed failing test case
Co-authored-by: mohit-hashicorp <mohit.ojha@hashicorp.com>
* [UI] Ember Data Migration: KMIP Config (#11637)
* converts kmip configuration route to ts
* adds ts and template lint deps to kmip engine
* adds api service to kmip engine
* updates kmip configuration route to use api service
* converts kmip configuration template to page component
* converts kmip configure route to ts
* updates kmip configure workflow to use api service and form class
* enables ts transform in kmip engine
* fixes a11y violations on kmip configuration page
* Update ui/app/forms/secrets/kmip/config.ts
Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com>
---------
Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com>
* fixes lint error
---------
Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com>
Co-authored-by: Jordan Reimer <jordan.reimer@hashicorp.com>
* Remove kv header component and add tabs/toolbar component
* Use copyright headers
* Comment out dropdown check
* Add test back
* Remove extra click for now
Co-authored-by: Kianna <30884335+kiannaquach@users.noreply.github.com>
* add <h> tags for form header elements
* make policy snippet args reusable util
* build flyout component
* add test coverage for flyout
* update flash toast tests
* move policy tests to directory
* remove link now that its a default
* abc imports
* add test for default templates
* add comment to example
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
* moving dropdown check in flaky test
* Skip navigation test
Skip the test for empty backend navigation in kv-v2 workflow.
* fix space
Co-authored-by: Dan Rivera <dan.rivera@hashicorp.com>
* 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>
* [VAULT-33083] UI: followup pr to update helper syntax to follow best practices
* fix test failures
Co-authored-by: Shannon Roberts (Beagin) <beagins@users.noreply.github.com>
* 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>
* [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>
* converts quick-actions-card component to ts
* updates dashboard quick-actions-card to use hds super select component
* removes searchField from params search
* fixes kvv2 workflow test
Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
* converts kubernetes overview page component to ts
* converts kubernetes role index controller to ts
* updates kubernetes overview to use api service
* removes store service from kubernetes engine
* removes kubernetes models, adapters and serializers
* removes unused types
* updates removed type references
* removes fetch-secrets-config decorator
Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
* 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>
* 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
* reverts kubernetes mirage handler change
* updates type for inferredState in kubernetes config page component
* removes commented out form field in kubernetes config form
Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
* replace Hds::Reveal with Hds::Accordion
* adjust spacing to render in Hds::Form component
* fix spacing in policy-example
* cleanup form-section class usage
* implement visual builder in create policy form
* hide visual editor in search select modal
* use general selectors, alphabetize form/field selectors
* update test coverage to check for visual policy editor
* reorganzie tests by module
* add saving functionality for visual editor
* refactor event handling methods
* refactor component so parent manages stanzas
* move snippets to automation-snippets tab component
* polish up policy diff modal
* refactor arg to be isCompact
* update test coverage and export new component
* rearrange methods to make diff easier
* small cleanup, abc vars and remove unneeded change
* add lanuage and update test coverage
* update comment
* fix form hierarchy
* fix modal spacing;
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
* 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>
* 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
* updates ldap overview to use api service
* updates ldap overview tests
* removes store and pagination services from ldap engine
* removes ldap related ember data files
* updates path_to_library var casing
Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
* 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>
* 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>