Commit Graph

20484 Commits

Author SHA1 Message Date
Bianca Moreira
c7b029eb01 Clone entity memdb (#28593) 2024-10-04 15:00:54 +00:00
Scott Miller
6ad78c4102 Remove one more use of ScalarMult from CE (#28585)
* Remove one more use of ScalarMult from CE

* get param order right
2024-10-03 15:59:42 -05:00
claire bontempo
287f5606b0 UI: pin rollup version in resolutions to 2.79.2 (#28589)
* pin rollup version in resolutions

* SECVULN-13161 link jira
2024-10-03 13:32:05 -07:00
Angel Garbarino
c006568085 Handle promise-proxy deprecation (#28563)
* fix promise issues on transformation-edit

* fix one test and the transition problem

* cannot call capabilities service directly inside template because its an unresolved promise

* address transit capabilities issues

* remove deprecations line for promise-proxies

* handle hot mess of delete permissions and such

* blah

* update flash message language. It will now show a flash message for each role whose transformationw as not removed.

* small wording change

* one small change to the default flash message

* Update ui/app/components/transformation-edit.js

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>

* Update ui/app/components/transformation-edit.js

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>

* Update ui/app/components/transformation-edit.js

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>

* fix policy flow

* fix linting and can't define let outside if block

* fix flashmessage things

* make show and edit use same param

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2024-10-03 13:49:21 -06:00
Scott Miller
1eaca82bbd Log when the seal is unavailable as error (#28564)
* Log when the seal is unavailable as error

* changelog

* Update changelog/28564.txt

Co-authored-by: Steven Clark <steven.clark@hashicorp.com>

---------

Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2024-10-03 18:47:50 +00:00
claire bontempo
e8a432c4f8 UI: removeember-fetch which used vulnerable version of rollup (#28575) 2024-10-03 09:54:30 -07:00
Steven Clark
baf794b621 Remove duplicated allow_empty_principals parameter in role api docs (#28580) 2024-10-03 09:54:22 -04:00
claire bontempo
f2656be89f add model to linkto (#28573) 2024-10-02 15:46:52 -07:00
VAL
53bb78ce5f Log when MAP_POPULATE gets disabled (#28526)
* add warning for when MAP_POPULATE mmap flag not set

* Make mmap flags method handle any flags, where MAP_POPULATE is just one of them

* Only have the log print out on restores

* Add test, make logic more consistent

* Add changelog

* Add godoc for test

* Make test less dangerous
2024-10-02 12:27:25 -07:00
Tin Vo
4836c83e5a removing unused variable (#28537)
* removing unused variable

* testing pipeline

* testing pipeline
2024-10-02 12:06:26 -07:00
Jason Joo
a5caf4e1cb fix: cert auth method watches cert file change and NewCreds() notification (#28126)
Signed-off-by: Jason Joo <hblzxsj@gmail.com>
2024-10-02 13:41:55 -04:00
Steven Clark
159e780d74 Have go-test timeout before the GH step timeout to gather information (#28559)
- If we encounter a deadlock/long running test it is better to have go
   test timeout. As we've noticed if we hit the GitHub step timeout, we
   lose all information about what was running at the time of the timeout
   making things harder to diagnose.
 - Having the timeout through go test itself on a long running test it
   outputs what test was running along with a full panic output within
   the logs which is quite useful to diagnose
2024-10-02 10:27:25 -04:00
Steven Clark
7efc1af5d0 Do not acquire a read lock twice on tidyStatusLock during tidy-status api call. (#28556) 2024-10-02 08:58:05 -04:00
Angel Garbarino
a3772c852d remove from config (#28550) 2024-10-01 13:20:41 -07:00
Victor Rodriguez
e7e16fd175 Move writing of stored keys to the end of Vault initialization. (#28538)
Move the call to SetStoredKeys to the end of the initialization process. On
Vault Enterprise, this minimizes the chances that the initial seal re-wrap fails
when a node other than the one performing initialization becomes the active one.
2024-10-01 14:29:19 -04:00
Steven Clark
32d09a72f8 Update PKI tests to leverage the tidy-status test helper (#28531)
- I have a suspicion the for loop with the timer can be infinite loops
   in certain circumstances. Instead leverage the normal test helpers
   for fetching tidy status
2024-10-01 14:22:15 -04:00
claire bontempo
71422d4cdd UI: Fix oidc auth method missing default_role field (#28539)
* add auth-config/oidc to openapi model helper

* alphabetize

* update maskedinput selector to be standard data-test-input

* add test

* add changelog

* fix maskedinput test and kv selector

* final textarea selector!
2024-10-01 09:21:16 -07:00
Eléonore Carpentier
b195342e51 Add sys/storage/raft/bootstrap option to reset TLS keyring (#18615)
* Add sys/storage/raft/bootstrap option to reset TLS keyring

* Add a comment

* Remove resetTLSKeyring arg & fix based on review comments

* Add changelog

* Update vault/raft.go

Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>

* fix failing test

* typo in go doc  :sadpanda:

---------

Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2024-10-01 11:52:12 -04:00
Chris Capurso
759751a27b add aws and k8s auth examples to export (#28481)
* add aws and k8s auth examples to export

* add clarification to alias name source

* fix links
2024-10-01 09:44:00 -04:00
Luis (LT) Carbonell
2d46c8d1fd Add clarifying message (#28535) 2024-09-30 15:48:55 +00:00
Steven Clark
70d5c5e582 Update ssh docs to add missing conditional for valid_principals (#28530) 2024-09-27 17:13:20 -04:00
Lee Boynton
55dac2a319 Fix potential error revoking privileges in postgres secret engine (#28519)
* Fix potential error revoking privileges in postgres secret engine

* add changelog entry

* fix changelog format

---------

Co-authored-by: JM Faircloth <jmfaircloth@hashicorp.com>
2024-09-26 16:08:14 -05:00
claire bontempo
6dfde31f94 UI: address body-parser security vulnerability (#28520)
* add body-parser to resolutions block

* revert resolutions pin

* upgrade ember-a11y-testing package

* add back to resolutions block;
2024-09-26 10:58:42 -07:00
Steven Clark
2db2a9fb5d PKI: Track last time auto tidy was run across restarts (#28488)
* Track the last PKI auto-tidy time ran for use across nodes

 - If the interval time for auto-tidy is longer then say a regularly
   scheduled restart of Vault, auto-tidy is never run. This is due to
   the time of the last run of tidy is only kept in memory and
   initialized on startup to the current time
 - Store the last run of any tidy, to maintain previous behavior, to
   a cluster local file, which is read in/initialized upon a mount
   initialization.

* Add auto-tidy configuration fields for backing off at startup

* Add new auto-tidy fields to UI

* Update api docs for auto-tidy

* Add cl

* Update field description text

* Apply Claire's suggestions from code review

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>

* Implementing PR feedback from the UI team

* remove explicit defaults and types so we retrieve from backend, decouple enabling auto tidy from duration, move params to auto settings section

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
Co-authored-by: claire bontempo <cbontempo@hashicorp.com>
2024-09-26 09:47:11 -04:00
Tom Chwojko-Frank
31d58145fd Updated changelog for the 1.17.6, 1.16.10, and 1.15.15 releases (#28513) 2024-09-25 18:51:26 -07:00
Luis (LT) Carbonell
b861d8b03f Fix Issue with Lost Timezone in Metadata for Database Secret Engines (#28509)
* Set cron schedule location after pulling from storage

* Add changelog
2024-09-25 18:40:50 -04:00
Chelsea Shaw
8d6d26e531 UI: Refactor path-help service (#28444)
* Add helper combineOpenApiAttrs + test

* hydrateModel working with upgradeModelSchema

* new registerNewModelWithAttrs method for generated models

* Add newFields to generated models

* copyright

* Glimmerize path-help service

* update generated-item-list adapter and path-help usage of it

* remove unused methods combineAttributes and combineFields

* move expandOpenApiProps to ts helper file

* fix auth test

* fix bug where adding user to second userpass mount saves to first mount

* Add mutableId

* fix ent test

* remove addressed deprecation

* Address PR comments

* [VAULT-31208] remove deprecation early-static from decorator tests
2024-09-25 18:17:48 +00:00
Angel Garbarino
2b031adf34 fix keyUsage openapi helptext update (#28503) 2024-09-24 15:53:32 -06:00
Chelsea Shaw
74c4e0bd86 UI: Update model docs (#28495)
* rename validators util into model-helpers folder

* move kmip-role-fields to model-helpers

* fill out docs

* Move database-helpers into model-helpers

* broom
2024-09-24 14:07:06 -07:00
Kit Haines
5da8750a93 Split the Key_Usage Field into separate fields (#28500)
* Split the Key_Usage Field into separate fields - one for the Cert
Endpoints (Sign-intermediate/Generate Root) the other for the CSR
Endpoint (intermediate generate).  These have different defaults,
and descriptions.

* Fix schema test.
2024-09-24 15:35:24 -04:00
Chris Capurso
f0782ee3fb calculate token lease TTL using tune config (#28498)
* calculate token lease TTL using tune config

* add changelog entry
2024-09-24 15:29:56 -04:00
Violet Hynes
6d66990cb6 Fix static secret caching race condition (#28494)
* Fix static ssecret caching data race

* Fix static ssecret caching data race

* Changelog
2024-09-24 14:08:48 -04:00
Raja Nadar
7cf6cbd330 Update libraries.mdx section for VaultSharp (#28426)
* Update libraries.mdx section for VaultSharp

Added more info on VaultSharp for latest .NET version support and comprehensiveness of auth and secret backends supported

* Update website/content/api-docs/libraries.mdx

Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>

---------

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2024-09-24 09:20:08 -07:00
claire bontempo
8567b75ff2 UI: add allow_empty_principals to ssh engine (fixes failing test) (#28484) 2024-09-24 09:09:04 -07:00
Ryan Cragun
c8c51b1b9d VAULT-30819: verify DR secondary leader before unsealing followers (#28459)
* VAULT-30819: verify DR secondary leader before unsealing followers

After we've enabled DR replication on the secondary leader the existing
cluster followers will be resealed with the primary clusters encryption
keys. We have to unseal the followers to make them available. To ensure
that we absolutely take every precaution before attempting to unseal the
followers we now verify that the secondary leader is the cluster leader,
has a valid merkle tree, and is streaming wals from the primary cluster
before we attempt to unseal the secondary followers.

Signed-off-by: Ryan Cragun <me@ryan.ec>
2024-09-24 09:13:40 -06:00
Scott Miller
12f03b073a Make reception of an empty valid principals configurable based on a role flag. (#28466)
* Make reception of an empty valid principals configurable based on a role flag.

Adds allow_empty_principals, which if true allows valid_principals on credential generation calls
to be empty.

* changelog

* Allow empty principals on unrelated unit test

* whitespace
2024-09-23 17:20:11 -05:00
hc-github-team-secure-vault-core
2e6ba29f5b Update vault-plugin-secrets-openldap to v0.14.1 (#28479)
* Update vault-plugin-secrets-openldap to v0.14.1

* Add changelog

---------

Co-authored-by: hc-github-team-secure-vault-ecosystem <hc-github-team-secure-vault-ecosystem@users.noreply.github.com>
2024-09-23 20:43:27 +00:00
Scott Miller
4515a016f7 Fix accidental debug logging in the OCSP helper client (#28450)
* Fix accidental debug logging in the OCSP helper client

* changelog
2024-09-23 18:17:11 +00:00
Steven Clark
6acfc8e212 Add a core test logger to help capture the MSSQL container output (#28472)
* Add a core test logger to help capture the MSSQL container output

 - I believe the if t.Failed prevents the logging of the container
   logging as when executed the test isn't considered failed yet.
 - Use a test core logger so that we can capture the container output
   all the time and get it from the captured log files when the test
   fails

* bump image tag to 2022-latest

---------

Co-authored-by: JM Faircloth <jmfaircloth@hashicorp.com>
2024-09-23 13:57:21 -04:00
Tero Saarni
6f13aec0d3 core/api: Add missing LICENSE files to sub-modules (#27920)
Go module tooling mandates that each sub-module contains its own LICENSE file.
If absent, it defaults to the LICENSE file in the root of the git repository.
This resulted in the api/auth/* modules erroneously inheriting the BUSL
license instead of the correct MPL license, as indicated by the SPDX info in
the actual API code.

This update ensures that module documentation is displayed correctly on
pkg.go.dev and resolves issues with various tools showing incorrect license
information for the sub-modules.

Signed-off-by: Tero Saarni <tero.saarni@est.tech>
2024-09-23 13:06:35 -04:00
Steven Clark
13de053935 Do not shadown err within MSSQL test container intialization (#28468)
- Get better test failure error messages by not shadowing the errors
   when we are attempting to start the MSSQL docker container, so
   we can fail the tests with the proper error message that is occuring
   instead of mssqlhelper.go:60: Could not start docker MSSQL: %!s(<nil>)
2024-09-23 12:22:11 -04:00
Luis (LT) Carbonell
7c1a83422b Improve Error Handling for Missing Credentials in AppRole and UserPass (#28441)
* Return invalid credentials for missing login parameters (400 vs 500)

* Add changelog

* Update test
2024-09-23 10:55:20 -04:00
framsouza
efd2fb2ae4 [docs] Updating Kubernetes upgrade instruction (#25286)
* [docs] Updating kubernetes upgrade instruction

* Fixing code block

* Update website/content/docs/platform/k8s/helm/run.mdx

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

* Update website/content/docs/platform/k8s/helm/run.mdx

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

* Update website/content/docs/platform/k8s/helm/run.mdx

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

* Update website/content/docs/platform/k8s/helm/run.mdx

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

* Update website/content/docs/platform/k8s/helm/run.mdx

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

---------

Co-authored-by: Peter Wilson <peter.wilson@hashicorp.com>
Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
Co-authored-by: divyaac <divya.chandrasekaran@hashicorp.com>
Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2024-09-23 14:09:05 +00:00
Brian Howe
fc5ed22fd1 pass context to S3 and dynamoDB storage calls (#27927)
* pass context to S3 and dynamoDB storage calls

* add changelog

* fix changelog
2024-09-23 08:46:15 -04:00
Andrew Talbot
2fc8e35ec3 docs(lambda-extension): update distributed tracing headers warning; (#28319)
* docs(lambda-extension): update cache header warning;

* docs(lambda-extension): tweak language;

* docs(lambda-extension): accept pr comment

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

---------

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
2024-09-20 14:39:16 -07:00
rajesht-source
0c986fc660 updated vault helm chart doc with usecase of nlb (#27690)
* updated vault helm chart doc with usecase of nlb

Signed-off-by: Kumar, Rajesh (XINBM1A) <Rajesh.Kumar2@fmr.com>

* Update index.mdx - changes as per the pr comment

Signed-off-by: Kumar, Rajesh (XINBM1A) <Rajesh.Kumar2@fmr.com>

---------

Signed-off-by: Kumar, Rajesh (XINBM1A) <Rajesh.Kumar2@fmr.com>
2024-09-20 16:53:38 -04:00
Chelsea Shaw
520f141608 UI: refactor KMIP role model (#28418)
* update kmip/role model and adapter

* New KMIP role form component

* cleanup on kmip role adapter/model

* fix role details view

* update tests to check for kmip role form and details validity

* cleanup

* Add kmip-role-fields test

* add headers, remove old component

* Address PR comments
2024-09-20 18:52:59 +00:00
Chelsea Shaw
2ce68778e4 UI: Fix LDAP Mirage Handler (#28432)
* update ldap mirage scenario to allow check-in/check-out action

* update libraries test to mount engine

* update mirage, fix tests

* update lease renew CLI command

* fix test

* update tests
2024-09-20 13:44:29 -05:00
Owen Zhang
e848f1683d Update namespaces.mdx (#28314)
Add "@include 'alerts/enterprise-only.mdx'" since namespace is an enterprise feature

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
2024-09-19 18:28:58 -07:00
Mark Lewis
a89f8d5228 Update index.mdx (#28350)
Typo

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
2024-09-19 18:28:50 -07:00