Commit Graph

17875 Commits

Author SHA1 Message Date
korhojoa
39b09b3540 Correct doctype (#22153)
* Correct doctype

This is not a valid doctype, the 'lang' belongs to the html element.

* Create 22153.txt

---------

Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2023-08-15 19:00:29 +00:00
Ethan Lowman
5e5ead45c7 docs: Fix default gcpkms region (#17098) 2023-08-15 14:33:11 -04:00
Chip Stepowski
f0c66d4e26 Add metadata policy requirement for KV-V2 list.mdx (#21812)
* Add metadata policy requirement for KV-V2 list.mdx

Customer requested change as our API docs page does not state the token policy must have access to metadata in the policy when listing KV-V2 secrets. I let them know it exists here: https://developer.hashicorp.com/vault/docs/secrets/kv/kv-v2#acl-rules, in the ACL section, but they wanted to have it added to the API docs as well.

* Update website/content/api-docs/secret/kv/kv-v2.mdx

---------

Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2023-08-15 13:51:44 -04:00
Sarah Chavis
91face4eff convert OSS language to "community" (#22343) 2023-08-15 13:31:52 -04:00
Sarah Chavis
6ce0699301 add note that assumed roles are not supported (#22324) 2023-08-15 13:19:02 -04:00
Tanmay Pereira Naik
2269369229 docs: Update outdated vaultproject.io/docs/ links (#22162)
Signed-off-by: Tanmay Pereira Naik <59953366+tanmay-pnaik@users.noreply.github.com>
Co-authored-by: Brian Shumate <brianshumate@users.noreply.github.com>
2023-08-15 12:59:34 -04:00
Ellie
a5b3b3d6b5 secrets/ldap: upgrade to v0.11.1 for bug fix (#22330)
* secrets/ldap: upgrade to v0.11.1 for bug fix

* add changelog
2023-08-15 08:06:52 -05:00
ram-parameswaran
4c563a27a9 Update ServiceNow Vault documentation (#21450)
Update ServiceNow Vault documentation to explicitly call out from ServiceNow UTAH:
- use the ServiceNow App store
- set the name of the Credential Resolver to match the name of the jar

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
2023-08-14 15:28:00 -07:00
Eoin
718540a632 Update step-down.mdx (#21495)
Updating the vault leader step down documentation to include some extra info about possible failed requests during leader step down

* Add changelog.txt
* Update website/content/docs/commands/operator/step-down.mdx

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
2023-08-14 15:25:39 -07:00
xka5h
0998226dc7 typo fix (#19324) 2023-08-14 15:21:17 -07:00
Chelsea Shaw
b422f3820d UI: fix/simplify linting config (#22310) 2023-08-14 21:14:41 +00:00
Tom Proctor
b07f919b7c Bump consul-template 0.32.0 -> 0.33.0 (#22322)
Also adds a test to ensure the new VAULT_CACERT_BYTES functionality works.
2023-08-14 21:31:29 +01:00
Peter Souter
b2249b07e2 Adding logic to prevent ”non-positive interval for newticker” (WIP) (#10532)
* Adding logic to prevent `”non-positive interval for newticker”`

* Update vault/quotas/quotas_rate_limit.go

---------

Co-authored-by: Violet Hynes <a.xenasis@gmail.com>
Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2023-08-14 15:38:20 -04:00
divyaac
d5b29f697a Chroot Listener (#22304)
* Initial oss-patch apply

* Added changelog

* Renamed changelog txt

* Added the imports to the handler file

* Added a check that no two ports are the same, and modified changelog

* Edited go sum entry

* Tidy up using go mod

* Use strutil instead

* Revert go sum and go mod

* Revert sdk go sum

* Edited go.sum to before

* Edited go.sum again to initial

* Revert changes
2023-08-14 12:35:34 -07:00
Mauro Leggieri
951f1fef1b Add missing option for RSA2048 signature (#22227)
Add support to use the new RSA2048 signature to validate EC2 instances.

Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2023-08-14 15:08:43 -04:00
Marc Boudreau
d66fdb4dfd Use non-persistent Salter for logging test message (#22308)
* use non-persistent Salter for logging test message

* adjust tests based on code changes to ProcessManual

* suggestion for log test message fix (#22320)

* clean up test code and fix misnamed elements

---------

Co-authored-by: Peter Wilson <peter.wilson@hashicorp.com>
2023-08-14 15:00:49 +00:00
Peter Wilson
ab9f0808e0 Updated go-eventlogger to v0.2.3 (#22321) 2023-08-14 09:29:40 -04:00
Sebin John
ebd4002b56 Support ldap authentication in vault agent (#21641)
* Support ldap authentication in vault agent

* Update documentation

* Add changelog entry
2023-08-14 09:18:42 -04:00
Steven Clark
510cce5f81 Adjust the omitempty json flags within CIEPSResponse (#22305)
- Remove the omitempty flag from issuer_ref, and add it to the
   warnings and error fields
2023-08-11 20:17:00 +00:00
Violet Hynes
c6bd2db5b0 Improve docs around enable_rate_limit_response_headers (#22302) 2023-08-11 13:43:28 -04:00
miagilepner
b97ce912cb Fix activity log generator license (#22301) 2023-08-11 15:55:57 +00:00
Peter Wilson
67a167139b documenting missing option (#22296)
* documenting missing option

* added comment about setting to zero
2023-08-11 15:00:27 +01:00
Marc Chua
22ed7aff3e Add IBM 3rd Tools and Fix PR link (#11901)
Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2023-08-11 09:06:48 -04:00
Nick Cabatoff
8c4f3f1c71 Share the same mssql container across all four subtests. (#22293) 2023-08-11 12:59:00 +00:00
miagilepner
a0fcf5e5fd VAULT-17145, VAULT-17146: Write intent logs and event type in testing (#21132)
* add entry and intent log

* test for intent logs
2023-08-11 14:40:03 +02:00
miagilepner
2deba7e3f2 VAULT-15396: Client count testing library (#20774)
* fluent generation of client count testing data input

* godocs

* add VerifyInput and complete testing

* pr fixes

* pr fixes

* buf lint
2023-08-11 14:20:33 +02:00
hashicorp-copywrite[bot]
0b12cdcfd1 [COMPLIANCE] License changes (#22290)
* Adding explicit MPL license for sub-package.

This directory and its subdirectories (packages) contain files licensed with the MPLv2 `LICENSE` file in this directory and are intentionally licensed separately from the BSL `LICENSE` file at the root of this repository.

* Adding explicit MPL license for sub-package.

This directory and its subdirectories (packages) contain files licensed with the MPLv2 `LICENSE` file in this directory and are intentionally licensed separately from the BSL `LICENSE` file at the root of this repository.

* Updating the license from MPL to Business Source License.

Going forward, this project will be licensed under the Business Source License v1.1. Please see our blog post for more details at https://hashi.co/bsl-blog, FAQ at www.hashicorp.com/licensing-faq, and details of the license at www.hashicorp.com/bsl.

* add missing license headers

* Update copyright file headers to BUS-1.1

* Fix test that expected exact offset on hcl file

---------

Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
Co-authored-by: Sarah Thompson <sthompson@hashicorp.com>
Co-authored-by: Brian Kassouf <bkassouf@hashicorp.com>
2023-08-10 18:14:03 -07:00
malinac02
bfe89a40da Display CertificateCard instead of MaskedInput for certificates in PKI (#22160)
* replaced each instance of MaskedInput in PKI with CertificateCard

* modify tests for pki-generate-csr

* add test for pki-issuer-details. modify test for pki-certificate-details

* added test for pki-key-details. modified test for pki-sign-intermediate-form

* update 2 test helper files and modify test for pki-issuer-rotate-root

* update test for certificate-card-test.js, update test for the kubernetes configuration-test.js

* modify pki-action-forms-test.js to no longer look for masked input. expand test for pki-issuer-details-test.js to check for all issuer details

* change CertificateCard to show different format types (PEM, DER, nothing) depending on the value provided. update 2 test files to account for this.

* change CertificateCard arg name from @certficateValue to @data to be more inclusive of different uses of CertificateCard (i.e when used for a private key, not a certificate). add description to certificate-card.js

* change naming for attr.options.masked to attr.options.displayCard to reflect the change from MaskedInput to CertificateCard

* add changelog

* change attribute to isCertificate to better fit the title of the component CertificateCard. edit pki-certificate-details.hbs to get rid of extraneous code
2023-08-10 16:48:48 -07:00
Max Bowsher
ba215dbc12 Major overhaul of vault operator generate-root CLI help (#18520)
* Major overhaul of `vault operator generate-root` CLI help

Resolves #15252

A major overhaul of the `vault operator generate-root` CLI help to
surface the fact that it is actually six separate commands in one,
rather than requiring users to independently deduce this mental model
themselves.

In the process of doing so, also standardize some terminology:

* Fix places which used the phrase "operational token" instead of
  "operation token" to be consistent with the prevailing terminology.

* Fix places which used the phrase "recovery operation token" instead of
  "recovery token" to be consistent with the prevailing terminology.

This PR currently focusses on the CLI help, but following review and
feedback, I assume I'll need to replicate many of the same changes in
website/content/docs/commands/operator/generate-root.mdx as well.

* Fix some tab characters which should have been spaces

* Update command/operator_generate_root.go

---------

Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2023-08-10 20:26:20 +00:00
Tom Proctor
c7fd4978ba Docs: Changelog for MSSQL EKM Provider v0.2.2 (#22272) 2023-08-10 20:33:03 +01:00
Sam Linville
19d840a462 Docs: Add ADP requirement callout to PKCS#11 doc (#17815)
* Add ADP requirement callout

Add a callout to the top of the page to note that this feature requires Vault ENT + ADP

* rephrase

* Update website/content/docs/enterprise/pkcs11-provider/index.mdx

---------

Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>=
2023-08-10 11:56:41 -07:00
hc-github-team-secure-vault-core
dfffe29492 Update hashicorp/vault-plugin-auth-azure to v0.16.0 (#22277)
Update includes dependency upgrades and WIF support
---------

Co-authored-by: hc-github-team-secure-vault-ecosystem <hc-github-team-secure-vault-ecosystem@users.noreply.github.com>
2023-08-10 14:27:20 -04:00
Violet Hynes
7e5f2cebb7 VAULT-14644 Add support for Azure WIF auth to auto-auth (for Agent and Proxy) (#22264)
* VAULT-14644 first draft of changes for WIF support

* VAULT-14644 Potentially finalize Agent work for WIF support

* VAULT-14644 finishing touches

* VAULT-14644 finishing touches

* VAULT-14644 remove extra log

* VAULT-14644 better docs

* VAULT-14644 changelog

* VAULT-14644 review feedback
2023-08-10 10:28:13 -04:00
Steven Clark
8f646d52be Refactor sign-intermediate API response (#22269)
* Refactor sign-intermediate API response

 - Allow the sign-intermediate response handling code to be shared
   across different API calls.

* Add missing cieps.go
2023-08-10 09:58:07 -04:00
Marc Boudreau
b07eff0998 VAULT-18934: Record individual metrics for each Auditing Event Pipeline (#22266)
* add sink wrapper to take telemetry measures

* make use of sinkwrapper
2023-08-10 09:49:55 -04:00
Khanh Quach
2590052f9c grammar fix (#18029)
Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2023-08-10 13:09:32 +00:00
Lars Lehtonen
118c82b43f command/healthcheck: fix dropped error (#22267) 2023-08-09 16:28:53 -04:00
Peter Wilson
32b6a5c840 VAULT-18157: Audit events: Log Test Message (#22263)
* manually crank the nodes to log a test message (if we have them configured)
* try to extract the duplicated manual processing of nodes
2023-08-09 21:04:31 +01:00
Pascal Reeb
24a1941b35 chore(api-docs): remove vc since it's unmaintained (#16623)
Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2023-08-09 18:19:26 +00:00
anxjok
a14a9a781f clarify when a entity is created (#22233)
* clarify when a entity is created

* Create 22233.txt

---------

Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2023-08-09 09:33:09 -04:00
Alexander Scheel
d4e402d597 Docs CIEPS Configuration (#22259)
* Clarify wording, add missing expiration fields

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

* Add API docs on CIEPS configuration

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

* Fix ToC, headers to include EnterpriseAlert

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

* Update website/content/api-docs/secret/pki.mdx

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

* Update website/content/api-docs/secret/pki.mdx

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

---------

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-08-09 09:27:06 -04:00
Alexander Scheel
04a081226d Add docs on CIEPS issuance (#22098)
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-08-09 08:01:17 -04:00
Austin Gebauer
a70aaf24c0 secrets/db: improves error logs for static role rotation (#22253)
* secrets/db: improves error logs for static role rotation

* use logger.With to add incremental context

* adds changelog
2023-08-08 16:28:31 -07:00
Raymond Ho
f8dd46acb8 Address LDAP issues (#22249) 2023-08-08 13:49:26 -07:00
Marc Boudreau
263614051d Audit Logging Using go-eventlogger Under Experiment Flag (#22234)
* add hashfunc field to EntryFormatter struct and adjust NewEntryFormatter function and tests
* add HeaderAdjuster interface and require it in EntryFormatter
* adjust all references to NewEntryFormatter to include a HeaderAdjuster parameter
* replace use of hash function in AuditedHeadersConfig's ApplyConfig method with Salter interface instance
* export audit.NewEvent function and adjust function signature
* add eventlogger based handling in LogRequest
* adjust eventlogger.Broker according to number of backends
* record auditing metrics
* only send events if a pipeline is registered
* remove TODO comments
* remove unused struct and method
* move setup of audited headers earlier into Core's initialization
* adjust entry_formatter to properly handle request headers
* protect against potential segmentation fault
* moved common code out of both switch cases
* protect against case where a.Data.Request or a.Data.Request.Headers is nil

---------

Co-authored-by: Peter Wilson <peter.wilson@hashicorp.com>
2023-08-08 21:01:28 +01:00
claire bontempo
6b6b0050fe remove on input event (#22243) 2023-08-08 12:18:15 -07:00
Ville Vesilehto
eefd4529e9 chore: avoid unnecessary byte/string conversion calls (#21854)
* chore: avoid unnecessary conversion calls

* add changelog entry

---------

Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2023-08-08 17:50:54 +00:00
Mike Palmiotto
4c8cc87794 Automatically track subloggers in allLoggers (#22038)
* Automatically track subloggers in allLoggers

This PR introduces a new interface called `SubloggerAdder` for tracking
allLoggers across startup phases.

The interface enables us to register a single `SubloggerHook` during
initial logger creation and hand off management of `allLoggers` during
the three phases we need to handle:

- Before `CoreConfig` is created, the `SubloggerHook`
  (`AppendToAllLoggers`) appends new subloggers to
  `ServerCommand.allLoggers`.

- After `CoreConfig` is created and before `NewCore` returns, new subloggers
  are added to `CoreConfig.AllLoggers`. Intermediate state must also be
  kept in sync within NewCore to track new subloggers before we return
  to the server command and register the `Core.SubloggerAdder`
  implementation.

- After `NewCore` returns to the server command, we register Core as the
  implementer of `ServerCommand.SubloggerAdder` ensuring that all new
  subloggers are appended to `Core.allLoggers`.

* Wire up the sublogger hook in NewTestLogger
2023-08-08 17:47:09 +00:00
Kianna
bfef207711 UI: Add missing allowed_user_ids to role form in PKI (#22191) 2023-08-08 09:58:57 -07:00
John-Michael Faircloth
a1a5be97e2 docs/db: fix outdated static role information (#22239) 2023-08-08 11:02:53 -05:00