20484 Commits

Author SHA1 Message Date
Kuba Wieczorek
619843589b
CI: Pin VCM version used in Run Autopilot upgrade tests workflow (#28820) 2024-10-31 16:51:04 +00:00
Altabay-HashiCorp
76f22fac24
fix url typo in removing seal ha (#28818) 2024-10-31 09:49:26 -04:00
miagilepner
d717b48f90
fix flaky TestRaft_Removed (#28817) 2024-10-31 14:48:22 +01:00
Luciano Di Lalla
7d89f7104e
Docs/ldilalla hc patch 1 (#28815)
* Update CHANGELOG.md for 1.18.1, 1.17.8 and 1.16.12

* add HCSEC advisory

---------

Co-authored-by: Mark Collao <106274486+mcollao-hc@users.noreply.github.com>
2024-10-30 20:05:06 -04:00
Melody
9b3cc9b069
docs/vso: fix backwards v1 and v2 links (#28733)
Co-authored-by: Theron Voran <tvoran@users.noreply.github.com>
2024-10-30 16:42:36 -07:00
Sarah Chavis
6e234a8de6
Add note about new KV functionality in GUI (#28812) 2024-10-30 15:40:51 -07:00
Angel Garbarino
120497d813
Remove ember-cli-page-object: mount-backend-form (#28799)
* first round, there shall be more

* fix secret test

* more clean up

* maybe last round of clean up?

* this is going to take a while

* all the things or more of them at least

* this is the song that never ends...

* ... it goes on and on my friend.

* clean up clean up everybody lets clean up

* rename mount helper to mountBackend

* clean up 🧹

* address pr comments

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2024-10-30 20:15:59 +00:00
miagilepner
fedc0b127f
Fix VAULT_CACERT environment variable (#28727) 2024-10-30 19:00:07 +01:00
miagilepner
41c0a3040b
VAULT-31748: add removable node HA backend interface and raft implementation (#28726) 2024-10-30 18:19:49 +01:00
claire bontempo
17d29f983c
UI: Upgrade Ember data 5.3.2 (and upgrade minor versions of ember-source and ember-cli) (#28798)
* upgrade ember-data 5.3.2, uninstall legacy compat, upgrade ember-cli, ember-source

* use query instead of findAll for auth methods, update tests

* set mutableId for kmip

* show generated private key data before transitioning to details

* update kv metadata test

* remove deprecated methods from path help service

* add changelog, update readme version matrix

* remove toggle template helper
2024-10-30 09:10:22 -07:00
Ken Keller
cc62bf2ac2
Update index.mdx (#28802)
fixed some lower case instances of Helm
2024-10-30 10:06:47 -05:00
claire bontempo
c1b35778d7
display error message if no key name (#28801) 2024-10-29 16:34:57 -06:00
claire bontempo
9d354199ac
remove copy about wiping storage (#28800) 2024-10-29 16:34:24 -06:00
Ryan Cragun
31b139c8ce
pipeline: include the version in the dynamic config key (#28793)
Cache scopes allow other branches to inherit default branch scopes,
which means that release branches can restore a key from main. Instead,
we now include the vault version as part of the cache key to ensure
we don't include versions that are incompatible with our version.

Signed-off-by: Ryan Cragun <me@ryan.ec>
2024-10-29 16:02:00 +00:00
Yoko Hyakuna
68ed4ac841
Remove duplicated text (#28794) 2024-10-29 08:43:37 -07:00
miagilepner
195dfca433
VAULT-31264: Limit raft joins (#28790)
* Switch from an unbounded Map to an LRU, 429 when exceeding it's size, and repeat challenges to the same server rather than encrypting new ones

* Prune old challenges

* Remove from pending only if the answer is correct

* Add a unit test that validates 429s, delays, and eviction of old entries

* Switch to using a flat token bucket from x/time/rate

* remove from LRU on each challenge write

* Remove sleep, simplify unit test

* improve const names

* additional tests

* max answer size

* add locking to prevent multiple new challenges

* remove log line

---------

Co-authored-by: Scott G. Miller <smiller@hashicorp.com>
2024-10-29 10:14:44 +01:00
Victor Rodriguez
2eaae5e87b
Update to Go 1.22.8. (#28786) 2024-10-25 17:36:55 -04:00
vinay-gopalan
4688583754
upgrade GCP Auth to v0.19.1 (#28782) 2024-10-25 20:18:38 +00:00
vinay-gopalan
c62d24dfc7
upgrade GCP Secrets to v0.20.1 (#28781) 2024-10-25 20:12:29 +00:00
hc-github-team-secure-vault-core
a384eac192
Update vault-plugin-secrets-openldap to v0.14.3 (#28780)
* Update vault-plugin-secrets-openldap to v0.14.3

* Add changelog

---------

Co-authored-by: hc-github-team-secure-vault-ecosystem <hc-github-team-secure-vault-ecosystem@users.noreply.github.com>
2024-10-25 19:54:45 +00:00
Sarah Chavis
cccad7d53f
minor text edits and update includes to use shared partials for log level and log format (#28771) 2024-10-25 10:06:33 -07:00
Sarah Chavis
f439a1eece
Refresh CLI docs: vault agent family (#28770)
* save progress

* fix file name

* save progress

* save progress

* remove uneeded subheader

* Fix build error

* fix another build error
2024-10-25 09:47:17 -07:00
divyaac
0923064dff
Added Stubs to stop breakage of Ent (#28772) 2024-10-25 09:14:19 -07:00
Lucy Davinhart || Strawb System
dec3bcc1aa
docs: sys/internal/counters/activity, explain deprecation for current_billing_period (#28773)
per discussion
https://hashicorp.slack.com/archives/CPEPB6WRL/p1729786785076429
the reason this parameter is deprecated is because it's no longer required. make that clear in the docs.
2024-10-25 14:31:06 +02:00
Steven Clark
b4c332626f
Fix a race condition in mount lookups (#28767) 2024-10-24 21:18:36 +00:00
divyaac
5a372eed2c
Creates Skeleton RPC to send global client data to primaries (#28761)
* OSS Changes Patch

* Make proto

* Change OSS to CE
2024-10-24 18:51:12 +00:00
Jonathan Frappier
3349dc745d
Add SAML example to docs (#27121)
* Add SAML example

* Docs/add saml edits (#28732)

* editing suggestions (start)

* save edits

* Update website/content/docs/auth/saml/adfs.mdx

* Update website/content/docs/auth/saml/index.mdx

* Update website/content/docs/auth/saml/adfs.mdx

* Update website/content/docs/auth/saml/troubleshoot-adfs/index.mdx

---------

Co-authored-by: Jonathan Frappier <92055993+jonathanfrappier@users.noreply.github.com>

* Fix content errors

* missed one >_<

---------

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
2024-10-24 11:47:33 -07:00
Kianna
ad55f8aaa3
Restructure monitor command docs and add monitor partial (#28753)
* Restructure and add partial

* Update website/content/docs/commands/monitor.mdx

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

* Update website/content/docs/commands/monitor.mdx

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

* Update website/content/partials/cli/monitor/flags/log-format.mdx

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

* Update website/content/partials/cli/monitor/flags/log-format.mdx

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

* Update website/content/partials/cli/monitor/flags/log-format.mdx

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

* Update website/content/partials/cli/monitor/flags/log-level.mdx

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

* Update website/content/partials/cli/monitor/flags/log-level.mdx

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

* Update website/content/partials/cli/monitor/flags/log-level.mdx

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

* Address feedback

---------

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
Co-authored-by: Yoko Hyakuna <yoko@hashicorp.com>
2024-10-24 11:22:03 -07:00
Tin Vo
48cf1a1809
VAULT-21710 - prevent duplicate audit file_path targets (#28751)
* updating audit file_path duplication

* update test

* updating tests

* fixing go test errors

* adding go test doc for TestCore_EnableExistingAudit

* adding go test doc for TestCore_EnableExistingAudit

* adding go test doc for TestCore_EnableExistingAudit

* adding changelog

* adding suggested comments
2024-10-24 10:54:48 -07:00
Scott Miller
415d260995
Support trimming trailing slashes via a mount tuneable to support CMPv2 (#28752)
* Support trimming trailing slashes via a mount tuneable to support CMPv2

* changelog/

* Perform trimming in handleLoginRequest too

* Eagerly fetch the mount entry so we only test this once

* Add a mount match function that gets path and entry

* Update vault/request_handling.go

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

* more docs

* Some patches (from ENT) didnt apply

* patch fail

* Update vault/router.go

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

* PR feedback

* dupe

* another dupe

* Add support for enabling trim_request_trailing_slashes on mount creation

* Fix read mount api returning configuration for trim_request_trailing_slashes

* Fix test assertion

* Switch enable and tune arguments to BoolPtrVal to allow end-users to specify false flag

* Add trim-request-trailing-slashes to the auth enable API and CLI

---------

Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2024-10-24 10:47:17 -05:00
miagilepner
314874c2b1
Remove newline to fix enterprise merge (#28758) 2024-10-24 14:25:39 +02:00
Ryan Cragun
ce5885279b
VAULT-31181: Add pipeline tool to Vault (#28536)
As the Vault pipeline and release processes evolve over time, so too must the tooling that drives them. Historically we've utilized a combination of CI features and shell scripts that are wrapped into make targets to drive our CI. While this 
approach has worked, it requires careful consideration of what features to use (bash in CI almost never matches bash in developer machines, etc.) and often requires a deep understanding of several CLI tools (jq, etc). `make` itself also has limitations in user experience, e.g. passing flags.

As we're all in on Github Actions as our pipeline coordinator, continuing to utilize and build CLI tools to perform our pipeline tasks makes sense. This PR adds a new CLI tool called `pipeline` which we can use to build new isolated tasks that we can string together in Github Actions. We intend to use this utility as the interface for future release automation work, see VAULT-27514.

For the first task in this new `pipeline` tool, I've chosen to build two small sub-commands:

* `pipeline releases list-versions` - Allows us to list Vault versions between a range. The range is configurable either by setting `--upper` and/or `--lower` bounds, or by using the `--nminus` to set the N-X to go back from the current branches version. As CE and ENT do not have version parity we also consider the `--edition`, as well as none-to-many `--skip` flags to exclude specific versions.

* `pipeline generate enos-dynamic-config` - Which creates dynamic enos configuration based on the branch and the current list of release versions. It takes largely the same flags as the `release list-versions` command, however it also expects a `--dir` for the enos directory and a `--file` where the dynamic configuration will be written. This allows us to dynamically update and feed the latest versions into our sampling algorithm to get coverage over all supported prior versions.

We then integrate these new tools into the pipeline itself and cache the dynamic config on a weekly basis. We also cache the pipeline tool itself as it will likely become a repository for pipeline specific tooling. The caching strategy for the `pipeline` tool itself will make most workflows that require it super fast.


Signed-off-by: Ryan Cragun <me@ryan.ec>
2024-10-23 15:31:24 -06:00
Deniz Onur Duzgun
afd023e41c
ci: update the security-scanner gha token (#28410)
* ci: update the security-scanner gha token

* fix codeql version

---------

Co-authored-by: mickael e <mickael@hashicorp.com>
2024-10-23 13:53:35 -06:00
miagilepner
4439ee8798
Fix Windows chown error (#28748)
* noop for windows chown

* changelog
2024-10-22 14:57:26 +02:00
claire bontempo
9097689d2a
Adds copy button to entity, alias and mfa method ID fields (#28742)
* make id buttons copyable

* add changelog
2024-10-21 12:48:00 -07:00
Luis (LT) Carbonell
efd6148f43
Fix typo in changelog (#28743) 2024-10-21 15:12:31 -04:00
Yoko Hyakuna
a3eef86f47
Format fixes & tweaks (#28731) 2024-10-21 08:35:37 -07:00
Kit Haines
c0b2a6d370
Add enrollment protocol sublinks. (#28737) 2024-10-21 09:18:17 -04:00
Yoko Hyakuna
a2390d3234
[Docs] Add usage metrics page (#28723)
* Add UI screenshots

* Add 'usage metrics' page

* Align the step instruction and its screenshot

* Additional notes

* Add link to API docs
2024-10-18 08:18:45 -07:00
Theron Voran
8f1850baa3
sdk: updating to docker v27.2.1 (#28456)
Also update to vault-testing-stepwise v0.3.2
2024-10-17 14:14:35 -07:00
Violet Hynes
33248ce9a1
VAULT-31789 Update proxy-proto version to 0.8.0 (#28729) 2024-10-17 15:46:20 -04:00
akshya96
435ecc63ba
Add tokens to local path (#28722) 2024-10-17 11:13:41 -07:00
Alex
0ab970cd93
Upgrade HDS to 4.13.0 (#28709) 2024-10-17 11:04:40 -07:00
claire bontempo
1fbbf9d76b
UI: Ember-data upgrade 5.3.2 prep: use custom service instead of extending ember-data store (#28695)
* rename store to pagination, remove store extension

* initial update of service test

* remove superfluous helper

* replace store with pagination service in main app

* update kmip engine syntax

* add pagination to kmip engine

* update to pagination in config-ui engine

* update sync engine to use pagination service

* use pagination service in kv engine

* use pagination service in ldap engine

* use pagination in pki engine

* update renaming clearDataset functions

* link to jira VAULT-31721

* remove comment
2024-10-17 10:00:57 -07:00
Angel Garbarino
f2041b00e5
Remove decodeURIComponent method for KVv2 secret path on list view (#28698)
* remove encoding for KVv2

* test coverage

* changelog

* validations

* Revert "validations"

This reverts commit d6fd291d856a2005ed8f3a1a4f0f42add4ecb272.

* update subtext for secret path

* Update list.js

* Update secret-edit.js

* test coverage for data-octets

* Update list-directory.js

* fix modelForm test

* amend subText

* test selector things
2024-10-16 23:06:52 +00:00
Adrian Todorov
a78d535945
update wording of Nomad Client Counting FAQ to reflect the new Integration (#28685)
* update wording of Nomad Client Counting FAQ to reflect Workload Identity and other updates

* Update computing-clients.mdx

* Update website/content/partials/faq/client-count/computing-clients.mdx

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

* Update website/content/partials/faq/client-count/computing-clients.mdx

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

---------

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
2024-10-16 12:35:38 -07:00
Steven Clark
bce085bd3f
Fix issue building urls with IPv6 IPs for ACME http-01 challenges (#28718)
* Fix ACME http-01 challenges for IPv6 IPs

 - We weren't properly encapsulating the IPv6 IP within the url provided
   to the http client with [].

* Add cl

* Cleanup a test println
2024-10-16 14:26:44 -04:00
Sarah Chavis
d3ef02b778
VAULT-29153: Update docs with IPv6 compliance info (#28707)
* update matrix doc and add IPv6 info

---------

Co-authored-by: Ryan Cragun <me@ryan.ec>
2024-10-15 16:34:16 -07:00
Sarah Chavis
9f2c4353ae
[DOCS] Add missing metric: vault.barrier.estimated_encryptions (#28708)
* Create placeholders for missing metric

* update metric info and rewrite rotation doc

* Deal with erroneous content error
2024-10-15 16:29:25 -07:00
Rachel Culpepper
9795c05d97
add error info to internal error (#28714) 2024-10-15 17:16:57 +00:00