20405 Commits

Author SHA1 Message Date
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
Owen Zhang
998339f2d9
Update 1_16-default-policy-needs-to-be-updated.mdx (#27157)
Made a few grammar changes plus updating term from Vault IU to Vault UI
2024-08-07 14:28:29 -07:00
Paul Banks
fe69694954
Update 1_15-auto-upgrade.mdx (#27675)
* Update 1_15-auto-upgrade.mdx

* Update known issue version numbers for AP issue

---------

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
2024-08-07 21:27:18 +00:00
Ikko Eltociear Ashimine
b29f52d56e
Fix typo in variables.tf (#27693)
intialize -> initialize

Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>
2024-08-07 14:13:00 -07:00
VAL
e0414d6d7f
Changelog for 1.17.3, 1.16.7 enterprise, 1.15.13 enterprise (#28018)
* changelog for 1.17.3, 1.16.7 enterprise, 1.15.13 enterprise

* Add spacing to match older changelogs
2024-08-07 13:50:53 -07:00
Chelsea Shaw
da7fad68b8
UI: Replace getNewModel with hydrateModel when model exists (#27978)
* Replace getNewModel with hydrateModel when model exists

* Update getNewModel to only handle nonexistant model types

* Update test

* clarify test

* Fix auth-config models which need hydration not generation

* rename file to match service name

* cleanup + tests

* Add comment about helpUrl method
2024-08-07 16:07:25 +00:00
Adrian Todorov
cac0af4dbb
Update programmatic-management.mdx to clarify Terraform prereqs (#27548) 2024-08-06 16:39:27 -07:00
Roman O'Brien
3dad93eb38
update(kubernetes.mdx): k8s-tokenreview URL (#27993)
Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>
2024-08-06 16:30:10 -07:00
divyaac
8a5ae2bf37
Client Count Docs Updates/Cleanup (#27862)
* Docs changes

* More condensation of docs

* Added some clarity on date ranges

* Edited wording'

* Added estimation client count info

* Update website/content/api-docs/system/internal-counters.mdx

Co-authored-by: miagilepner <mia.epner@hashicorp.com>

---------

Co-authored-by: miagilepner <mia.epner@hashicorp.com>
2024-08-06 15:59:37 -07:00
Chelsea Shaw
f46bd66487
UI: Add unsupportedCriticalCertExtensions to jwt config expected payload (#27996) 2024-08-06 12:54:41 -05:00
Ryan Cragun
39c9d0b62d
docs: fix upgrade 1.16.x (#27999)
Signed-off-by: Ryan Cragun <me@ryan.ec>
2024-08-06 11:08:36 -06:00
Scott Miller
fa86fbafce
Update vault-plugin-auth-jwt to v0.21.1 (#27992) 2024-08-06 13:01:58 -04:00
Ryan Cragun
5a69be44a2
docker: add upgrade notes for curl removal (#27995)
Signed-off-by: Ryan Cragun <me@ryan.ec>
2024-08-06 10:56:30 -06:00