Commit Graph

16054 Commits

Author SHA1 Message Date
hc-github-team-secure-vault-core
ea2d6e348c backport of commit 501f1fdedf (#17961)
Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
2022-11-16 11:00:52 -05:00
hc-github-team-secure-vault-core
4775a756f2 backport of commit c685d698be (#17962)
Co-authored-by: Meggie <meggie@hashicorp.com>
2022-11-16 07:41:11 -08:00
hc-github-team-secure-vault-core
ee63bf7d92 backport of commit e445c8b4f5 (#17948)
Co-authored-by: Ryan Cragun <me@ryan.ec>
2022-11-15 14:35:16 -07:00
hc-github-team-secure-vault-core
4796561e3e Backport of [QT-358] Unify CRT and local builder workflows into release/1.12.x (#17912)
* [QT-358] Unify CRT and local builder workflows (#17766)

Here we make the following major changes:

* Centralize CRT builder logic into a script utility so that we can share the
  logic for building artifacts in CI or locally.
* Simplify the build workflow by calling a reusable workflow many times
  instead of repeating the contents.
* Create a workflow that validates whether or not the build workflow and all
  child workflows have succeeded to allow for merge protection.

Motivation

* We need branch requirements for the build workflow and all subsequent
  integration tests (QT-353)
* We need to ensure that the Enos local builder works (QT-558)
* Debugging build failures can be difficult because one has to hand craft the
  steps to recreate the build
* Merge conflicts between Vault OSS and Vault ENT build workflows are quite
  painful. As the build workflow must be the same file and name we'll reduce
  what is contained in each that is unique. Implementations of building
  will be unique per edition so we don't have to worry about conflict
  resolution.
* Since we're going to be touching the build workflow to do the first two
  items we might as well try and improve those other issues at the same time
  to reduce the overhead of backports and conflicts.

Considerations

* Build logic for Vault OSS and Vault ENT differs
* The Enos local builder was duplicating a lot of what we did in the CRT build
  workflow
* Version and other artifact metadata has been an issue before. Debugging it
  has been tedious and error prone.
* The build workflow is full of brittle copy and paste that is hard to
  understand, especially for all of the release editions in Vault Enterprise
* Branch check requirements for workflows are incredibly painful to use for
  workflows that are dynamic or change often. The required workflows have to be
  configured in Github settings by administrators. They would also prevent us
  from having simple docs PRs since required integration workflows always have
  to run to satisfy branch requirements.
* Doormat credentials requirements that are coming will require us to modify
  which event types trigger workflows. This changes those ahead of time since
  we're doing so much to build workflow. The only noticeable impact will be
  that the build workflow no longer runs on pushes to non-main or release
  branches. In order to test other branches it requires a workflow_dispatch
  from the Actions tab or a pull request.

Solutions

* Centralize the logic that determines build metadata and creates releasable
  Vault artifacts. Instead of cargo-culting logic multiple times in the build
  workflow and the Enos local modules, we now have a crt-builder script which
  determines build metadata and also handles building the UI, Vault, and the
  package bundle. There are make targets for all of the available sub-commands.
  Now what we use in the pipeline is the same thing as the local builder, and
  it can be executed locally by developers. The crt-builder script works in OSS
  and Enterprise so we will never have to deal with them being divergent or with
  special casing things in the build workflow.
* Refactor the bulk of the Vault building into a reusable workflow that we can
  call multiple times. This allows us to define Vault builds in a much simpler
  manner and makes resolving merge conflicts much easier.
* Rather than trying to maintain a list and manually configure the branch check
  requirements for build, we'll trigger a single workflow that uses the github
  event system to determine if the build workflow (all of the sub-workflows
  included) have passed. We'll then create branch restrictions on that single
  workflow down the line.

Signed-off-by: Ryan Cragun <me@ryan.ec>
2022-11-15 10:54:32 -07:00
hc-github-team-secure-vault-core
eae20b0c2a backport of commit 5fd3c6db47 (#17937)
Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
2022-11-15 06:02:59 -08:00
hc-github-team-secure-vault-core
73ec6ed04f Handle removed default issuers (#17930) (#17931)
Credit to Steve for finding this one.

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
2022-11-14 16:01:51 -05:00
hc-github-team-secure-vault-core
cbafae62ae backport of commit 1ea6865dd6 (#17908)
Co-authored-by: Mike Palmiotto <mike.palmiotto@hashicorp.com>
2022-11-11 15:39:19 -05:00
hc-github-team-secure-vault-core
9f5f2109d8 backport of commit 467384d8d4 (#17887)
Co-authored-by: Chris Capurso <1036769+ccapurso@users.noreply.github.com>
2022-11-11 14:30:23 -05:00
hc-github-team-secure-vault-core
3ab4fba566 backport of commit a6e11bd170 (#17897)
Co-authored-by: John Smart <johnsmartnh@gmail.com>
2022-11-10 16:38:39 -08:00
hc-github-team-secure-vault-core
e3d5ccdffa backport of commit 3a7ce59d01 (#17884)
Co-authored-by: Chris Capurso <1036769+ccapurso@users.noreply.github.com>
2022-11-10 13:00:48 -08:00
hc-github-team-secure-vault-core
a1f1f8a072 backport of commit 96d623d3fc (#17869)
Co-authored-by: Chris Capurso <1036769+ccapurso@users.noreply.github.com>
2022-11-09 13:01:00 -08:00
hc-github-team-secure-vault-core
25cb1ef458 backport of commit e19ce98a97 (#17854)
Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
2022-11-08 11:58:35 -08:00
Jordan Reimer
c25e548509 bumps ember-source to 3.28.10 (#17844) 2022-11-08 11:20:01 -07:00
hc-github-team-secure-vault-core
63cf59d083 backport of commit e2ddfe07ee (#17830)
Co-authored-by: Theron Voran <tvoran@users.noreply.github.com>
2022-11-04 11:03:47 -07:00
hc-github-team-secure-vault-core
5781d7bf8c backport of commit c040949c00 (#17809)
Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>
2022-11-03 15:48:08 -04:00
Mike Palmiotto
1128cd6ab9 backport of commit 5d481e282c (#17812) 2022-11-03 14:20:12 -04:00
hc-github-team-secure-vault-core
24cec2d817 backport of commit 866a47d154 (#17806)
Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
2022-11-03 09:10:40 -07:00
hc-github-team-secure-vault-core
53e9293c75 backport of commit af953e9ab3 (#17802)
Co-authored-by: Ellie <ellie.sterner@hashicorp.com>
2022-11-03 09:51:39 -05:00
hc-github-team-secure-vault-core
1eba6da253 backport of commit 7c9cb891e7 (#17784)
Co-authored-by: dyma solovei <53943884+bevzzz@users.noreply.github.com>
2022-11-03 09:19:17 -04:00
hc-github-team-secure-vault-core
6a34241c5e backport of commit b059fefa27 (#17795)
Co-authored-by: Alex Cahn <acahn@hashicorp.com>
2022-11-02 17:40:30 -07:00
hc-github-team-secure-vault-core
0228506974 backport of commit 948a9851b2 (#17790)
Co-authored-by: Tom Proctor <tomhjp@users.noreply.github.com>
2022-11-02 14:44:43 -07:00
Jordan Reimer
f434a835f2 Raft Snapshot Download Bug (#17769) (#17787)
* moves service worker message event listener from addon to raft-storage-overview component

* adds changelog entry

* adds raft-storage-overview test for downloading snapshot via service worker
2022-11-02 15:05:34 -06:00
hc-github-team-secure-vault-core
ae1b64eeeb backport of commit 64e0a2a938 (#17785)
Co-authored-by: Tom Proctor <tomhjp@users.noreply.github.com>
2022-11-02 13:11:35 -07:00
Hamid Ghaf
1f79b47955 update go mod 1.12.1 (#17775) 2022-11-02 12:00:52 -04:00
Hamid Ghaf
1e9b0a1225 update SDK to 1.12.2 (#17719) 2022-11-02 10:59:43 -04:00
hc-github-team-secure-vault-core
91ac95be1b backport of commit 80c2dec816 (#17759)
Co-authored-by: Chris Capurso <1036769+ccapurso@users.noreply.github.com>
2022-11-01 12:13:39 -04:00
hc-github-team-secure-vault-core
f61ee5df43 backport of commit d8174be87e (#17743)
Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
2022-11-01 09:04:56 -04:00
hc-github-team-secure-vault-core
7c18e364a3 Backport of Add empty expiry crlConfig upgrade test into release/1.12.x (#17705)
* backport of commit c3d0f9f2bd

* Default crl expiry (#17693)

Ref: https://github.com/hashicorp/vault/issues/17642

Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
Co-authored-by: James Protzman <JNProtzman@gmail.com>
2022-10-31 10:26:55 -04:00
hc-github-team-secure-vault-core
f3531705e5 backport of commit 965f8c2236 (#17724)
Co-authored-by: Tom Proctor <tomhjp@users.noreply.github.com>
2022-10-28 14:10:47 +01:00
Tom Proctor
44dd32f860 Docs: Remove patch from 1.12.x docs (#17726)
Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
2022-10-28 08:47:00 -04:00
hc-github-team-secure-vault-core
51727e207d backport of commit c56b198161 (#17721)
Co-authored-by: aphorise <aphorise@gmail.com>
2022-10-28 08:33:45 -04:00
hc-github-team-secure-vault-core
e34f8a14fb backport of commit 28f091abe4 (#17710)
Co-authored-by: davidadeleon <56207066+davidadeleon@users.noreply.github.com>
v1.12.1
2022-10-27 12:32:05 -07:00
Jordan Reimer
2a57e588fd OIDC Alternate Path Bug (#17661) (#17688)
* adds error handling to auth-jwt component for missing roles and fixes bug where role wasn't being retained when using alternate oidc mount path at login

* fixes jwt login bug from auth mount tabs and adds test

* updates okta-number-challenge success value to arg in template

* adds changelog entry

* fixes issues logging in manually with jwt

* reverts mistaken change
2022-10-27 10:34:23 -07:00
hc-github-team-secure-vault-core
45b3486659 backport of commit eff53c2a64 (#17706)
Co-authored-by: aphorise <aphorise@gmail.com>
2022-10-27 09:13:56 -07:00
hc-github-team-secure-vault-core
fe268678fd backport of commit 184a4e4ff1 (#17702)
Co-authored-by: Bernhard Kaindl <43588962+bernhardkaindl@users.noreply.github.com>
2022-10-27 11:39:28 -04:00
hc-github-team-secure-vault-core
ed69142c08 backport of commit 50a2bb5c2d (#17698)
Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2022-10-27 08:06:00 -07:00
hc-github-team-secure-vault-core
c85aed2843 backport of commit 1075ac42d4 (#17697)
Co-authored-by: Mike Palmiotto <mike.palmiotto@hashicorp.com>
2022-10-27 07:02:24 -07:00
hc-github-team-secure-vault-core
dfc1a305b3 backport of commit 1a2ee3ab33 (#17681) 2022-10-26 17:51:15 -04:00
hc-github-team-secure-vault-core
214667a988 backport of commit cc570c11bb (#17674)
Co-authored-by: Luis (LT) Carbonell <lt.carbonell@hashicorp.com>
2022-10-26 15:44:54 -05:00
hc-github-team-secure-vault-core
e170e3bac6 backport of commit a5e019e020 (#17670)
Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
2022-10-26 10:58:28 -07:00
hc-github-team-secure-vault-core
3b47cc7cfc backport of commit 8647c4b20b (#17667)
Co-authored-by: Theron Voran <tvoran@users.noreply.github.com>
2022-10-26 10:31:12 -07:00
hc-github-team-secure-vault-core
2792cd3a90 Backport of Update plugin consul template v0.29.5 into release/1.12.x (#17641)
* backport of commit 294d4c351c
* go mod tidy

Co-authored-by: Peter Wilson <peter.wilson@hashicorp.com>
2022-10-25 15:01:14 +01:00
hc-github-team-secure-vault-core
fa4c59a15d backport of commit de848b05b1 (#17647)
Co-authored-by: Yoko Hyakuna <yoko@hashicorp.com>
2022-10-24 19:05:05 -07:00
hc-github-team-secure-vault-core
263b138daa backport of commit 90fe084218 (#17645)
Co-authored-by: Yoko Hyakuna <yoko@hashicorp.com>
2022-10-24 17:18:52 -07:00
Mike Baum
b7beeda2c1 [QT-182] Fix broken k8s workflow for vault-enterprise (#17629) (#17635) 2022-10-21 16:07:18 -04:00
Yoko Hyakuna
14828258fb added note regarding persistence for log level changes (#17596) (#17632)
Co-authored-by: Rowan Smith <86935689+rowansmithhc@users.noreply.github.com>
2022-10-21 14:23:03 -04:00
hc-github-team-secure-vault-core
a7b4bf7740 backport of commit 4a2063ca85 (#17623)
Co-authored-by: Michele Degges <mdeggies@gmail.com>
2022-10-20 10:57:09 -07:00
hc-github-team-secure-vault-core
1d080e0972 backport of commit 6132327d9e (#17601)
Co-authored-by: Kapil Arora <512729+kaparora@users.noreply.github.com>
Co-authored-by: Tom Proctor <tomhjp@users.noreply.github.com>
2022-10-20 15:11:32 +01:00
Jaymala
87e7fc0e54 Add Enos scenarios and workflows for testing 1.12.x (#17605)
* Add Enos scenarios and workflows for testing

Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com>

* Update build workflow for Enos support

Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com>

* Update CRT workflow to enable Enos verify

Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com>

* Add Enos K8s scenarios

Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com>

Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com>
2022-10-19 16:36:32 -04:00
hc-github-team-secure-vault-core
3333794263 backport of commit 294ed125e7 (#17604)
Co-authored-by: Yoko Hyakuna <yoko@hashicorp.com>
2022-10-19 08:57:06 -07:00