Commit Graph

20117 Commits

Author SHA1 Message Date
Angel Garbarino
ec95f85dc8 Refactor SSH Configuration workflow (#28122)
* initial copy from other #28004

* pr feedback

* grr
2024-08-19 15:58:37 -06:00
Jonathan Frappier
c99e4f1a3f Add valid IP callout (#28112)
Co-authored-by: Yoko Hyakuna <yoko@hashicorp.com>
2024-08-16 19:54:28 -04:00
dependabot[bot]
754e97018f Bump actions/setup-node from 4.0.2 to 4.0.3 (#27738)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4.0.2 to 4.0.3.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](60edb5dd54...1e60f620b9)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>
2024-08-16 16:15:59 -07:00
dependabot[bot]
f3e9f854d6 Bump actions/download-artifact from 4.1.7 to 4.1.8 (#27704)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4.1.7 to 4.1.8.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](65a9edc588...fa0a91b85d)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>
2024-08-16 14:48:16 -07:00
claire bontempo
30da9aef46 UI: Build KV v2 overview page (#28106)
* move date-from-now helper to addon

* make overview cards consistent across engines

* make kv-paths-card component

* remove overview margin all together

* small styling changes for paths card

* small selector additions

* add overview card test

* add overview page and test

* add default timestamp format

* cleanup paths test

* fix dateFromNow import

* fix selectors, cleanup pki selectors

* and more selector cleanup

* make deactivated state single arg

* fix template and remove @isDeleted and @isDestroyed

* add test and hide badge unless deactivated

* address failings from changing selectors

* oops, not ready to show overview tab just yet!

* add deletionTime to currentSecret metadata getter
2024-08-16 14:40:23 -07:00
gkoutsou
255db7aab1 Add ENVs using NewTestDockerCluster (#27457)
* Add ENVs using NewTestDockerCluster

Currently NewTestDockerCluster had no means for setting any
environment variables. This makes it tricky to create test
for functionality that require thems, like having to set
AWS environment variables.

DockerClusterOptions now exposes an option to pass extra
enviroment variables to the containers, which are appended
to the existing ones.

* adding changelog

* added test case for setting env variables to containers

* fix changelog typo; env name

* Update changelog/27457.txt

Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>

* adding the missing copyright

---------

Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>
2024-08-16 13:18:47 -07:00
akshya96
ae6854e9f2 updating remaining occurances of setup-go (#28110) 2024-08-16 13:00:48 -07:00
Ryan Cragun
d5c67768c5 scan: skip running if the PR head is a fork (#28107)
Signed-off-by: Ryan Cragun <me@ryan.ec>
2024-08-16 13:49:05 -06:00
akshya96
62e0e62742 updating remaining occurances of upload-artifact (#28108) 2024-08-16 11:46:08 -07:00
Peter Wilson
d219fc5002 treat all errors as part of the same variadic set of arguments (#28102) 2024-08-16 14:28:05 +00:00
dependabot[bot]
219e53134d Bump actions/setup-go from 5.0.1 to 5.0.2 (#27756)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.0.1 to 5.0.2.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](cdcb360436...0a12ed9d6a)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>
2024-08-15 15:41:52 -07:00
dependabot[bot]
3b2ea90fdb Bump actions/upload-artifact from 4.3.3 to 4.3.6 (#28008)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.3 to 4.3.6.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](65462800fd...834a144ee9)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>
2024-08-15 15:18:47 -07:00
claire bontempo
5e08bd4b91 UI: kv v2 patch plumbing: adds patch method to adapter (#28082)
* add patch to kv adapter

* use query-param-string helper in fetchSubkeys

* one more whitespace helper

* move method because git diff was strange

* update path util tests
2024-08-15 10:51:06 -07:00
claire bontempo
08a999f0fa UI: Fix toast message text when deleting a kv v2 secret (#28093)
* VAULT-29995 fix flash grabbing status from state

* add test

* add changelog

* add test for destroyed copy
2024-08-15 10:49:43 -07:00
VAL
a4e8063eff Add LTS label instructions to PR template (#27924)
* Add LTS explanation and clarify other label explanations

* Link to doc containing LTS calendar

* Change order for simpler cognitive load

* A bit simpler based on feedback
2024-08-15 10:40:01 -07:00
John-Michael Faircloth
867be6d3e5 docs: add note for ldap auth to upgrade guide (#28015)
* docs: add note for ldap auth to upgrade guide

* Update website/content/docs/upgrading/upgrade-to-1.16.x.mdx

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>

---------

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
2024-08-15 09:58:47 -07:00
kevin-loehfelm
e4309e2a1a correct typo (#28077) 2024-08-15 09:26:51 -07:00
Bianca Moreira
b20e3120c8 Fix Dockerfile LICENSE.txt path (#28087) 2024-08-15 14:19:55 +02:00
akshya96
9e4bc33d5e bumping versions for grpc and docker/docker (#28071)
* bumping versions for grpc and docker/docker

* go get github.com/docker/docker@v25.0.6 && go mod tidy

* updating to 25.0.6 in sdk

* updating grpc in sdk
2024-08-14 14:24:15 -07:00
Ryan Cragun
843ae09948 scan: fixup ent labels (#28083)
Signed-off-by: Ryan Cragun <me@ryan.ec>
2024-08-14 15:20:06 -06:00
divyaac
36998a5ed6 CE: Added deleted namespace string (#28080)
* Applied oss patch and added docs

* Edited docs issues
2024-08-14 20:59:44 +00:00
Ryan Cragun
aff0eae0f9 VAULT-28638: Cost optimize the Security scan workflow (#28067)
Optimize the cost of the Security `scan` workflow by utilizing a
different runner. Previously this workflow would use the
`custom-linux-xl` in `vault` vs. the `c6a.4xlarge` on-demand runner in
`vault-enterprise. This resulted in the `vault` workflow costing an
order of magnitude more each month.

I tested with the following instances sizes to compare cost to execution
time:

| Runnner | Estimated Time | Cost Factor | Cost Score |
|---------|-----------------|-------------|-------------|
|ubuntu-latest|19m|1|19|
|custom-linux-small|21.5m|2|43|
|custom-linux-medium|11.5m|4|46|
|custom-linux-xl|8.5m|16|136|

Currently the `CI` and `build` require workflows take anywhere from
16-20 minutes on `vault`. Our goal is to not exceed that.

At this time we're going to try out `ubuntu-latest` as it gives us ~85%
savings and by far the best bang for our buck. If it ends up being a
burden we can switch to `custom-linux-medium` for ~66% cost savings but
still a reasonable runtime.

Signed-off-by: Ryan Cragun <me@ryan.ec>
2024-08-14 14:29:34 -06:00
Ryan Cragun
339721e953 enos: renable undo logs verification (#27206)
After VAULT-20259 we did not enable the undo logs verification. This
reenables the check but modified to check the status of the primary and
follower nodes, as they should have different values.

While testing this I accidentally flubbed my version input and found the
diagnostic a bit confusing to read so I updated the error message on
version mismatch to be a bit easier to read.

Signed-off-by: Ryan Cragun <me@ryan.ec>
2024-08-14 13:45:50 -06:00
claire bontempo
eaf47c4c00 UI: Build kv-patch-editor form (#28060)
* build kv-patch-editor component

* add tests

* use validator helpers in kv-object-editor

* update class name in version-history

* remove is- from css class

* move whitespace warning and non-string values warning messages to validators util

* break editor component into smaller ones

* fix typo

* add docs

* rename files and move to directory, add tests for new templates

* fix some bugs and add tests!

* fix validation bug and update tests

* capitalize item in helper

* remove comment

* and one more comment change
2024-08-14 11:52:33 -07:00
Violet Hynes
474bcd8f11 VAULT-29738 CE changes for client count warning (#28068)
* VAULT-29738 CE changes for client count warning

* VAULT-29738 add changelog
2024-08-14 09:31:02 -04:00
Angel Garbarino
8eb7595304 AWS test prep for WIF work (#28069)
* add test coverage and clean up selectors

* remove

* small clean up

* select things
2024-08-13 16:22:09 -06:00
John-Michael Faircloth
1b1f22192a postgres: sanitize private_key from READ config endpoint (#28070) 2024-08-13 13:29:57 -07:00
Chris Capurso
b003c57ac0 Add identity info to activity export API (#28064)
* change no export data status to be 204 instead of 400

* add identity metadata for JSON and CSV with column flattening

* add condition to nil-check-physical-storage-by-nsid semgrep rule

* add TestActivityLog_Export_CSV_Header test

* fix tests

* add changelog entry
2024-08-13 14:38:34 -04:00
djschnei21
4c0cc27f6c remove recommendations (#28063)
removing these recommendations because they are not inline with conventional wisdom or our HVDs.  For example, AppRole should not be leverage when a platform native identity source is available (e.g. AWS, Azure, GCP, K8s, Nomad, etc...)
2024-08-13 10:14:21 -07:00
miagilepner
f294b56355 lint (#28065) 2024-08-13 16:09:56 +00:00
miagilepner
8cd42632b2 Sort namespaces, mounts, and clients before adding them to HLL (#28062)
* sort namespaces and mounts before adding them

* also sort clients

* add comments

* pr comment fixes

* changelog

* changelog update
2024-08-13 16:54:35 +02:00
Brian Howe
cbc06c0856 ensure response is not nil before sanitizing (#27923)
Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>
2024-08-12 12:48:48 -07:00
Yoko Hyakuna
e31d1a8b1e Minor edits (#28051) 2024-08-12 11:35:54 -07:00
Peter Wilson
b0616065c5 Audit: logging and improvements (#28056)
* Add trace logging to context creation during log req/resp. Improve context sensitivity of sink nodes (file, socket), update eventlogger to include context info in error

* changelog

* Queue for the lock but check context immediately

* fix race in test
2024-08-12 18:36:13 +01:00
Ryan Cragun
bf0e156496 enos: wait for both clusters to be healthy before configuring replication (#28049)
Signed-off-by: Ryan Cragun <me@ryan.ec>
2024-08-09 16:28:28 -06:00
Yoko Hyakuna
34a1796d03 [Docs] Create 'Troubleshoot' section (#28028)
* Create 'Troubleshoot' section

* Remove extra spaces

* Update redirects.js

* Remove extra comma

* Change the title

* Update website/content/docs/troubleshoot/generate-root-token.mdx

Co-authored-by: Brian Shumate <brianshumate@users.noreply.github.com>

* Update website/content/docs/troubleshoot/generate-root-token.mdx

Co-authored-by: Brian Shumate <brianshumate@users.noreply.github.com>

* Update website/content/docs/troubleshoot/generate-root-token.mdx

Co-authored-by: Brian Shumate <brianshumate@users.noreply.github.com>

* Update website/content/docs/troubleshoot/generate-root-token.mdx

Co-authored-by: Brian Shumate <brianshumate@users.noreply.github.com>

* Update website/content/docs/troubleshoot/generate-root-token.mdx

Co-authored-by: Brian Shumate <brianshumate@users.noreply.github.com>

* Update website/content/docs/troubleshoot/generate-root-token.mdx

Co-authored-by: Brian Shumate <brianshumate@users.noreply.github.com>

* Update website/content/docs/troubleshoot/generate-root-token.mdx

Co-authored-by: Brian Shumate <brianshumate@users.noreply.github.com>

* Update website/content/docs/troubleshoot/generate-root-token.mdx

Co-authored-by: Brian Shumate <brianshumate@users.noreply.github.com>

* Update website/content/docs/troubleshoot/generate-root-token.mdx

Co-authored-by: Brian Shumate <brianshumate@users.noreply.github.com>

* Update website/content/docs/troubleshoot/generate-root-token.mdx

Co-authored-by: Brian Shumate <brianshumate@users.noreply.github.com>

* edit suggestions (#28047)

* Fix the relative path - add missing '/'

* Fix a typo

---------

Co-authored-by: Brian Shumate <brianshumate@users.noreply.github.com>
Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
2024-08-09 14:21:41 -07:00
Ryan Cragun
74b6cc799a VAULT-29583: Modernize default distributions in enos scenarios (#28012)
* VAULT-29583: Modernize default distributions in enos scenarios

Our scenarios have been running the last gen of distributions in CI.
This updates our default distributions as follows:
  - Amazon: 2023
  - Leap:   15.6
  - RHEL:   8.10, 9.4
  - SLES:   15.6
  - Ubuntu: 20.04, 24.04

With these changes we also unlock a few new variants combinations:
  - `distro:amzn seal:pkcs11`
  - `arch:arm64 distro:leap`

We also normalize our distro key for Amazon Linux to `amzn`, which
matches the uname output on both versions that we've supported.

Signed-off-by: Ryan Cragun <me@ryan.ec>
2024-08-09 13:43:28 -06:00
Ryan Cragun
8c2548f8be VAULT-29739: Wait for cluster unseal before checking version history (#28022)
Sometimes the replication scenario will race with other steps and
attempt to check the `v1/sys/version-history` API before the cluster is
ready. Eventually when it gets retried some of the original nodes are
down so it will fail. This makes the verification happen later, only
after we've ensured the cluster is unsealed and have gotten leader and
cluster IP addresses. We also make dependent steps require the version
verification so that if it does fail for some reason it will retry
before doing the rest of the scenario.

Signed-off-by: Ryan Cragun <me@ryan.ec>
2024-08-09 13:43:11 -06:00
divyaac
ad6871e6b5 Show Current Month When Future Month Start Date is Provided (#28042)
* Show current month data

* Added changelog

* Edited changelog
2024-08-09 19:41:27 +00:00
John-Michael Faircloth
3fcb1a67c5 database/postgres: add inline certificate authentication fields (#28024)
* add inline cert auth to postres db plugin

* handle both sslinline and new TLS plugin fields

* refactor PrepareTestContainerWithSSL

* add tests for postgres inline TLS fields

* changelog

* revert back to errwrap since the middleware sanitizing depends on it

* enable only setting sslrootcert
2024-08-09 14:20:19 -05:00
Peter Wilson
a19195c901 unexport as much as possible in the audit package (#28039) 2024-08-09 17:03:29 +01:00
aphorise
88975a6c24 Core: CLI Doc improvements to example read / write. (#19064)
* Core: CLI Doc imporvements to example read / write. Resolves #16788

* Core: CLI Doc imporvements to example read / write. Resolves #16788. Updated Changelog filename.

* Core: CLI Doc imporvements to example read / write. Resolves #16788. Updated Changelog..

* Updated read example to use token lookup instead.
2024-08-09 11:48:21 -04:00
Yoko Hyakuna
7509ef169b [Docs] Add cross referencing link to AppRole usage best practices (#28038)
* Add cross referencing link to AppRole usage best practices

* Minor edits to flow the sentence better
2024-08-09 08:27:49 -07:00
hc-github-team-secure-vault-core
ba7002367a Update vault-plugin-secrets-terraform to v0.9.0 (#28016)
---------

Co-authored-by: hc-github-team-secure-vault-ecosystem <hc-github-team-secure-vault-ecosystem@users.noreply.github.com>
2024-08-09 11:10:14 -04:00
Angel Garbarino
09cc71d6dc SSH configuration test coverage (#28021)
* initial changes

* test selector and duplicate tests clean up

* check for flashDanger

* rename to make it easier to parse

* clean up selector names

* clean up

* add component test coverage

* remove true
2024-08-08 20:44:12 -06:00
Ellie
0b4d54ddde [docs] document manual entity merge failures when sent to PR secondary cluster (#28013)
* document manual entity merge failures when sent to PR secondary cluster

* Update website/content/partials/known-issues/manual-entity-merge-does-not-persist.mdx

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>

* Update website/content/partials/known-issues/manual-entity-merge-does-not-persist.mdx

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>

* Update website/content/partials/known-issues/manual-entity-merge-does-not-persist.mdx

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>

* Fix link

---------

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
2024-08-08 15:32:54 -05:00
Peter Wilson
1af9819744 add iptables (#28031) 2024-08-08 11:59:26 +00:00
VBouiller
a00a869eb7 Fix: typo in Vault CLI Env variables (#24093)
Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
2024-08-07 23:12:27 +00:00
muhtasim-maleque
16aadca617 [DOCS] Correct telemetry metric name (#27027)
Update telemetry metric name from vault.kv.secret.count to vault.secret.kv.count
2024-08-07 16:08:18 -07:00
Meggie
fd1e53d256 Edit alias_name_source explanation (#27382)
* Edit alias_name_source explanation

We wanted to clarify the difference between the two options and the implications.

* Add missing backticks

* Add comma

* Update website/content/api-docs/auth/kubernetes.mdx

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>

---------

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
2024-08-07 16:07:36 -07:00