Commit Graph

1791 Commits

Author SHA1 Message Date
Angel Garbarino
496bc67d31 update attrs (#29722) 2025-02-26 16:04:52 -06:00
Jordan Reimer
c1754f5f97 [UI] Types Linting (#29702)
* adds linting for types to scripts and lint staged

* fixes issue with AdapterError type

* moves lint-staged setup out of package.json and into config file

* fixes ember data store service type

* fixes route params types

* fixes model types

* fixes general type errors

* fixes ts declaration errors in js files

* adds missing copyright headers

* fixes issue accessing capabilities model properties

* ignores AdapterError import type error

* more updates to AdapterError type

* adds comment to lint-staged config

* moves ember data store type to @ember-data namespace

* updates store import

* moves AdapterError type to @ember-data namespace

* turns ember-data import eslint rule back on
2025-02-25 16:08:51 -07:00
lane-wetmore
13d302d509 UI: Add KV view for wrap tool (#29677)
* add kv view for wrap tool

* add changelog entry

* update toggle  and tests

* update changelog, style updates, fix linting error bug

* update tests

* update test to include multiline input

* clean up

* test improvements and clean up

* shift away from disabling button on error

* update test for json lint warning

* add check after back

* move assertions to a better test for them
2025-02-24 20:21:21 -06:00
Dan Rivera
dd8a0d57a8 UI: adding skip import rotation field when creating static roles (#29633)
* adding skip import rotation field to ui

* changing labels and subtext

* removing readonly, user input on edit would not affect value

* changelog

* fix test

* fix test2
2025-02-19 18:49:46 -05:00
Angel Garbarino
09e7c2e8fa 🧹 on policy upload file view (#29669)
* add margin and conditional

* add test coverage
2025-02-18 16:35:55 -07:00
Angel Garbarino
f73c3feeac remove dashboard survey link: (#29667) 2025-02-18 14:45:19 -07:00
claire bontempo
e3b41da05b update openapi for auth-config/ldap (#29642) 2025-02-14 00:29:42 +00:00
Angel Garbarino
0c791dbe90 fix test (#29623) 2025-02-13 14:11:28 -08:00
lane-wetmore
4b05b590f5 UI: MFA methods now display namespace_path instead of namespace_id (#29588)
* update mfa methods to use namespace_path instead of namespace_id

* add test for empty namespace path and add namespace path to factories

* add changelog entry

* fix name

* hide namespace label when path is empty and test updates
2025-02-13 21:16:34 +00:00
Angel Garbarino
c75d8e39c3 fix test (#29610) 2025-02-13 14:54:49 -05:00
Angel Garbarino
4b695c7e24 Fix failing AWS configuration test (#29560)
* fix failing test and remove scrub from adapter

* clean up comment in the test
2025-02-12 10:31:27 -07:00
Dan Rivera
7fb0db7452 UI: Fix updating static roles via role edit page on UI (#29498)
* added check for updating static roles, appending full payload data

* pulling specific properties into payload obj to fix popups

* adding changelog

* add else to keep previous imp for dynamic roles

* removing separate request, utilizing snapshot

* renamed serialized data var, added comment for required username line

* adding test for editing static role

* updated test for edit payload

* Update changelog/29498.txt

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

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2025-02-10 14:15:50 -05:00
claire bontempo
9e6b5cebd1 UI: Use timestamp.now() in custom messages (#29525)
* use timestamp.now() in custom messages

* dynamically assert timezone

* dynamically assert timezone

* final cleanup, add comments

* remove assertion count
2025-02-07 15:47:24 -08:00
lane-wetmore
4051cb4d4c UI: Remove custom tag class and replace with Hds::Badge (#29475)
* replace custom tag class with Hds::Badge

* another wave of custom class replacements

* remove tag class styles and cleanup

* add changelog entry

* fix changelog name

* remove changelog entry and old styles and clean up

* remove extra classes and clean up

* one more clean up section

* update tests

* fix value check

* updated test

* update tests

* switch to code elements with specific styling and cleanup
2025-02-07 15:29:12 -06:00
claire bontempo
e7d3b60a73 fix jsdoc typo (#29513) 2025-02-06 01:04:55 +00:00
Angel Garbarino
c0ece88d1b Clean up on Azure configuration (#29482)
* put in more options and make generic root password ttl

* small changes
2025-02-04 09:16:46 -07:00
claire bontempo
5d91f7d9bc UI: Fix token renewal breaking policy checks (#29416)
* set namespace_path in renewal method

* add tests

* add changelog
2025-02-03 10:56:39 -08:00
claire bontempo
9d0a01036e UI: Adds serial_number_source to pki role form (#29469)
* add serial_number_source to pki role form

* update test
2025-01-31 09:16:54 -08:00
Angel Garbarino
14082d08f1 Add GCP secret engine configuration Create/Edit views (#29423)
* gcp initial changes

* acceptance test coverage for gcp

* update config-wif component test so tests are passing

* specific gcp test coverage

* changelog

* comment clean up

* one more test

* comment things

* address pr comments
2025-01-30 13:37:20 -07:00
Dan Rivera
3c5ec5d3b4 UI: Fix text overflow for long Secret and Auth names (#29430)
* adding overflow class to link text

* adding separate class to fix overflow text on list & card views

* adding class to search list items to handle overflow

* adding ellipsis instead of just hidden for visual indicator

* added changelog

* updating styling to use helper classes, added child class to global style, updated changelog

* added test checks for oveflow classes
2025-01-30 11:21:49 -05:00
Angel Garbarino
53d2ae2a4d add serialNumberSource to get backend test change but not show visually until design input (#29424) 2025-01-27 10:48:43 -07:00
claire bontempo
9d31bb8586 add enableSamaccountnameLogin param (#29410) 2025-01-24 20:09:47 +00:00
Angel Garbarino
088bb4b6b9 One WIF configuration component (#29367)
* make one component and make one test file for that component. remove the two components and associated files the new component replaces

* make access type subtext dynamic based on model type

* clean up

* clean up

* remove model attr for display purposes

* split out lease to another second config model type and make is-wif-engine helper

* welp missed the old controller

* small removal of overkill comment

* pr feedback

* save lease config if only thing changed

* error handling in acceptance test

* test fix

* replace notOk with throw

* move back error message

* clean up focused largely on wif component test

* replace ok with true
2025-01-24 11:05:00 -07:00
Angel Garbarino
a73a6983c4 Prep work for creating one WIF configuration component (#29345)
* initial things without helper changes

* adjust test for clean up of secret-engine-helper

* remove added line thats better in next pr

* remove extra check

* 🧹

* replace return with continue within loops
2025-01-10 14:06:42 -08:00
Angel Garbarino
8404d07264 String to camelCase helper (#29338)
* string-to-camel helper

* fix:

* Update string-to-camel-test.js

* update comment

* rename and clarify comment

* welp, forgot to update test
2025-01-10 17:52:03 +00:00
Alexandr Hacicheant
2f95a73d1d Updated description of the field (#29146)
Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>
2025-01-08 20:32:41 +00:00
Evan Moncuso
035b7e6d8e VAULT-32677 - Fix missing client count card in managed clusters (#29241)
* add check for admin namespace on managed clusters

* add tests for client count card in managed clusters

* add changelog
2025-01-07 12:53:06 -08:00
claire bontempo
6e3ae793f5 UI: LDAP Hierarchical Library names (#29293)
* refactor crumbs

* add subdirectory library route and hierarchical nav

* update library breadcrumbs;

* fix role popup menus

* add getter to library model for full path

* cleanup model getters

* add changelog

* add bug fix note

* add transition after deleting

* fix function definition

* update adapter test

* add test coverage

* fix crumb typo
2025-01-07 12:54:36 -06:00
claire bontempo
6d566cb6d0 UI: Remove kv data download button (#29290)
* remove download button

* add changelog
2025-01-06 15:41:08 -06:00
Angel Garbarino
a3e977745f Add GCP configuration details (#29247)
* starting

* add the details functionality

* test coverage

* welp, friday fingers

* small small changes

* Update ui/app/models/gcp/config.js

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

* Update ui/app/helpers/mountable-secret-engines.js

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

* update small changes on model

* reorder loop on configuration details

* Update ui/tests/integration/components/secret-engine/configuration-details-test.js

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

* Update ui/app/models/gcp/config.js

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

* Update ui/app/models/gcp/config.js

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

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

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

* add comment

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2025-01-02 13:33:14 -07:00
claire bontempo
b5f2accc1d fix typo (#29275) 2025-01-02 20:13:05 +00:00
claire bontempo
91d88c3de1 Add UI support name constraints (#29263)
* add open api params

* support pki name constraints

* fix conditional

* revert helptextwsubtext

* fix typo

* add name constraints to sign intermediate form

* add changelog

* update test
2025-01-02 11:50:49 -06:00
Shannon Roberts (Beagin)
66470b3538 [VAULT-33207] Update Policy Modal to add isHrefExternal to External Links (#29264)
* [VAULT-33207] Update Policy Modal to add isHrefExternal to External Links

* add isHrefExternal to doc links as well as github links
2024-12-27 09:30:49 -08:00
Shannon Roberts (Beagin)
28768d5b5b [VAULT-33207] Update Policy Modal links to use HDS, add ACL Policies "get started" link (#29254)
* [VAULT-33207] Update Policy Modal links to use HDS, add ACL Policies "get started" link

* fix failing test
2024-12-26 09:24:24 -08:00
claire bontempo
847597fbae add open api params (#29257) 2024-12-24 00:22:21 +00:00
Shannon Roberts (Beagin)
0d3a82adf4 [VAULT-19467] UI Breadcrumb Title Case (#29206)
* [VAULT-19467] Vault UI Breadcrumb Title Case

* should use Title Case

* update changelog

* rename changelog

* update tests

* more test updates

* update tests

---------

Co-authored-by: Tony Wittinger <anwittin@users.noreply.github.com>
2024-12-20 12:47:34 -06:00
Shannon Roberts (Beagin)
e349c99891 [VAULT-33146] Update tutorial link for creating a policy (#29226)
* [VAULT-33146] Update vault tutorial link

* add changelog

* update changelog

* remove changelog

---------

Co-authored-by: Tony Wittinger <anwittin@users.noreply.github.com>
2024-12-20 12:47:02 -06:00
Angel Garbarino
2631ae67d4 Allow Configuration of Azure Secret Engine, including WIF for enterprise users (#29047)
* transfer over all changes from original pr

* changelog

* add serialize catch for no empty string environment

* move ttl format logic to parent route

* Update 29047.txt

* clean up some comments

* Update changelog/29047.txt

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

* Update changelog/29047.txt

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

* Update ui/app/components/secret-engine/configure-azure.hbs

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

* first round of addressing pr comments, holding off on the issue save flow for error messaging to keep separate

* Update CODEOWNERS

merge issue

* small clean up tasks

* updates

* test coverage

* small cleanup

* small clean up

* clean up

* clean up getters on model

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2024-12-18 16:28:07 -07:00
claire bontempo
13e4d0f230 UI: Update PostgreSQL database params (#29200)
* add testing before model changes

* add enterprise self_managed attr, update tests

* add postgres params

* add changelog

* update test

* cleanup filter function

* fix nits
2024-12-18 12:21:18 -06:00
claire bontempo
741721ad0e UI: Fix MFA + SSO login workflow (#28873)
* =passback mfa_requirement for oidc login methods

* =pass SAML mfa requirement

* add comments

* add acceptance tests

* add helper

* update callback args for auth jwt

* add changelog

* update changelog

* is this line necessary?

* fetch token data for display name, this commit can be undone when BE fixes VAULT-32462

* change error handling, add comments

* update capitalization

* revert capitalization

* reword changelog

* clarify comments

* Update changelog/28873.txt
2024-12-17 11:06:20 -06:00
Angel Garbarino
2b3f517076 Add Azure configuration details view (#29071)
* configuration details only changes

* azure configuration acceptance test

* clean up

* change attrs to display attrs and reuse formFields

* missed some

* clean up

* Update ui/app/helpers/mountable-secret-engines.js

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

* remove extra conditional

* fix test for oss runs

* clean up the logic for checking if the model has been configured

* remove formatTtl

* fix broken conditional

* address pr comments

* clean up clean up everybody lets clean up

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2024-12-10 16:21:55 -07:00
claire bontempo
5ba4fb3df6 UI: Decode Oracle database connection_url (#29114)
* decode url in the serializer for oracle connection_url

* add serializer test

* add test for oracle

* add test back, remove decode-url helper

* update comment and test

* link jiras VAULT-32830 VAULT-29785

* add changelog

* add test
2024-12-10 09:31:09 -08:00
claire bontempo
34dac4edd9 add enableMetadataOnFailures attr (#29068) 2024-12-02 11:28:01 -07:00
Angel Garbarino
442b6f5291 Prep for Azure WIF work (#28994)
* make things more generic

* aws to wif selector change

* secret list header cleanup

* clean up
2024-11-27 09:50:52 -07:00
Alex
42552f6303 Migrate FlightIcon to Hds::Icon (#28979)
* Migrate `FlightIcon` to `Hds::Icon`

* Update getter name for Icon component
2024-11-26 17:52:57 +00:00
Evan Moncuso
4fd5436eb9 UI/vault 32202/ember sec vulnerabilities (#28870)
* bump webpack from 5.89 -> 5.94

* upgrade ember-svg-jar and kick yarn.lock

* resolve micromatch to a patched version
2024-11-20 12:52:33 -08:00
Steven Clark
95a16dbafe PKI: Add a new leaf_not_after_behavior value to force erroring in all circumstances (#28907)
* PKI: Add a new leaf_not_after_behavior value to force erroring in all circumstances

 - We introduce a new value called `always_enforce_err` for the existing
   leaf_not_after_behavior on a PKI issuer. The new value will force we
   error out all requests that have a TTL beyond the issuer's NotAfter value.

 - This will apply to leaf certificates issued through the API as did err,
   but now to CA issuance and ACME requests for which we previously changed
   the err configuration to truncate.

* Add cl

* Update UI test

* Fix changelog type
2024-11-15 11:59:54 -05:00
Angel Garbarino
c7ca295816 Solve cntrl+f issue on KVv2 JSON details and edit views (#28808)
* initial changes need to add test coverage

* change icon

* replace original idea with hds::codeblock on kvv2 details view

* changelog

* fixing edit view by addressing viewportMargin

* fix failing test

* missedone

* Update 28808.txt

* Update json-editor.js

* test coverage

* update codeblock selector

* Update general-selectors.ts

* Update kv-data-fields.js

* Update ui/lib/core/addon/components/json-editor.js

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

* Update ui/lib/kv/addon/components/kv-data-fields.js

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

* update test name

* add default to modifier

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2024-11-08 18:23:01 +00:00
Angel Garbarino
2c3c585d70 Add identity_token_key to Azure and GCP secret engines (#28822)
* changes then onto tests

* fix wif test failures

* changelog

* clean up

* address pr comments

* only test one wif engine for relevant tests

* add back engine loop for tests that depend on type
2024-11-08 16:32:05 +00:00
claire bontempo
30d4e21e88 UI: LDAP Hierarchical roles (#28824)
* remove named path adapter extension, add subdirectory query logic to adapter

* add subdirectory route and logic to page::roles component

* fix overview page search select

* breadcrumbs

* update tests and mirage

* revert ss changes

* oops

* cleanup adapter, add _ for private methods

* add acceptance test

* remove type

* add changelog

* add ldap breadcrumb test

* VAULT-31905 link jira

* update breadcrumbs in Edit route

* rename type interfaces
2024-11-06 00:52:29 +00:00