Commit graph

19603 commits

Author SHA1 Message Date
Kevin Schoonover
c0ea7b1a35
reload service registration configuration on SIGHUP (#17598)
* add reloading service configuration

* add changelog entry

* add tests

* fix typo

* check if config.ServiceRegistration is nil before signaling

* add changes for deregistering service on nil config with failing tests

* fix tests by decreasing reconcile_timeout + setting consul agent tokens

* fix races

* add comments in test

---------

Co-authored-by: Marc Boudreau <marc.boudreau@hashicorp.com>
2024-05-09 17:13:14 -04:00
Angel Garbarino
077c70fc1f
Enabling Secrets Sync for HVD (#26841)
* Allow Managed clusters to see Secrets Sync Overview and Sidebar nav (#26649)

* update badge text and allow hvd on secrets sync views

* update logic in Secrets Sync overview and cta for hvd.

* spacing

* rearrange based on pr feedback

* fix return on badgeText and cluster nav test

* fix landing cta tests

* update test to reflect new changes

* moved call to feature-flags from application route to the service to match patterns

* add managed test coverage on overview component test and remove premium feature so cta message appplies to both managed and non-managed clusters

* missed service name and unskip admin test

* clean up

* fix tests

* flags test fix

* Rename isManaged and managedNamespaceRoot (#26697)

* renames

* lowercase HVD to match

* missed some

* test failure

* [Secrets Sync] enable access to Sync clients page for HVD clusters (#26713)

* feat: split client counts navbar into separate component

* acceptance/clients/counts/overview-test: remove tests now covered by int tests

* clients counts route: rename isSecretsSyncActivated to showSecretsSync

* sync clients page: show unactivated state unless sync client history or feature is activated

* client counts navbar: show sync tab only if client history or is /able to be/ activated

* clients overview page: only show sync charts if activated

* fix: rename isManaged to isHvd

* acceptance/counts/overview-test: add HVD tests

* acceptance/counts/overview-test: clean up unused cruft

* aceptance/clients/counts/overview-test: ensure we dont get false negatives

* chore: move Clients::Error to Clients::Counts::Error

* chore: calculate showSecretSync in page component instead of route

* chore: add copyright headers

* acceptance/clients/counts/overview-test: stub activated flags to fix test

* [Secrets sync] update sync test selectors (#26824)

* acceptance/clients/counts/overview-test: use imported test selectors

* general-selectors: add missing emptyStateSubtitle property

* acceptance/clients/counts/sync: nest tests in top level module for easier test runs

* Add permissions check to show/hide activate button (#26840)

* add permissions check to flags service and consume in overview template

* add back missing refresh

* fix test failures

* add test coverage

* clean up

* address flaky test

* grr

* address test failures

* add changelog

* try to fix test failure only on gh

* fix fetch to match previous implementation of feature-flags

* fix failing test

* update comment

---------

Co-authored-by: Noelle Daley <noelledaley@users.noreply.github.com>
Co-authored-by: clairebontempo@gmail.com <clairebontempo@gmail.com>
2024-05-09 15:11:26 -06:00
Rachel Culpepper
a7b6f3490f
Add cert metadata fields for tidy (#26867)
* add cert metadata fields for tidy

* fix import

* add missing fields to schema

* add new fields to expected value

* change error
2024-05-09 15:12:23 -05:00
claire bontempo
eabb8e10a0
UI: Add max ttl to acme certificates (#26906)
* add max ttl to acme

* change test title?

* hide toggle

* update sign-intermediate

* add enforce_leaf_not_after_behavior
2024-05-09 19:44:21 +00:00
dependabot[bot]
28612efd26
Bump hashicorp/vault-action from 2.8.0 to 3.0.0 (#26847)
Bumps [hashicorp/vault-action](https://github.com/hashicorp/vault-action) from 2.8.0 to 3.0.0.
- [Release notes](https://github.com/hashicorp/vault-action/releases)
- [Changelog](https://github.com/hashicorp/vault-action/blob/main/CHANGELOG.md)
- [Commits](9f522b8598...d1720f055e)

---
updated-dependencies:
- dependency-name: hashicorp/vault-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2024-05-09 15:13:05 -04:00
divyaac
5a3fcf8e91
Client Count Docs Change (#26883)
* Moved upgrade warning to 1.6 or below upgrades

* Edited formatting

* Update formatting
2024-05-09 11:44:35 -07:00
Adam Rowan
6f946bc2af
Update interoperability-matrix.mdx (#26889)
Updating the Interoperability Matrix to account for new Vault KMIP and transit integrations
2024-05-09 11:20:49 -07:00
Peter Wilson
8778240665
VAULT-26466: audit - docs for including correlation ID headers by default (#26778)
* Docs for correlation ID changes

* Updates

* Update website/content/docs/audit/index.mdx

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

* Update website/content/docs/audit/index.mdx

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

* Update website/content/docs/audit/index.mdx

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

* Update website/content/docs/audit/index.mdx

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

* Create upgrade 1.17 doc and add audit headers info

* Update website/content/docs/audit/index.mdx

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

* Update website/content/docs/audit/index.mdx

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

* Update website/content/docs/audit/index.mdx

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

* Update website/content/docs/upgrading/upgrade-to-1.17.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-05-09 17:58:01 +00:00
Violet Hynes
73506d1395
Update hashicorp/set-product-version to version 2 (#26908) 2024-05-09 13:48:57 -04:00
Mark Collao
cee94e6824
update changelog for HCSEC-2024-10 (#26864)
* update changelog for HCSEC-2024-10

* update url
2024-05-09 13:09:03 -04:00
Chelsea Shaw
31454c9633
UI: update typescript imports (#26904) 2024-05-09 11:41:45 -05:00
Victor Rodriguez
4a9ffe24d4
Build the HSM binary for running ENT tests that require it. (#26902) 2024-05-09 12:08:36 -04:00
Steven Clark
0637f5e316
PKI: Change sign-intermediate to truncate notAfter by default (behavior change) (#26796)
* PKI: Change sign-intermediate to truncate notAfter by default

 - The PKI sign-intermediate API allowed an end-user to request a TTL
   value that would extend beyond the signing issuer's notAfter. This would
   generate an invalid CA chain when properly validated.
 - We are now changing the default behavior to truncate the returned certificate
   to the signing issuer's notAfter.
 - End-users can get the old behavior by configuring the signing issuer's
   leaf_not_after_behavior field to permit, and call sign-intermediary
   with the new argument enforce_leaf_not_after_behavior to true. The
   new argument could also be used to enforce an error instead of truncating
   behavior if the signing issuer's leaf_not_after_behavior is set to err.

* Add cl

* Add cl and upgrade note

* Apply suggestions from code review

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

---------

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
2024-05-09 11:22:04 -04:00
Violet Hynes
b16b94a72a
VAULT-25341 Address issue where having no permissions to renew caused auto-auth to attempt to renew with no backoff (#26844)
* VAULT-25341 Address issue where having no permissions to renew caused Agent and Proxy auth to attempt to renew with no backoff

* Fiddle with go.mod changes that shouldn't have happened

* VAULT-25341 small cleanup and extra test

* VAULT-25341 backoff only in error case

* VAULT-25341 godocs

* VAULT-25342 changelog

* Update command/agent_test.go

Co-authored-by: divyaac <divya.chandrasekaran@hashicorp.com>

* VAULT-25341 rename file audit

---------

Co-authored-by: divyaac <divya.chandrasekaran@hashicorp.com>
2024-05-09 11:12:42 -04:00
Ellie
84d734d673
[docs] document known issue for azure secrets engine failing on role creation (#26881)
* document known issue for azure secrets engine failing on role creation

* fix empty space

* remove new line

* add workaround

* remove space

---------

Co-authored-by: Tony Wittinger <anwittin@users.noreply.github.com>
2024-05-09 09:48:22 -05:00
Steven Clark
fe2b4c6f7a
PKI: Allow operators to increase the maximum TTL for ACME issued certificates (#26797)
* PKI: Allow operators to increase the maximum TTL for ACME issued certificates

* Add cl
2024-05-09 10:41:28 -04:00
claire bontempo
477aa73c75
remove slash (#26898) 2024-05-09 14:27:33 +00:00
Ellie
e9c20a4863
Upgrade vault-plugin-secrets-azure to 0.17.2 to include a bug fix for azure role creation (#26896)
* Upgrade vault-plugin-secrets-azure to 0.17.2 to include a bug fix for azure role creation

* add changelog
2024-05-09 09:14:24 -05:00
Mike Palmiotto
2092389963
Drop unused dependencies dir (#20482)
* Drop unused dependencies dir

* Get rid of deps_upgrade.py
2024-05-09 13:57:36 +00:00
Victor Rodriguez
bfbc926f0a
Add NewTestLoggerWithSuffix for tests that need multiple log files. (#26879) 2024-05-09 09:46:34 -04:00
claire bontempo
d4bb967148
add double quotes to fix header (#26880) 2024-05-09 10:23:48 +01:00
Ryan Cragun
842dff8342
[QT-711] actions: use next generation CRT actions (#26882)
Update the Github Actions pins to use the next generation of actions
that are supported by CRT.

In some cases these are simply to resolve Node 16 deprecations. In
others, we can now use `action/upload-artifact@v4` and
`actions/download-artifact@v4` since the next generation of actions like
`hashicorp/actions-docker-build@v2` and
`hashicorp/actions-persist-metadata@v2` use the `v4` versions of these.

Signed-off-by: Ryan Cragun <me@ryan.ec>
2024-05-08 15:17:20 -06:00
Steven Clark
259cfbf618
Add missing delegated_auth_accessors config field to /sys/mounts/<path> response (#26876)
* Add missing delegated_auth_accessors config field to /sys/mounts/<path> response

 - The field hadn't been properly populated in the JSON struct being returned
   through the API response, but had been properly set in the stored structs
   in the backend.
 - Add missing update to the command tune docs for the -delegated-auth-accessors
   option that existed
 - Add -delegated-auth-accessors to the secret enable vault command along with
   a docs update

* Add cl

* Fix documentation, using a comma separated list does not work

* Apply suggestions from code review

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

* Drop plural on doc update

---------

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
2024-05-08 19:58:46 +00:00
hc-github-team-secure-vault-core
6a905be5ec
Update vault-plugin-secrets-kv to v0.18.0 (#26877)
* Automated dependency upgrades

* Add changelog

---------

Co-authored-by: hc-github-team-secure-vault-ecosystem <hc-github-team-secure-vault-ecosystem@users.noreply.github.com>
2024-05-08 11:43:44 -05:00
miagilepner
8045154cb0
VAULT-24582: ACME client count regeneration (#26366)
* do regeneration

* fix test

* fix regeneration

* call precomputed query worker directly

* cleanup

* whoops, = instead of :=

* update regeneration intent log test

* started testing

* testing and fixes

* add test for existing intent log, and update log levels

* remove unrealistic test
2024-05-08 15:41:00 +02:00
claire bontempo
7874f06ca3
UI: Only include upgrades with previous versions (#26870)
* only include upgrades with previous versions

* update tests

* fix prettier linting

* update counts test

* why are you failing??

* match key order of expected object to actual

* timezones -_-

* attempt to fix flaky openapi test again
2024-05-08 13:29:07 +00:00
Melanie Sumner
7880616c18
landmark elements must have unique accnames (#26862) 2024-05-08 14:19:41 +01:00
Melanie Sumner
459e62a6bc
bugfix: dashboard overview heading levels (#26873) 2024-05-08 14:19:32 +01:00
Chelsea Shaw
2d5ac4b30a
UI: fix flaky openAPI explorer filter test (#26871)
* weird attempt to fix flaky test

* remove for loop
2024-05-08 12:47:48 +01:00
Peter Wilson
d66461ef07
VAULT-26466: audit - include correlation ID headers by default (#26777)
* Include correlation ID header by default for audit

* changelog

* casing adjustment
2024-05-08 12:36:00 +01:00
Peter Wilson
b64b9b15f0
Consistency using HMAC'd vs HMAC'ed (#26875) 2024-05-08 11:13:23 +00:00
Peter Wilson
193c8ed9cd
NewTestCluster: follow up (#26874)
* make sure file_path is supplied inside options

* don't add all audit backends to begin with
2024-05-08 11:57:42 +01:00
claire bontempo
1481dc44b0
UI: fix flaky enterprise nav test (#26869)
* fix flaky nav test

* just check for href attribute
2024-05-07 21:11:10 +01:00
claire bontempo
1e8eefade1
UI: wrap client count card in permission conditional (#26848)
* consistent timestamp format

* wrap client count card in permissions

* add test

* add changelog

* move tests into module, add more!

* final test cleanup, stub permissions manually without helper

* use current_billing_period for dashboard, add tests

* update mirage to handle new client param

* Update ui/app/components/dashboard/client-count-card.js
2024-05-07 17:45:42 +00:00
divyaac
57e6795c0c
Updated consul-template version (#26863)
* Updated consul-template version

* Added changelog

* Update changelog/26863.txt

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

---------

Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2024-05-07 17:25:18 +00:00
Chelsea Shaw
c02787cd8f
UI: upgrade Ember to 5.4 (#26708) 2024-05-07 11:34:21 -05:00
Peter Wilson
ec1f261db9
NewTestCluster: default to enabling a 'discard' file audit device when none are configured (#26861)
* Removed unrequired noop audit factory declaration

* Default NewTestCluster to using file audit device (discard)
2024-05-07 16:49:20 +01:00
kpcraig
bef178b4a5
Add ExternalID support to AWS Auth STS configuration (#26628)
* add basic external id support to aws auth sts configuration

---------

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
2024-05-07 11:10:57 -04:00
Jason O'Donnell
6a351401e6
ui: fix broken helper link for web command (#26858)
* ui: fix broken helper link for web command

* changelog
2024-05-07 15:07:38 +00:00
Mike Palmiotto
2d75711019
make proto 1.34.1 (#26856) 2024-05-07 14:33:18 +00:00
Mike Palmiotto
195b00e77f
Bump cockroach-go to v2.3.8 (#26842)
PR https://github.com/cockroachdb/cockroach-go/pull/179 addresses
CVE-2024-27289 and CVE-2024-27304 by bumping jackc/pgx to v4.18.3.

This PR pulls in these changes by updating our cockroach-go dep to
v2.3.8.

Resolves: VAULT-26033
2024-05-07 09:20:49 -04:00
Peter Wilson
e9e79b4c16
Tweak text to clarify (#26804) 2024-05-07 11:42:07 +01:00
Chelsea Shaw
d4671a98aa
UI: Update behavior when deleting nested secret from list (#26845)
* Update error states on secret list template

* Remove usage of navToNearestAncestor mixin

* don't throw error on list when 404

* Update test with expected behavior

* cleanup

* Add changelog
2024-05-06 21:04:37 +00:00
claire bontempo
843270df7c
UI: Add 1.17 changes to upgrade alert (#26843)
* add upgrade alert for 1.17

* add acme clients to modal export text

* add to mirage for tests

* add test
2024-05-06 18:56:37 +01:00
Meggie
f298ef763a
Fix docker image in developer quickstart (#26805)
We were pointing to the deprecated official images (https://hub.docker.com/_/vault) instead of the verified publisher images (https://hub.docker.com/r/hashicorp/vault) which is the one we publish `latest` to.

See also https://github.com/hashicorp/vault/pull/23581
2024-05-06 11:22:25 -04:00
benz0
758c967369
Update tcp.mdx (#26816)
per customer request in support ticket #141025 I've updated the description of tls_disable_client_certs to provide clarification.

previous pr for this change was approved but needed to be resubmitted because of problems with my GH account.  See #26601
2024-05-06 11:03:13 -04:00
Chelsea Shaw
9a9086ef4b
UI: Fix sync test (#26820)
* Add mirage response for internal/counters/config to set a static billingStartTimestamp before STATIC_NOW

* Export config response from mirage handler
2024-05-06 14:37:46 +00:00
claire bontempo
b58084291e
install ember-sinon-qunit (#26807)
* install ember-sinon-qunit

* replace stubbed timestamps part 1

* replace clients/ timestamp stubs

* actually stub correctly

* oops got a little excited, these dont need replacing

* and revert client ones as well

* oh my gosh claire stop rushing

* there we go

* move timestamp stub to beforeEach

* more moves to beforeEach

* final CE test moves to beforeEach hook!

* use .replace and .fake instead of callsFake

* license-banner test

* remove remaining callsFake for consistency

* use the timestamp instead of separate date
2024-05-06 14:11:00 +00:00
Robert
1bfc4f90eb
Adjust sync clients reference link (#26818) 2024-05-03 15:37:55 -05:00
Violet Hynes
f2b4ca4def
VAULT-24736 CE changes for static secret capability behaviour toggle (#26744) 2024-05-03 14:12:19 -04:00