Commit Graph

1081 Commits

Author SHA1 Message Date
Chelsea Shaw
8d2ae17dae UI: helper sort-objects to alphabetize list items (#24103) (#24146)
* move list to component

* use helper instead

* add changelog

* clarify changelog copy

* delete components now that helper is in use

* move helper to util, remove template helper invokation

* add optional sorting to lazyPaginatedQuery based on sortBy query attribute

* Add serialization to entity-alias and entity so that they can be sorted by name on list view

* Same logic as base normalizeItems for extractLazyPaginatedData so that metadata shows on list

* Add headers

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2023-11-15 20:58:10 +00:00
hc-github-team-secure-vault-core
8f830e558d backport of fix changelog anchor (#23827)
Co-authored-by: Chelsea Shaw <82459713+hashishaw@users.noreply.github.com>
2023-10-25 17:57:26 +00:00
claire bontempo
690d568b3b fix typo (#23328) 2023-09-27 18:54:11 +00:00
Chelsea Shaw
2e7dc430f2 UI: Show unsupported screen if replication unsupported (#23178) (#23214) 2023-09-21 11:35:54 -05:00
hc-github-team-secure-vault-core
7a0f9fe25f backport of UI: handle control group error on SSH (#23033)
Co-authored-by: Chelsea Shaw <82459713+hashishaw@users.noreply.github.com>
2023-09-20 10:49:52 -05:00
hc-github-team-secure-vault-core
a78fe24e77 backport of commit 3f9b6075aa (#23126)
Backport of UI: add SSH role attribute allowed_domains_template
Co-authored-by: Chelsea Shaw <82459713+hashishaw@users.noreply.github.com>
2023-09-18 15:39:51 +00:00
hc-github-team-secure-vault-core
db50803a1f backport of UI: Handle error from ResponseWithCode (#23115)
Co-authored-by: Chelsea Shaw <82459713+hashishaw@users.noreply.github.com>
2023-09-15 15:37:58 -05:00
hc-github-team-secure-vault-core
91c9e1e6f4 Backport of UI: [VAULT-18040] List all features in license info into release/1.13.x (#23004)
Co-authored-by: Kianna <30884335+kiannaquach@users.noreply.github.com>
2023-09-12 10:20:57 -07:00
Kianna
2e332ecf52 UI: [VAULT-18178] Fix filter/search bug for pki role (#22810) 2023-09-12 08:48:38 -07:00
hc-github-team-secure-vault-core
e1dee56fd6 Backport of UI: Show error if tool action is not recognized into release/1.13.x (#22829)
* backport of commit 2ca784ad11

---------

Co-authored-by: Chelsea Shaw <82459713+hashishaw@users.noreply.github.com>
Co-authored-by: Chelsea Shaw <cshaw@hashicorp.com>
2023-09-08 16:28:06 +00:00
hc-github-team-secure-vault-core
d2295e050d Backport of UI: Fix blank secret on KV create > cancel
Co-authored-by: Chelsea Shaw <82459713+hashishaw@users.noreply.github.com>
2023-08-23 23:03:24 +00:00
Chelsea Shaw
5a9b9ac819 Backport UI: Allow navigate to list from View Secret card (#22502) (#22539) 2023-08-23 22:21:29 +00:00
hc-github-team-secure-vault-core
9c9d39a6f8 Backport of UI: Enable KV create secret with control group
Co-authored-by: Chelsea Shaw <82459713+hashishaw@users.noreply.github.com>
2023-08-21 16:58:17 -05:00
hc-github-team-secure-vault-core
13da593157 backport of commit abd6324e50 (#22464)
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2023-08-21 10:09:44 -07:00
hc-github-team-secure-vault-core
77721be0cb backport of commit 2c6a3e72d5 (#22404)
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2023-08-17 17:17:45 +00:00
hc-github-team-secure-vault-core
5f58610d5f backport of commit 6b6b0050fe (#22407)
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2023-08-17 17:14:48 +00:00
hc-github-team-secure-vault-core
6392634939 backport of UI: Remove logic that skips sending object if not changed (#21758)
Co-authored-by: Chelsea Shaw <82459713+hashishaw@users.noreply.github.com>
2023-07-21 00:22:12 +00:00
hc-github-team-secure-vault-core
7709549221 backport of commit 9c8a7422ad (#21664)
Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
2023-07-10 19:16:11 +00:00
hc-github-team-secure-vault-core
d66520d12b backport of commit 4fd4a0693d (#21402)
Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
2023-07-06 20:01:32 +00:00
hc-github-team-secure-vault-core
ac380ce1d3 [QT-576] Optimize build workflow (#21486) (#21594)
Improve our build workflow execution time by using custom runners,
improved caching and conditional Web UI builds.

Runners
-------
We improve our build times[0] by using larger custom runners[1] when
building the UI and Vault.

Caching
-------
We improve Vault caching by keeping a cache for each build job. This
strategy has the following properties which should result in faster
build times when `go.sum` hasn't been changed from prior builds, or
when a pull request is retried or updated after a prior successful
build:

* Builds will restore cached Go modules and Go build cache according to
  the Go version, platform, architecture, go tags, and hash of `go.sum`
  that relates to each individual build workflow. This reduces the
  amount of time it will take to download the cache on hits and upload
  the cache on misses.
* Parallel build workflows won't clobber each others build cache. This
  results in much faster compile times after cache hits because the Go
  compiler can reuse the platform, architecture, and tag specific build
  cache that it created on prior runs.
* Older modules and build cache will not be uploaded when creating a new
  cache. This should result in lean cache sizes on an ongoing basis.
* On cache misses we will have to upload our compressed module and build
  cache. This will slightly extend the build time for pull requests that
  modify `go.sum`.

Web UI
------
We no longer build the web UI in every build workflow. Instead we separate
the UI building into its own workflow and cache the resulting assets.
The same UI assets are restored from cache during build worklows. This
strategy has the following properties:

* If the `ui` directory has not changed from prior builds we'll restore
  `http/web_ui` from cache and skip building the UI for no reason.
* We continue to use the built-in `yarn` caching functionality in
  `action/setup-node`. The default mode saves the `yarn` global cache.
  to improve UI build times if the cache has not been modified.

Changes
-------
* Add per platform/archicture Go module and build caching
* Move UI building into a separate job and cache the result
* Restore UI cache during build
* Pin workflows

Notes
-----
[0] https://hashicorp.atlassian.net/browse/QT-578
[1] https://github.com/hashicorp/vault/actions/runs/5415830307/jobs/9844829929

Signed-off-by: Ryan Cragun <me@ryan.ec>
Co-authored-by: Ryan Cragun <me@ryan.ec>
2023-07-05 14:53:38 -06:00
hc-github-team-secure-vault-core
9f2d073427 backport of commit 9290d5f188 (#21427)
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2023-06-22 22:04:15 +00:00
Jordan Reimer
6000b16689 Clients config updates for census reporting (#20125) (#21201)
* updates clients config view for census reporting

* adds changelog entry

* fixes issue with modal staying open and error not showing on clients config save failure

* adds min retention months to clients config model and form validation
2023-06-13 21:08:02 +00:00
Angel Garbarino
93d22491d4 License banner - check for new license on localStorage. (#20999) (#21080)
* fix things twice

* fix test and a whitespace that showed on my linter

* fix comment

* address pr comments

* change const name
2023-06-09 19:05:51 +00:00
claire bontempo
2881445311 Backport 1.13.x: UI: fixes pki role editing changing to default key parameter values (#20921) 2023-06-01 18:07:34 +00:00
hc-github-team-secure-vault-core
780f4f4826 backport of commit 0defa2a1e7 (#20909)
Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
2023-05-31 14:52:36 -06:00
Chelsea Shaw
33b7c75d65 Backport UI: Fix id fields not allowing update (#19117) (#20794) 2023-05-25 21:56:45 +00:00
hc-github-team-secure-vault-core
5b8d69bc7d backport of commit b78f4bffcc (#20604)
Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
2023-05-16 17:36:00 +00:00
Chelsea Shaw
ca6f644c03 Backport 1.13.3 - UI: Stabilize KV secret tests (#20491) (#20515) 2023-05-04 18:27:49 +00:00
hc-github-team-secure-vault-core
be47e9d3b7 backport of UI: OIDC provider logo fix (#20269)
Co-authored-by: Chelsea Shaw <82459713+hashishaw@users.noreply.github.com>
2023-04-20 09:30:43 -05:00
hc-github-team-secure-vault-core
676f8be392 Backport UI: Remove usage of htmlSafe into release/1.13.x (#20256)
Co-authored-by: Chelsea Shaw <82459713+hashishaw@users.noreply.github.com>
2023-04-19 16:12:13 +00:00
Angel Garbarino
a75b190445 Disabling License Banners (#19116) (#20226)
* work in progress: got the expired banner set with license check

* wip: got the logic for both banners, need to test and write tests

* add notes

* prep for test writing

* test coverage

* add changelog

* clean up

* clarify dismissTypes and conditionals

* updates

* update comment

* update comment

* address pr comments

* update test

* small naming change

* small naming changes

* clean localStorage

* comment clean up

* another comment clean up

* remove meep

* add test coverage for new method in localStorage
2023-04-18 11:09:48 -06:00
hc-github-team-secure-vault-core
ac3b4e42bc Backport of UI: fix browser console formatting into release/1.13.x (#20088)
* backport of commit 7e09f991a8

* UI/add prettier ignore for ui console file (#20094)

* fix template-lintrc file

* add prettier ignore

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2023-04-12 18:08:52 +00:00
hc-github-team-secure-vault-core
9bfc9f3fbc backport of commit 4aca4e88bc (#20071)
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2023-04-10 17:22:44 -07:00
Chelsea Shaw
c626b646bc UI: Namespace area fixes (#19799) (#20024)
* UI: Namespace area fixes (#19799)

* Revert model changes due to unavailable decorator
2023-04-07 17:26:56 +00:00
hc-github-team-secure-vault-core
4472e4a3fb backport of commit 85c3eab989 (#19716)
Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
2023-03-23 12:51:35 -06:00
claire bontempo
36dddc337a Regression bug fix OIDC namespace (#19460) (#19696)
* the fix

* changelog

* claire fix

* add test

* update changelog

* clarify comment

* remove state from paramsFor completely, update tests

* Revert "remove state from paramsFor completely, update tests"

This reverts commit bea042f73d50dd51aa67b30e97c6e6685e808794.

* add tests with skips until not flaky

---------

Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
2023-03-23 14:42:56 +00:00
claire bontempo
996dc56f08 Backport 1.13.x: UI/update auth form to fetchRoles after a namespace is inputted, prior to OIDC auth #19541 (#19661)
* UI/update auth form to fetchRoles after a namespace is inputted, prior to OIDC auth (#19541)

* re-fetch roles if there is a namespace

* remove redundant conditional

* reorder oidc auth operations

* add test

* test cleanup

* add changelog

* UI: fix enterprise test failures (#19671)

* move oidc tests into new file

* remove module from namespace test

* remove entered line

* add logout to afterEach hook

* remove ns test

* move test setup to within test

* use logout.visit() instead

* updates oidc auth namespaces test

* reverts to authPage logout

---------

Co-authored-by: Jordan Reimer <zofskeez@gmail.com>

---------

Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
2023-03-23 07:13:03 +00:00
hc-github-team-secure-vault-core
bfe328ed66 backport of commit 5299707a3e (#19465)
Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
2023-03-13 09:23:42 -06:00
hc-github-team-secure-vault-core
03cf4dc731 backport of commit 75efaf09fb (#19484)
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2023-03-08 18:04:41 +00:00
hc-github-team-secure-vault-core
90d3dc641f backport of commit 16e9c146a6 (#19442)
Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
2023-03-02 16:15:37 -07:00
hc-github-team-secure-vault-core
9f545bdc45 backport of commit 7ef729708b (#19423)
Co-authored-by: Kianna <30884335+kiannaquach@users.noreply.github.com>
2023-03-02 22:46:07 +00:00
hc-github-team-secure-vault-core
75f1ea2985 backport of commit eb70bfdc5b (#19407)
Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
2023-02-28 19:55:09 +00:00
hc-github-team-secure-vault-core
9789259043 backport of commit 72bc8203af (#19322)
Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
2023-02-23 19:26:19 +00:00
claire bontempo
b12fcad4d2 UI: fixes validation bug in sign certificate form (#19280) (#19293)
* move validations to base certificate

* add test
2023-02-22 21:32:59 +00:00
hc-github-team-secure-vault-core
6d1b7baaf7 backport of UI: Remove Wizard (#19239)
Co-authored-by: Chelsea Shaw <82459713+hashishaw@users.noreply.github.com>
2023-02-22 15:49:17 +00:00
hc-github-team-secure-vault-core
eb2d03ee8f backport of commit 8f36d0daa4 (#19222)
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2023-02-16 23:30:16 +00:00
hc-github-team-secure-vault-core
6c84c14e1a backport of commit 6946556e96 (#19225)
Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
2023-02-16 18:40:57 +00:00
hc-github-team-secure-vault-core
105881d5e1 backport of commit 93f7b4f33c (#19189)
Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
2023-02-14 23:16:38 +00:00
Jordan Reimer
d9c8a8f629 updates k8s config validation (#19123) 2023-02-10 09:33:26 -08:00
Jordan Reimer
aa94c09ac3 fixes issue with kubernetes config prompt appearing when it shouldn't (#19115) 2023-02-10 07:59:10 -08:00