Commit Graph

17323 Commits

Author SHA1 Message Date
hc-github-team-secure-vault-core
f53fc8f17c backport of commit c2ba113def (#22422)
Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>
2023-08-17 14:40:37 -07:00
hc-github-team-secure-vault-core
59b5901e86 backport of commit d189ebf710 (#19267)
Co-authored-by: Tero Saarni <tero.saarni@est.tech>
Co-authored-by: Tom Proctor <tomhjp@users.noreply.github.com>
2023-08-17 12:00:58 -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
44a2a5b287 backport of commit 6d9a1adc72 (#19761)
Co-authored-by: Raymond Ho <raymonstah@gmail.com>
2023-08-17 00:14:33 +00:00
hc-github-team-secure-vault-core
c48e3c23e8 backport of commit 5d769e8c8e (#22385)
Co-authored-by: Judith Malnick <judith@hashicorp.com>
2023-08-16 16:20:31 -07:00
hc-github-team-secure-vault-core
bcd2db3bc3 backport of commit abaf1d6874 (#22378) 2023-08-16 20:20:48 +00:00
hc-github-team-secure-vault-core
702c80d279 backport of commit 3df12006c0 (#22382)
Co-authored-by: ashishhcpgit <95898616+ashishhcpgit@users.noreply.github.com>
2023-08-16 13:19:20 -07:00
hc-github-team-secure-vault-core
e8a77599a8 Ignore errors from rollback manager invocations (#22235) (#22237)
* Ignore errors from rollback manager invocations

During reload and mount move operations, we want to ensure that errors
created by the final Rollback are not fatal (which risk failing
replication in Enterprise when the core/mounts table gets invalidated).
This mirrors the behavior of the periodic rollback manager, which
only logs the error.

This updates the noop backend to allow failing just rollback operations,
which we can use in tests to verify this behavior and ensure the core
operations (plugin reload, plugin move, and seal/unseal) are not broken
by this. Note that most of these operations were asynchronous from the
client's PoV and thus did not fail anyways prior to this change.



* Add changelog entry



* Update vault/external_tests/router/router_ext_test.go



---------

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
Co-authored-by: Nick Cabatoff <ncabatoff@hashicorp.com>
2023-08-16 17:30:44 +00:00
hc-github-team-secure-vault-core
a5727a5ca2 backport of commit 5a60c98a46 (#22369)
Co-authored-by: Nick Cabatoff <ncabatoff@hashicorp.com>
2023-08-16 10:49:13 -04:00
hc-github-team-secure-vault-core
4664765025 backport of commit 5374b3b046 (#22365)
Co-authored-by: Hamid Ghaf <83242695+hghaf099@users.noreply.github.com>
2023-08-16 07:16:24 -07:00
hc-github-team-secure-vault-core
3888967c75 backport of commit daf174b89d (#22360)
Co-authored-by: sylvia-petsanova <104836103+sylvia-petsanova@users.noreply.github.com>
2023-08-16 13:00:24 +00:00
Ellie
5500161d79 secrets/ldap: upgrade to v0.10.2 for bug fix (#22331)
* secrets/ldap: upgrade to v0.10.2 for bug fix

* add changelog
2023-08-15 08:08:59 -05:00
hc-github-team-secure-vault-core
919f5110cd backport of commit 67a167139b (#22299)
Co-authored-by: Peter Wilson <peter.wilson@hashicorp.com>
2023-08-11 14:05:59 +00:00
hc-github-team-secure-vault-core
f64271918b backport of commit a70aaf24c0 (#22255)
Co-authored-by: Austin Gebauer <34121980+austingebauer@users.noreply.github.com>
2023-08-08 23:45:32 +00:00
hc-github-team-secure-vault-core
2ecd2f43af backport of commit f8dd46acb8 (#22252) 2023-08-08 21:07:10 +00:00
hc-github-team-secure-vault-core
6884e4dcaa backport of commit 6654c425d2 (#22220)
Co-authored-by: Rebecca Willett <47540675+rebwill@users.noreply.github.com>
2023-08-08 11:10:35 -04:00
hc-github-team-secure-vault-core
41a9f67abb Use Hashicorp docker proxy for CI docker images (#22195) (#22197)
* Use library/consul as the mirror path instead of hashicorp/consul

 - Looks like the older 1.4.4 image was not published within the
   hashicorp/consul space, only newer images are.
 - Switch to library/consul which seems to have both versions

Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-08-03 14:18:12 -04:00
hc-github-team-secure-vault-core
0c10be84a7 Fix typo in list-intermediates nav entry (#22109) (#22179)
Co-authored-by: Paul Bowsher <paul.bowsher@gmail.com>
2023-08-02 19:38:20 +00:00
Nick Cabatoff
279668473f Bump go mod versions to match those in ent (#22169) 2023-08-02 15:06:57 -04:00
hc-github-team-secure-vault-core
6c9bbba75d backport of commit 76d8ab6f43 (#22166)
Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
2023-08-02 13:49:22 +00:00
hc-github-team-secure-vault-core
d428a0bffc backport of commit 1d01045e85 (#22154)
Co-authored-by: Kyle Schochenmaier <kschoche@gmail.com>
2023-08-01 12:43:58 -05:00
hc-github-team-secure-vault-core
7063d97ada Remove "expiration manager is nil on tokenstore" error log for dr secondary (#22137) (#22139)
* add check for dr secondary case

* add changelog

Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>
2023-07-31 14:55:12 -07:00
hc-github-team-secure-vault-core
62e2ccd7fd docs/mssql: update schema to be generic (#22101) (#22114)
Co-authored-by: Ellie <ellie.sterner@hashicorp.com>
2023-07-31 12:39:48 -05:00
hc-github-team-secure-vault-core
be97ab8db6 docs/mssql: add admin privileges needed (#22096) (#22103)
* docs/mssql: add admin privileges needed

* remove line

* remove ddl role

* Update website/content/docs/secrets/databases/mssql.mdx



---------

Co-authored-by: Ellie <ellie.sterner@hashicorp.com>
Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>
2023-07-31 10:51:02 -05:00
hc-github-team-secure-vault-core
1fc169f28a backport of commit fdc257d3a0 (#22120)
Co-authored-by: Max Bowsher <maxbowsher@gmail.com>
2023-07-28 17:39:26 +00:00
hc-github-team-secure-vault-core
798d6e877d backport of commit 24a7d966d5 (#22086)
Co-authored-by: Florin Cătălin Țiucra-Popa <106736683+FlorinTP@users.noreply.github.com>
2023-07-27 17:24:14 +02:00
Divya Pola
7f3d3d4374 update version 1.13.6 (#22078) 2023-07-27 10:30:56 -04:00
hc-github-team-secure-vault-core
cd7e72fc9f backport of commit d407078766 (#22059)
Co-authored-by: Josh Black <raskchanky@gmail.com>
2023-07-26 00:28:47 +00:00
Hamid Ghaf
e7ba3be156 use verify changes for docs to skip tests (#21620) (#22016)
* use verify changes for docs to skip tests

* add verify-changes to the needed jobs

* skip go tests for doc/ui only changes

* fix a job ref

* change names, remove script

* remove ui conditions

* separate flags

* feedback
2023-07-21 10:14:56 -07:00
hc-github-team-secure-vault-core
5c6316b35e backport of commit 8615b31598 (#22013)
Co-authored-by: Ryan Cragun <me@ryan.ec>
v1.13.5
2023-07-21 16:45:35 +00:00
hc-github-team-secure-vault-core
d99f9fafa9 backport of commit 437a7ab934 (#22009)
Co-authored-by: Hamid Ghaf <83242695+hghaf099@users.noreply.github.com>
2023-07-21 09:41:53 -07:00
Steven Clark
620dd76564 Address memory consumption from TestCertStorageMetrics (#22004) 2023-07-21 15:14:23 +00:00
hc-github-team-secure-vault-core
46a72c0417 backport of commit 02f43ecbc2 (#21587) (#21997)
* VAULT-17590 Add failure notifications for OSS builds

* VAULT-17590 Incur build failure for testing purposes

* VAULT-17590 head_ref for testing

* VAULT-17590 rework to rely on completed status checks

* VAULT-17590 Use slackapi/slack-github-action

* VAULT-17590 Remember dollar sign

* VAULT-17590 finalize PR

* VAULT-17590 add extra empty line

* Update .github/workflows/build.yml



* Update .github/workflows/ci.yml



* VAULT-17590 fix typo

* VAULT-17590 ent workflow

* VAULT-17590 typo

---------

Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
2023-07-21 12:56:45 +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
29cc2b2586 [QT-590] Optimize the CI testing workflow (#21959) (#21984)
We further optimize the CI workflow for better costs and speed.
We tested the Go CI workflows across several instance classes
and update our compute choices. We achieve an average execution
speed improvement of 2-2.5 minutes per test workflow while
reducing the infrastructure cost by about 20%. We also also save
another ~2 minutes by installing `gotestsum` from the Github release
instead of downloading the Go modules and compiling it every time.

In addition to the speed improvements, we also further reduced our cache
usage by updating the `security-scan` workflow to not cache Go modules.
We also use the `cache/save` and `cache/restore` actions for timing
caches. This results is saving half as many cache results for timing
data.

*UI test results*
results for 2x runs:
* c6a.2xlarge (12m54s, 11m55s)
* c6a.4xlarge (10m47s, 11m6s)
* c6a.8xlarge (11m32s, 10m51s)
* m5.2xlarge (15m23s, 14m16s)
* m5.4xlarge (14m48s, 12m54s)
* m5.8xlarge (12m27s, 12m24s)
* m6a.2xlarge (11m55s, 12m20s)
* m6a.4xlarge (10m54s, 10m43s)
* m6a.8xlarge (10m33s, 10m51s)

Current runner:
m5.2xlarge (15m23s, 14m16s, avg 14m50s) @ 0.448/hr = $0.11

Faster candidates
* c6a.2xlarge (12m54s, 11m55s, avg 12m24s) @ 0.3816/hr = $0.078
* m6a.2xlarge (11m55s, 12m20s, avg 12m8s) @ 0.4032/hr = $0.081
* c6a.4xlarge (10m47s, 11m6s, avg 10m56s) @ 0.7632/hr = $0.139
* m6a.4xlarge (10m54s, 10m43s, avg 10m48s) @ 0.8064/hr = $0.140

Best bang for the buck for test-ui:
  m6a.2xlarge, > 25% cost savings from current and we save ~2.5 minutes.

*Go test results*
During testing the external replication tests, when not broken up, will
always take the longest. Our original analysis focuses on this job.
Most other tests groups will finish ~3m faster so we'll use subtract
that time when estimating the cost for the whole job.

external replication job results:
* c6a.2xlarge (20m49s, 19m20s, avg 20m5s)
* c6a.4xlarge (19m1s, 19m38s, avg 19m20s)
* c6a.8xlarge (19m51s, 18m54s, avg 19m23s)
* m5.2xlarge (22m12s, 20m29s, avg 21m20s)
* m5.4xlarge (20m7s, 19m3s, avg 20m35s)
* m5.8xlarge (20m24s, 19m42s, avg 20m3s)
* m6a.2xlarge (21m10s, 19m37s, avg 20m23s)
* m6a.4xlarge (18m58s, 19m51s, avg 19m24s)
* m6a.8xlarge (19m27s, 18m47s, avg 19m7s)

There is little separation in time when we increase class size. In the
best case a class size increase yields about a ~5% performance increase
and doubles the cost. For test-go our best bang for the buck is
certainly going to be in the 2xlarge class.

Current runner:
m5.2xlarge (22m12s, 20m29s, avg 21m20s) @ 0.448/hr (16@avg-3m + 1@avg) = $2.35

Candidates in the same class
* c6a.2xlarge (20m49s, 19m20s, avg 20m5s) @ 0.3816/hr (16@avg-3m + 1@avg) = $1.86
* m6a.2xlarge (21m10s, 19m37s, avg 20m23s) @ 0.4032/hr (16@avg-3m + 1@avg) = $2.00

Best bang for the buck for test-go:
  c6a.2xlarge: 20% cost savings and save about ~2.25 minutes.

We ran the tests with similar instances and saw similar execution times as
with test-go. Therefore we can use the same recommended instance sizes.

After breaking up test-go's external replication tests, the longest group
was shorter on average. I choose to look at group 3 as it was usually the
longest grouping:

* c6a.2xlarge: (14m51s, 14m48s)
* c6a.4xlarge: (14m14s, 14m15)
* c6a.8xlarge: (14m0s, 13m54s)
* m5.2xlarge: (15m36s, 15m35s)
* m5.4xlarge: (14m46s, 14m49s)
* m5.8xlarge: (14m25s, 14m25s)
* m6a.2xlarge: 14m51s, 14m53s)
* m6a.4xlarge: 14m16s, 14m16s)
* m6a.8xlarge: (14m2s, 13m57s)

Again, we see ~5% performance gains between the 2x and 8x instance classes
at quadruple the cost. The c6a and m6a families are almost identical, with
the c6a class being cheaper.

*Notes*
* UI and Go Test timing results: https://github.com/hashicorp/vault-enterprise/actions/runs/5556957460/jobs/10150759959
* Go Test with data race detection timing results: https://github.com/hashicorp/vault-enterprise/actions/runs/5558013192
* Go Test with replication broken up: https://github.com/hashicorp/vault-enterprise/actions/runs/5558490899

Signed-off-by: Ryan Cragun <me@ryan.ec>
Co-authored-by: Ryan Cragun <me@ryan.ec>
2023-07-20 16:36:07 -06:00
hc-github-team-secure-vault-core
dba044da75 backport of commit 5ba848dbdd (#21991)
Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>
2023-07-20 21:17:27 +00:00
hc-github-team-secure-vault-core
030b0af136 backport of commit 4ce8e4b00f (#21987)
Co-authored-by: Max Bowsher <maxbowsher@gmail.com>
2023-07-20 21:11:59 +00:00
hc-github-team-secure-vault-core
3ac2cd37b2 [QT-588] test: fix drift between enos directories (#21695) (#21980)
* Sync missing scenarios and modules
* Clean up variables and examples vars
* Add a `lint` make target for enos
* Update enos `fmt` workflow to run the `lint` target.
* Always use ipv4 addresses in target security groups.

Signed-off-by: Ryan Cragun <me@ryan.ec>
Co-authored-by: Ryan Cragun <me@ryan.ec>
2023-07-20 14:36:28 -06:00
hc-github-team-secure-vault-core
3b48c4727f cherry-picking changes (#21919)
Co-authored-by: akshya96 <araghavan@hashicorp.com>
2023-07-20 20:25:26 +00:00
hc-github-team-secure-vault-core
a420deb5e4 Backport of Limit number of tests in CI comment into release/1.13.x (#21970)
* backport of commit dc104898f7 (#21853)

* fix multiline

* shellcheck, and success message for builds

* add full path

* cat the summary

* fix and faster

* fix if condition

* base64 in a separate step

* echo

* check against empty string

* add echo

* only use matrix ids

* only id

* echo matrix

* remove wrapping array

* tojson

* try echo again

* use jq to get packages

* don't quote

* only run binary tests once

* only run binary tests once

* test what's wrong with the binary

* separate file

* use matrix file

* failed test

* update comment on success

* correct variable name

* bae64 fix

* output to file

* use multiline

* fix

* fix formatting

* fix newline

* fix whitespace

* correct body, remove comma

* small fixes

* shellcheck

* another shellcheck fix

* fix deprecation checker

* only run comments for prs

* Update .github/workflows/test-go.yml

Co-authored-by: Mike Palmiotto <mike.palmiotto@hashicorp.com>

* Update .github/workflows/test-go.yml

Co-authored-by: Mike Palmiotto <mike.palmiotto@hashicorp.com>

* fixes

---------

Co-authored-by: Mike Palmiotto <mike.palmiotto@hashicorp.com>

* backport of commit 3b00dde1ba (#21936)

* limit test comments

* remove unecessary tee

* fix go test condition

* fix

* fail test

* remove ailways entirely

* fix columns

* make a bunch of tests fail

* separate line

* include Failures:

* remove test fails

* fix whitespace

* backport of commit 245430215c (#21973)

* only add binary tests if they exist

* shellcheck

---------

Co-authored-by: miagilepner <mia.epner@hashicorp.com>
Co-authored-by: Mike Palmiotto <mike.palmiotto@hashicorp.com>
2023-07-20 15:07:01 +02:00
hc-github-team-secure-vault-core
f5f8c861a5 backport of commit 215687795d (#21953)
Co-authored-by: Hamid Ghaf <83242695+hghaf099@users.noreply.github.com>
2023-07-19 18:33:35 +00:00
hc-github-team-secure-vault-core
f4f0b71e42 backport of commit def7c1b0a7 (#21944)
Co-authored-by: Paul Banks <pbanks@hashicorp.com>
2023-07-19 15:33:52 +00:00
Anton Averchenkov
46863a79a3 Backport #21426 (#21922) 2023-07-18 17:08:30 -04:00
hc-github-team-secure-vault-core
afcade6040 backport of commit a9977fab80 (#21909)
Co-authored-by: Tom Proctor <tomhjp@users.noreply.github.com>
2023-07-18 13:03:40 +00:00
hc-github-team-secure-vault-core
5418ef3f7e backport of commit e1a9d85a18 (#21878)
Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>
2023-07-17 09:46:21 -07:00
hc-github-team-secure-vault-core
a687b6a6ad Go test failure summaries fixes and improvements (#21888) (#21894)
Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
2023-07-17 16:16:13 +00:00
hc-github-team-secure-vault-core
463e09f89b backport of commit f3e9d159d3 (#21890)
Co-authored-by: Hamid Ghaf <83242695+hghaf099@users.noreply.github.com>
2023-07-17 08:08:04 -07:00
hc-github-team-secure-vault-core
0c731bede0 backport of commit 5d97159f05 (#21885)
Co-authored-by: Tom Proctor <tomhjp@users.noreply.github.com>
2023-07-17 13:03:29 +00:00
Kuba Wieczorek
d1e54e6c7e Fix UI tests on 1.13.x in CI workflow (#21860)
* Back out an accidental backport of a node version change to UI tests in CI

* Specify the Node version directly in the workflow
2023-07-14 15:38:08 +00:00