Commit Graph

718 Commits

Author SHA1 Message Date
modrake
eca4b4d801 Relplat 897 copywrite fixes for mutliple licenses (#23722) 2023-10-20 08:40:43 -07:00
Jordan Reimer
01d5d1dc3a KV Download Value Stringify Toggle (#23747)
* adds stringify toggle to masked-input download modal

* updates stringify toggle copy and adds a test

* adds changelog entry
2023-10-20 08:56:14 -06:00
Chelsea Shaw
13523b5a69 UI: Show token expiring warning (#23143) 2023-10-20 14:28:02 +00:00
Chelsea Shaw
0c59d51e3a UI: Replace buttons for HDS in component templates (#23698) 2023-10-20 14:23:55 +00:00
Chelsea Shaw
07d72c842e UI: OpenAPI test coverage (#23583) 2023-10-19 09:59:12 -05:00
Chelsea Shaw
199c04f612 Add banner for when resultant-acl check fails (#23503) 2023-10-18 21:51:36 +00:00
Jordan Reimer
a31b029cf5 Dashboard TLS Configuration Details Bug (#23726)
* fixes issues displaying accurate tls state in dashboard configuration details

* adds changelog entry

* updates tls getter to look for falsy in configuration details card
2023-10-18 15:47:54 -06:00
Jordan Reimer
43afcd7529 KV Key Whitespace Warning (#23702)
* adds warning for kv key that contains whitespace

* adds changelog entry
2023-10-17 15:36:35 -06:00
Kianna
7a93c8fd66 UI: [VAULT-20186] decode uri for all attributes in the table (#23695) 2023-10-17 10:38:00 -07:00
Angel Garbarino
27170b662d Replace KV v2 List route with wildcard instead of dynamic segment (#23620)
* initial work on the LIST route.

* fix

* changelog

* add s

* add in prepending forward slash
2023-10-13 11:01:23 -06:00
claire bontempo
9c1898578f UI: prep for running button codemod (#23628)
* replace buttons with tabs

* update console buttons

* update ssh role item buttons

* remove tracked variable

* more tab cleanup

* remove unwrapActiveTab variable

* fix button control

* fix search select with modal test
2023-10-12 05:44:28 +00:00
claire bontempo
feeda224c8 UI: Add version 1 if KV engine has no version data (#23585)
* add logic to add version 1

* add comments

* add changelog

* add test

* remove redundant backend check
2023-10-11 18:04:31 +00:00
Angel Garbarino
9d52e08e72 Fix failing transform modal test (#23589)
* fix

* remove all other hds-modal class in tests
2023-10-10 18:34:24 +00:00
Kianna
61f8aff24b UI: Fix failing dashboard tests (#23562) 2023-10-06 23:10:10 +00:00
claire bontempo
43258c28fa UI: HDS adoption replace <Modal> (#23382)
* UI: Part 1 - hds adoption replace <Modal> (#23363)

* replace policy-form modal

* replace clients/attribution modal

* clients/config modal

* scope form odal

* remove button type

* include toolbar to match other example templates

* rotate credentials modal

* add toolbar button class for hds buttons

* transformation-edit modal

* add back test selector

* add route arg to button!

* update link status

* fix link-status tests

* remove prevent default

* update db tests

* update tests

* use page alert for hcp link status banner

* fix scopy button selector

* fix sidebar test

* change to neutral banner

* UI: Part 2 - hds adoption replace <Modal>  (#23398)

* upgrade HDS library (adds support for snippet containers

* cleanup flight icons

* replace transit key action modals

* re-add deps as devDeps

* remove line

* address transit tests

* UI: Part 3 - hds adoption replace <Modal> (#23415)

* cleanup css

* cleanup extra type attr

* masked input download modal

* use Hds::Button in  download button"

* fix size of modal

* tiny icon fix

* refactor download button to always render download icon

* update tests

* UI: Part 3.5 - hds adoption replace <Modal> (#23448)

* replication-promote modal

* replication component modals

* replication add secondary modal

* move update text for diff

* UI: Part 4 - hds adoption replace <Modal>  (#23451)

* k8 configure modal

* kv delete modal

* ldap modals

* pki modals

* add trash icon

* move deps

* UI: Part 5 - hds adoption replace <Modal> (#23471)

* replace confirmation modals
---------

* UI: Part 6 - hds adoption replace <Modal>  (#23484)

* search select with modal

* policy search select modal

* replace date dropdown for client dashboard

* change padding to top

* update policy example args

* lolllll test typo wow

* update dropdown tests

* shamir flow modals!

* add one more container

* update test selectors

* UI: Final hds adoption replace <Modal> cleanup PR (#23522)

* search select with modal

* policy search select modal

* replace date dropdown for client dashboard

* change padding to top

* update policy example args

* lolllll test typo wow

* update dropdown tests

* shamir flow modals!

* add one more container

* update test selectors

* remove wormhole and modal component

* fix selectors

* uninstall wormhole

* remove shamir-modal-flow class

* fix confirm modal test

* fix pki and kv test

* fix toolbar selector kv

* client and download button test

* fix-confirmation-modal-padding

* fix replication modal tests so relevant modal opens (#23540)

* more confirmation modal tests

* adds changelog
2023-10-06 22:06:36 +00:00
Chelsea Shaw
be05b3b961 UI: sanitize managed namespace input (#23449) 2023-10-04 13:42:04 -05:00
Kianna
c2952e3f44 UI: [VAULT-20626] Hide replication if user doesnt have permissions (#23452) 2023-10-03 08:54:21 -07:00
Angel Garbarino
25d32cbac5 UI: HDS adoption replace <PaginationControls> component (#23317)
* use on change method to change out pagination controls

* remove old paginationControls
2023-09-28 12:49:11 -06:00
Angel Garbarino
6db476da41 UI: HDS adoption replace <ListPagination> component (#23169)
* change currentPage to page to be consistent

* replace pagination in listview and always show pagination

* wip

* fix query param issue

* access identity aliases index

* leases done and dusted

* policies and secrets backend

* remove list Pagination

* changelog
2023-09-26 16:27:14 +00:00
claire bontempo
88ed074287 UI: add warning before downloading secret data (#23260)
* add confirm modal for downloading masked data

* close modal if user clicks download

* add changelog;

* pass onSuccess function instead

* only render modal on DOM if download is allowed
2023-09-22 20:19:38 +00:00
Chelsea Shaw
82378ae232 UI: add pagination to new PKI (#23193) 2023-09-21 23:32:01 +00:00
claire bontempo
8375149004 ui: Add version diff comparison to KV v2 (#23200)
* add diff route

* add version diff toolbar link

* finish functionality of version diff comparison

* add tests

* update empty state message

* update selectors

* wip tests

* finish test

* add empty state test

* switch dropdowns

* add changelog

* add comment
2023-09-21 16:50:08 +00:00
Chelsea Shaw
f2be122957 UI: Show unsupported screen if replication unsupported (#23178) 2023-09-20 09:05:08 -05:00
Kianna
6915edf06d UI: [VAULT-17461] add mount configuration as toggle for pki (#23166) 2023-09-19 22:58:08 +00:00
Jordan Reimer
a447f3682b Missing Auth Methods (#23165)
* fixes issue with auth methods disappearing from list view

* fixes issue with Authentication Methods sidebar nav link not staying active when mounting auth method

* fixes tests and adds coverage for missing auth methods
2023-09-19 11:35:24 -06:00
Chelsea Shaw
392b907989 KV V2 remove old kv v2 (#22691)
* Remove component: diff version selector

* delete SecretVersionMenu

* remove secret logic from GetCredentialsCard

* remove DiffVersionSelector hbs file and references

* delete more css for diff version view

* remove diff route

* fix credential card selector

* ui: refactor SecretFormShow (#22723)

* refactor secret form show

* fix selector typo

* remove version route (#22738)

* Remove old KV2 delete things (#23015)

* remove kv2 old delete things

* comment

* Remove old metadata (#22747)

* wip to remove metadata

* review comments

* UI/remove kv2 secret create or update (#23039)

* remove is v2 param

* permissions clean up

* remove version things

* remove excess from form show

* clean up

* created time was never a thing for cubbyhole, confirmed on api

* update tune test

* fix control group tests:

* Remove kv v2 models (#23087)

* remove is v2 param

* permissions clean up

* remove version things

* remove excess from form show

* clean up

* created time was never a thing for cubbyhole, confirmed on api

* update tune test

* fix control group tests:

* remove models

* Update ui/app/models/secret-engine.js

Co-authored-by: Chelsea Shaw <82459713+hashishaw@users.noreply.github.com>

* blah prettier

---------

Co-authored-by: Chelsea Shaw <82459713+hashishaw@users.noreply.github.com>

* UI/config update (#23111)

* sweep through clean up

* remove component

* remove unused selectors

* remove unncessary

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
Co-authored-by: clairebontempo@gmail.com <clairebontempo@gmail.com>
Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
Co-authored-by: Angel Garbarino <angel@hashicorp.com>
2023-09-19 09:49:04 -06:00
malinac02
79b2f09715 UI: HDS adoption replace <CopyButton> component (#22333)
* Part 1: Upgrade HDS to 2.9.0 (#22311)

* UI: HDS adoption replace <CopyButton> part 2 (#22356)

* certificate-card.hbs: replace 1 <CopyButton> with <Hds::Copy::Button>

* scope-form.hbs: replace 1 <CopyButton> with <Hds::Copy::Button>

* fix tests caused by changing certificate-card. change hds copy button in certificate-card.hbs

* json-editor.hbs: replace 1 <CopyButton> with <Hds::Copy::Button>

* masked-input.hbs: replace 1 <CopyButton> with <Hds::Copy::Button>

* fix error with certificate-card.hbs copy button

* fix tests that deal with certificate-card.hbs

* add class to hds copy buttons to maintain similar styling to curent UI

* info-table-row.hbs: replace 2 <CopyButton> with <Hds::Copy::Button>

* undo change that should instead by merged in from main

* change tooltip copy button to white. cleanup

* add extra tet for oidc scope form. edit css class for the white icon copy button

* fix tests

* UI: HDS adoption replace <CopyButton> part 3 (#22614)

* encrypt.hbs: replace 2 <CopyButton> with <Hds::Copy::Button>

* decrypt.hbs: replace 2 <CopyButton> with <Hds::Copy::Button>

* datakey.hbs. replace 6 <CopyButton> with <Hds::Copy::Button>

* rewrap.hbs: replace 2 <CopyButton> with <Hds::Copy::Button>

* hmac.hbs: replace 2 <CopyButton> with <Hds::Copy::Button>

* fix typo

* add copy-close class to copy & close buttons

* export.hbs: replace 2 <CopyButton> with <Hds::Copy::Button>. fix styling

* sign.hbs: replace 2 <CopyButton> with <Hds::Copy::Button>

* fix test caused by changing <pre> tag to <code> in export.hbs

* rename class

* add extra style to class needed for part 4 of copy button replacement

* UI: HDS adoption replace <CopyButton> part 4 (#22749)

* user-menu.hbs: replace 1 <CopyButton> with <Hds::Copy::Button>

* transit-form-show.hbs: replace 1 <CopyButton> with <Hds::Copy::Button>

* configure-ssh-secret.hbs: replace 1 <CopyButton> with <Hds::Copy::Button>

* tool-hash.hbs: replace 1 <CopyButton> with <Hds::Copy::Button>

* tool-random.hbs: replace 1 <CopyButton> with <Hds::Copy::Button>

* tool-rewrap.hbs: replace 1 <CopyButton> with <Hds::Copy::Button>

* tool-unwrap.hbs: replace 1 <CopyButton> with <Hds::Copy::Button>

* tool-wrap.hbs: replace 1 <CopyButton> with <Hds::Copy::Button>

* paths.hbs: replace 1 <CopyButton> with <Hds::Copy::Button>

* code-snippet.hbs: replace 1 <CopyButton> with <Hds::Copy::Button>

* cleanup css for code-snippet. add comments for getting rid of code-snippet and replacing with <Hds::Copy::Snippet

* change code-snippet copy icon to gray to match original design

* change code-snippet class

* accounts.hbs: replace 1 <CopyButton> with <Hds::Copy::Button>

* hover-copy-button.hbs: replace 1 <CopyButton> with <Hds::Copy::Button>

* add.hbs: replace 1 <CopyButton> with <Hds::Copy::Button>

* show.hbs: replace 1 <CopyButton> with <Hds::Copy::Button>

* copy-secret-dropdown.hbs: replace 1 <CopyButton> with <Hds::Copy::Button>

* change styling of 'link' copy buttons

* generate-credentials.hbs: replace 2 <CopyButton> with <Hds::Copy::Button>

* transform-show-transformation.hbs: replace 2 <CopyButton> with <Hds::Copy::Button>

* sign.hbs: replace 2 <CopyButton> with <Hds::Copy::Button>

* hide some copy buttons' icons and use original flash message

* undo cleanup of scss file so that I can put cleanup all into one PR to be more organized

* update code snippet copy button

* UI: HDS adoption replace <CopyButton> part 5: Cleanup (#22884)

* remove unecessary code-snippet.scssn class

* remove copy classes from masked-input.scss

* remove copy button class from text-file.scss

* uninstall ember-cli-clipboard 0.16.0 since there is no longer structure <CopyButton>

* remove copyright message from code-snippet.scss to avoid merge conflicts with main, where the file is deleted

* replace 2 classes with one

* remove unecessary class from copy button

* cleanup classes

* revert changes to avoid merge conflicts

* remove is-block class

* conditionally render private key

* add more info to comment

* remove HoverCopyButton

* add missing selector

* fix control group padding

---------

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

* rename class to transparent background

* remove unused test selectors

* replace transit actions with Copy::Snippet

* replace transfrom code blocks with code snippet component

* revert extra css fiddling

* misc cleanup, unused action

* remove copy & close buttons from transit modals

* remove is- from class naming

* remove hds-copy-button class

* add other grey class

* more small cleanup

* add -top to margin

* add changelog

---------

Co-authored-by: clairebontempo@gmail.com <clairebontempo@gmail.com>
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2023-09-15 23:46:10 +00:00
Kianna
e5d2b2b842 UI: [VAULT-19340] update test selectors for dashboard (#23053) 2023-09-14 11:29:25 -07:00
Chelsea Shaw
de1382e99b UI: Fix empty item on kv list (#22838) 2023-09-12 17:01:57 +00:00
claire bontempo
112501a3f6 ui: More transit flakiness (#22969)
* fix group name typos

* add flaky note and cleanup generate function

* rename variable

* remove other test for other key types

* move key types to relevant test
2023-09-12 09:03:31 -07:00
Jordan Reimer
8f6535cfaf LDAP Roles Pagination (#22985)
* adds pagination to ldap roles list view

* fixes issue with list not refreshing on ldap roles delete
2023-09-12 09:38:26 -06:00
Angel Garbarino
adaef9deb8 remove test failure which cannot be checked anymore consistently due to removal of logout login. (#22978) 2023-09-11 16:02:56 -06:00
Angel Garbarino
6a7345a100 small fix: (#22976) 2023-09-11 15:43:02 -06:00
Jordan Reimer
4bcd4db765 adds mount config details to kubernetes configuration view (#22926)
* adds mount config details to kubernetes configuration view

* adds changelog entry
2023-09-08 15:18:54 -06:00
Jordan Reimer
b6cce58e57 Code Snippet Updates (#22917)
* updates code-snippet component styling and adds it to ldap library accounts view

* adds comment back in to code-snippet template
2023-09-08 11:46:31 -06:00
Austin Gebauer
21bd134ad2 ui: adds a new auth form option (#22640)
* ui: adds a new auth form option

* add warning if nonsecure context, cleanup

* more ember-y

* Only show saml auth method for enterprise, plus tests

* Use error message helper

* Dont include saml on community auth list

* Add allSupportedAuthBackends method

* change token request from GET to PUT to match backend change

* Fetch role on sign in, cancel login after timeout

* saml acceptance test

* Add changelog

* saml test only on enterprise

* set the acs_url according to which cluster the UI is served from

* prepare namespace in addition to path with a helper func

---------

Co-authored-by: Chelsea Shaw <cshaw@hashicorp.com>
2023-09-08 08:53:26 -07:00
Angel Garbarino
7556dfd158 Fix KV bug on deletion_time (#22842)
* the fix

* working, but work in progress maybe change to another helper, put draft up?

* some fixes and restructing

* change names

* test assert wrong locally, lets see about gh
2023-09-07 15:09:33 -06:00
Jordan Reimer
cbc567895c moves ldap role credentials error handling within credentials route (#22870) 2023-09-07 20:28:27 +00:00
Jordan Reimer
62b1e39acc fixes issue checking in ldap library account from overview (#22853) 2023-09-07 11:57:37 -06:00
Jordan Reimer
17f5aeb0a1 disables ldap library and role name fields when editing (#22849) 2023-09-07 09:51:17 -06:00
Angel Garbarino
83216b54c0 make change and change test (#22773) 2023-09-05 14:06:24 -06:00
Angel Garbarino
18d694fd06 KV - no list permissions error catch (#22670)
* initial fix. need to clear out local storage to see it work.

* first draft

* clean up

* test fix

* add test coverage

* pairing to do clean up

* update tests
2023-09-01 09:27:36 -06:00
Chelsea Shaw
8da06f9b54 UI: Update kv list filter to not search on type (#22648) 2023-08-31 21:30:00 +00:00
Angel Garbarino
50bad8c035 add missing adapter test and handle the kv/metadata currentSecret getter (#22700) 2023-08-31 13:57:23 -06:00
Kianna
1dfd57e26d UI: [VAULT-19560] Add empty states and tests (#22690) 2023-08-31 12:12:20 -07:00
claire bontempo
173b007b02 ui: Refreshes parent route to fix secret state discrepancies within a namespace for kv v2 (#22681)
* move json toggle action to template

* add test for version dropdown problem

* refactor write secret to allow for namespaces

* consolidate transition functions

* refresh model for certain routes

* add destroy assertion

* rename variables

* remove dataset clearing from details component
2023-08-31 18:05:52 +00:00
claire bontempo
1d273d6b3e ui: unskip mount engine transition tests (#22693)
* unskip mount backend transition tests

* address comment

* add enterprise tests
2023-08-31 11:01:17 -07:00
Kianna
fc9e308f02 UI: Cleanup dashboard (#22574) 2023-08-30 14:17:06 -07:00
claire bontempo
efca08d295 UI: fix redirect after creating new version of a KV v2 secret in a namespace (#22630)
* add version to query params when transitioning after creating a new version

* add test coverage

* update urls in tests

* add logout method

* use desctructured secret

* remove path

* add clearRecords

* fix assertion

* clear ns just in case

* clear ns just in case
2023-08-30 14:11:19 -07:00
Chelsea Shaw
b18313b4eb UI: kv-v2 version history & path tests (#22593) 2023-08-30 15:23:15 +00:00