1
0
Commit Graph

2957 Commits

Author SHA1 Message Date
c3f569436c almost completely remove testing code
things gone wild
2024-07-02 12:32:04 +03:00
de439ac574 remove external mfa (pingid, duo, okta) 2024-07-01 20:37:46 +03:00
6afd5d71a4 remove aws/s3/dynamodb 2024-07-01 02:47:12 +03:00
hc-github-team-secure-vault-core
7bdf4935cb
backport of commit 7dc4255a13db355f3157215450b02faffad1ae30 (#27314)
Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>
2024-05-31 15:30:15 -07:00
hc-github-team-secure-vault-core
fc39592ea0
backport of commit ea47d24e59331b04d97e0342fb371a8ddb84cfa7 (#27179)
Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>
2024-05-22 12:11:55 -07:00
hc-github-team-secure-vault-core
185548cdf3
backport of commit 1884267e0f03f5e44c1100d3f5c790050068a9b3 (#27166)
Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>
2024-05-22 11:46:48 -07:00
Violet Hynes
02d392245f
Manual backport of dependency update for 1.14 (#26933) 2024-05-10 12:24:18 -04:00
hc-github-team-secure-vault-core
b3c2fe64e0
add reload census changes (#26456) (#26465)
Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>
2024-04-17 12:08:37 -07:00
Josh Black
63ba1cd645
CE changes for https://github.com/hashicorp/vault-enterprise/pull/5695 (#26449) (#26455) 2024-04-16 14:36:25 -07:00
hc-github-team-secure-vault-core
966e70037b
Backport of adding retention months to census reports CE into release/1.14.x (#26424)
* adding retention months to census reports CE (#26405)

* adding retention months to census reports CE changes

* using stubmaker

* make fmt

* change reload census agent to reload census

* remove stubmaker file

---------

Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>
Co-authored-by: akshya96 <araghavan@hashicorp.com>
2024-04-15 15:30:18 -07:00
hc-github-team-secure-vault-core
c6685a49d0
Change minimum retention window CE changes (#26118) (#26144)
* Retention window oss changes

* latest oss changes

* remove operator_diagnose change

Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>
2024-04-12 09:15:17 -07:00
hc-github-team-secure-vault-core
ce642ba6da
backport of commit da21b851333bcbae657422002414636731a3ebd7 (#25665)
Co-authored-by: Scott Miller <smiller@hashicorp.com>
2024-03-25 18:17:22 -05:00
hc-github-team-secure-vault-core
413abceccb
backport of commit e6e99e6994d67d79937aec3822f410408002ab4e (#25948)
Co-authored-by: Paul Banks <pbanks@hashicorp.com>
2024-03-14 13:44:41 +00:00
hc-github-team-secure-vault-core
ec2e808b2b
remove repetitive words (#25860) (#25930)
Signed-off-by: suchsoon <silverjadebeauty@gmail.com>
Co-authored-by: suchsoon <137266842+suchsoon@users.noreply.github.com>
2024-03-14 09:37:10 +00:00
hc-github-team-secure-vault-core
877265e0fa
backport of commit 7ecaca0bb75bf625220e24cc4862fa496baa1249 (#25566)
Co-authored-by: Anton Averchenkov <84287187+averche@users.noreply.github.com>
2024-03-01 00:50:43 +00:00
hc-github-team-secure-vault-core
3364c58efb
backport of commit fb7f872b762ebc973066fc8e627312f09620a754 (#25717)
Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>
2024-02-29 16:00:06 +00:00
hc-github-team-secure-vault-core
17a3dc2785
backport of commit e0b1b87ca684425a38855ac2cbd4436b7945a406 (#25701)
Co-authored-by: Josh Black <raskchanky@gmail.com>
2024-02-28 22:05:49 +00:00
hc-github-team-secure-vault-core
6a45d27a90
Backport of identity/oidc: fix flakey key rotation test into release/1.14.x (#25541)
Co-authored-by: Austin Gebauer <34121980+austingebauer@users.noreply.github.com>
2024-02-21 11:13:33 -08:00
hc-github-team-secure-vault-core
d3028e6aa7
backport of commit 5f0638aa8bcb3e6188d4b92fabca29f15460203a (#25448) (#25552)
* prevent deadlock

* rollbacks not done for sync invalidate

* add check for the path before deleting

* revert sync invalidation doesn't do rollbacks

* add known issue

* changelog

* fix formatting issue

Co-authored-by: miagilepner <mia.epner@hashicorp.com>
2024-02-21 17:22:47 +01:00
hc-github-team-secure-vault-core
380c8d7412
Backport of [QT-637] Streamline our build pipeline into release/1.14.x (#25241)
* [QT-637] Streamline our build pipeline (#24892)

Context
-------
Building and testing Vault artifacts on pull requests and merges is
responsible for about 1/3rd of our overall spend on Vault CI. Of the
artifacts that we ship as part of a release, we do Enos testing scenarios
on the `linux/amd64` and `linux/arm64` binaries and their derivative
artifacts. The extended build artifacts for non-Linux platforms or less
common machine architectures are not tested at this time. They are built,
notarized, and signed as part of every pull request update and merge. As
we don't actually test these artifacts, the only gain we get from this
rather expensive behavior is that we wont merge a change that would prevent
Vault from building on one of the extended targets. Extended platform or
architecture changes are quite rare, so performing this work as frequently
as we do is costly in both monetary and developer time for little relative
safety benefit.

Goals
-----
Rethink and implement how and when we build binaries and artifacts of Vault
so that we can spend less money on repetitive work and while also reducing
the time it takes for the build and test pipelines to complete.

Solution
--------
Instead of building all release artifacts on every push, we'll opt to build
only our testable (core) artifacts. With this change we are introducing a
bit of risk. We could merge a change that breaks an extended platform and
only find out after the fact when we trigger a complete build for a release.
We'll hedge against that risk by building all of the release targets on a
scheduled cadence to ensure that they are still buildable.

We'll make building all of the targets optional on any pull request by
use of a `build/all` label on the pull request.

Further considerations
----------------------
* We want to reduce the total number of workflows and runners for all of our
  pipelines if possible. As each workflow runner has infrastructure cost and
  runner time penalties, using a single runner over many is often preferred.
* Many of our jobs runners have been optimized for cost and performance. We
  should simplify the choices of which runners to use.
* CRT requires us to use the same build workflow in both CE and Ent.
  Historically that meant that modifying `build.yml` in CE would result in a
  merge conflict with `build.yml` in Ent, and break our merge workflows.
* Workflow flow control in both `build.yml` and `ci.yml` can be quite
  complicated, as each needs to maintain compatibility whether executed as CE
  or Ent, and when triggered with various Github events like pull_request,
  push, and workflow_call, each with their own requirements.
* Many jobs utilize similar patterns of flow control and metadata but are not
  reusable.
* Workflow call depth has a maximum of four, so we need to be quite
  considerate when calling other workflows.
* Called workflows can only have 10 inputs.

Implementation
--------------
* Refactor the `build.yml` workflow to be agnostic to whether or not it is
  executing in CE or Ent. That makes future updates to the build much easier
  as we won't have to worry about merge conflicts when the change is merged
  downstream.
* Extract common steps in workflows into composite actions that we can reuse.
* Fix bugs where some but not all workflows would use different Git
  references when building and testing a pull request.
* We rewrite the application, docs, and UI change helpers as a composite
  action. This allows us to re-use this logic to make consistent behavior
  choices across build and CI.
* We combine several `build.yml` and `ci.yml` jobs into our final job.
  This reduces the number of workflows required for the same behavior while
  saving time overall.
* Update most of our action pins.

Results
-------

| Metric            | Before   | After   | Diff  |
|-------------------|----------|---------|-------|
| Duration:         | ~14-18m  | ~15-18m | ~ =   |
| Workflows:        | 43       | 18      | - 58% |
| Billable time:    | ~1h15m   | 16m     | - 79% |
| Saved artifacts:  | 34       | 12      | - 65% |

Infra costs should map closely to billable time.
Network I/O costs should map closely to the workflow count.
Storage costs should map directly with saved artifacts.

We could probably get parity with duration by getting more clever with
our UBI container build, as that's where we're seeing the increase. I'm
not yet concerned as it takes roughly the same time for this job to
complete as it did before.

While the CI workflow was not the focus on the PR, some shared
refactoring does show some marginal improvements there.

| Metric            | Before   | After    | Diff   |
|-------------------|----------|----------|--------|
| Duration:         | ~24m     | ~12.75m  | - 15%  |
| Workflows:        | 55       | 47       | - 8%   |
| Billable time:    | ~4h20m   | ~3h36m   | - 7%   |

Further focus on streamlining the CI workflows would likely result in a
few more marginal improvements, but nothing on the order like we've seen
with the build workflow.

[0] https://github.com/hashicorp/vault-enterprise/actions/runs/7875954928/job/21490054433?pr=5411#step:3:39

Signed-off-by: Ryan Cragun <me@ryan.ec>
2024-02-13 15:12:48 -07:00
hc-github-team-secure-vault-core
83435c3106
backport of commit dd1d0f31a2988006c8d31295440ac489ebb9b575 (#25225)
Co-authored-by: Scott Miller <smiller@hashicorp.com>
2024-02-06 17:01:27 +00:00
akshya96
54a10a5b3a
Revert "Revert manual license reporting changes from 1.14.x" (#25139)
* Revert "Revert manual license reporting changes from  1.14.x"

* cherry pick api changes

* manual reporting cli oss changes (#25109)

* fix cmd changes

* revert go.mod and go.sum

* remove extra change from logical_system.go

---------

Co-authored-by: Hamid Ghaf <83242695+hghaf099@users.noreply.github.com>
2024-02-01 15:03:55 -08:00
hc-github-team-secure-vault-core
52562cc7bb
backport of commit 9d86e5e11112c938a13f181d907412537940eda0 (#25182)
Co-authored-by: Scott Miller <smiller@hashicorp.com>
2024-02-01 21:00:24 +00:00
akshya96
31118a8449
Revert manual license reporting changes from 1.14.x (#25085)
* Revert "backport of commit 0e227bf0d75bc680439ea3b8a080c0cccc700015 (#25064)"

This reverts commit 28fa6d0fd9.

* Revert "manual licese reporting persist snapshots CE (#25021) (#25050)"

This reverts commit ac786547c2.

* Revert "backport of commit bc9be554cb4cc991a4e8d4bc806751cb4609c984 (#24850)"

This reverts commit 53ed1f9919.
2024-01-25 15:11:25 -08:00
hc-github-team-secure-vault-core
28fa6d0fd9
backport of commit 0e227bf0d75bc680439ea3b8a080c0cccc700015 (#25064)
Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>
2024-01-24 16:34:34 -08:00
Hamid Ghaf
ac786547c2
manual licese reporting persist snapshots CE (#25021) (#25050) 2024-01-24 13:38:03 -08:00
hc-github-team-secure-vault-core
80abe6b7e5
backport of commit 677d98a8212271bfccaa34e18004a5f0c4aa3b21 (#24984)
Co-authored-by: Austin Gebauer <34121980+austingebauer@users.noreply.github.com>
2024-01-22 22:04:59 +00:00
hc-github-team-secure-vault-core
53ed1f9919
backport of commit bc9be554cb4cc991a4e8d4bc806751cb4609c984 (#24850)
Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>
2024-01-18 19:44:49 +00:00
Violet Hynes
bef1e2700e
Backport dependabot (#24793) 2024-01-10 18:47:49 +00:00
Steven Clark
2b88002501
Update licensing across various source files - 1.14 (#24674)
* Fix licensing on various files

* Update CI and release files to BUSL-1.1

* Update offset within config_test_helpers.go

 - Fix a test the same way it's been fixed on main/1.15
2024-01-08 12:24:52 -05:00
hc-github-team-es-release-engineering
48ab1eae08
[DO NOT MERGE UNTIL EOY] EOY license fixes 1.14.x (#24390) 2024-01-02 10:36:20 -08:00
hc-github-team-secure-vault-core
8cf459b7f0
backport of commit 1484253e0ba27695d141b6ecea54eeca1da42e35 (#24408)
Co-authored-by: Austin Gebauer <34121980+austingebauer@users.noreply.github.com>
2023-12-06 13:38:30 -08:00
Hamid Ghaf
446f213c47
Buffer body read up to MaxRequestSize (#24354) (#24367)
* Buffer body read up to MaxRequestSize (#24354)

* adding back a context
2023-12-04 17:45:23 -08:00
hc-github-team-secure-vault-core
3e26f82cd9
backport of commit 91ec1a788b46c0bf12a3351e5e3339474400eee9 (#24363)
Co-authored-by: Scott Miller <smiller@hashicorp.com>
2023-12-04 23:00:39 +00:00
hc-github-team-secure-vault-core
b87d3488d7
backport of commit 4a7bee5a02db880d543692386ccd597f33e29624 (#24331)
Co-authored-by: Mike Palmiotto <mike.palmiotto@hashicorp.com>
2023-12-01 15:11:04 +00:00
hc-github-team-secure-vault-core
9f23d723b2
backport of commit 18e6385e0589895c354e0d2aed95e8321f1ee84f (#24328)
Co-authored-by: Mike Palmiotto <mike.palmiotto@hashicorp.com>
2023-12-01 13:36:54 +00:00
hc-github-team-secure-vault-core
44fdf3b98d
backport of commit c329ed8d3b02b92dfded30065317c82648d3cae3 (#24260)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-11-27 16:21:51 -05:00
hc-github-team-secure-vault-core
13d458f3af
backport of commit 0ab8cfdff681dc42753e080481ae3e9dca6e4031 (#24138)
Co-authored-by: davidadeleon <56207066+davidadeleon@users.noreply.github.com>
2023-11-15 09:38:03 -05:00
hc-github-team-secure-vault-core
1cab12e1aa
Backport of fix log_requests_level misconfiguration into release/1.14.x (#24058)
* backport of commit 0f5f648c1c9505e975ea2d479aa5e9f27bb1d935

* changelog

---------

Co-authored-by: Peter Wilson <peter.wilson@hashicorp.com>
2023-11-08 10:01:32 +00:00
hc-github-team-secure-vault-core
5efc0cb907
backport of commit 7ec3867eea2ad3c405f15f9ab5447618685739cf (#24031)
Co-authored-by: Nick Cabatoff <ncabatoff@hashicorp.com>
2023-11-06 15:48:43 +00:00
hc-github-team-secure-vault-core
891eb6fd7c
backport of commit b19562db9a8c1b65ea660ed0d51aaf9498a9887d (#24025)
Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
2023-11-06 13:51:52 +00:00
Hamid Ghaf
96f5e64b83
Revert "Automatically track subloggers in allLoggers (#22038)" (#24005)
This reverts commit 4c8cc87794ed2d989f515cd30c1c1b953d092ef3.
2023-11-03 14:40:17 -07:00
hc-github-team-secure-vault-core
82047e61d0
backport of commit 9b1120b0830060b3656977b4ce0d357fda2e5036 (#23917)
Co-authored-by: davidadeleon <56207066+davidadeleon@users.noreply.github.com>
2023-10-31 10:49:28 -04:00
hc-github-team-secure-vault-core
76d238646b
Backport of core: fix bug where deadlock detection was always on for expiration and quotas into release/1.14.x (#23904)
* backport of commit 66494c8129cddf33eb0cf435b6cb2f76bc47416f

* Remove slices package

* remove slices

---------

Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>
2023-10-30 17:21:47 +00:00
hc-github-team-secure-vault-core
1355b1d7bf
backport of commit 26bae559979bb6cc9f086d26f9c6450aa5173e95 (#23900)
Co-authored-by: Hamid Ghaf <83242695+hghaf099@users.noreply.github.com>
2023-10-30 08:47:45 -07:00
hc-github-team-secure-vault-core
274436c097
api/seal-status: fix deadlock when namespace is set on seal-status calls (#23861) (#23879)
* api/seal-status: fix deadlock when namespace is set on seal-status calls

* changelog

Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>
2023-10-27 14:47:12 +00:00
hc-github-team-secure-vault-core
3fe08e8374
backport of commit fb97a459ece4420cdb1237836affbfb40c24ad92 (#23876)
Co-authored-by: miagilepner <mia.epner@hashicorp.com>
2023-10-27 14:28:07 +00:00
hc-github-team-secure-vault-core
725de7bce2
Fix segments fragments loss (#23781) (#23841)
* add ent changes

* add changelog

* make fmt

Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>
2023-10-25 21:55:45 +00:00
hc-github-team-secure-vault-core
e83f62dadb
Revert "Implement user lockout log (#23140)" (#23741) (#23765)
This reverts commit 92fcfda8ad30a539be67b7fb7abff539bf93a098.

Co-authored-by: davidadeleon <56207066+davidadeleon@users.noreply.github.com>
2023-10-25 15:38:58 +00:00
hc-github-team-secure-vault-core
4bd017d3ba
backport of commit 3d37a2507bc1e54e2dc5e95c7cd099790543b3d1 (#23810)
Co-authored-by: Peter Wilson <peter.wilson@hashicorp.com>
2023-10-24 22:07:54 +00:00