Commit Graph

17641 Commits

Author SHA1 Message Date
Sarah Chavis
a2de4c75cd
[Docs] Client count doc updates for ACME update in 1.14 (#21541)
Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
Co-authored-by: Brian Shumate <brianshumate@users.noreply.github.com>
2023-07-07 08:32:31 -04:00
Steven Clark
1a2eaf0de3
Add remediation steps to the PKI health-check docs (#21364)
* Add remediation steps to the PKI health-check docs

* Apply suggestions from code review

Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Implement PR feedback

* Apply suggestions from code review

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

* Apply suggestions from code review

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

---------

Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
2023-07-06 19:38:51 -04:00
John-Michael Faircloth
506db7b9bf
workflows: update plugin check job to use branch as ref (#21638)
* workflows: update plugin check job to use branch as ref

* make actionlint happy
2023-07-06 21:18:52 +00:00
Steven Clark
9b9017a926
Add the ability for enterprise to override PKI backend attributes during setup (#21618) 2023-07-06 16:16:17 -04:00
Austin Gebauer
304ecfc8e9
secrets/azure: upgrade to v0.16.1 for bug fix (#21631)
* secrets/azure: upgrade to v0.16.1 for bug fix

* adds changelog
2023-07-06 12:57:29 -07:00
Nick Cabatoff
502c2830c0
Add code that would break ent if merged prior to stubmaker (#21634) 2023-07-06 19:23:21 +00:00
Chelsea Shaw
15b5dd0a4e
UI: octanify lazy paginated query (#21602) 2023-07-06 13:32:01 -05:00
Peter Wilson
8bb9cbbeba
VAULT-17772: bump go-eventlogger to v0.2.1 (#21623)
* go-eventlogger: moved to v0.2.1, allows removal of pipeline and nodes
2023-07-06 18:17:02 +01:00
Nick Cabatoff
afc8f7d5aa
Prevent breakage when merging OSS changes to ENT due to missing funcs (#21564)
Add a go:generate helper called stubmaker, which generates appropriate stubs on ent based on oss stubs, but only when needed (i.e. real ent funcs haven't been added yet.)
2023-07-06 12:35:06 -04:00
Jordan Reimer
6acd2921c5
fixes issue in permissions service where the correct capability was not being checked for entities and groups passed as an array when evaluating nav permissions (#21619) 2023-07-06 10:00:15 -06:00
kpcraig
9930849f82
Plugin workflow updates (#21581)
Update/Polish plugin-dispatched vault-side plugin workflow
2023-07-06 10:50:09 -04:00
miagilepner
8c18f24b9d
VAULT-17734, VAULT-17735: Combine linters (#21611)
* combine into one checker

* combine and simplify ci checks

* add to test package list

* remove testing test

* only run deprecations check

* only run deprecations check

* remove unneeded repo check

* fix bash options
2023-07-06 15:18:42 +02:00
Violet Hynes
02f43ecbc2
VAULT-17590 Enterprise-side changes (using CI Vault over GH Secret) (#21587)
* VAULT-17590 Add failure notifications for OSS builds

* VAULT-17590 Incur build failure for testing purposes

* VAULT-17590 head_ref for testing

* VAULT-17590 rework to rely on completed status checks

* VAULT-17590 Use slackapi/slack-github-action

* VAULT-17590 Remember dollar sign

* VAULT-17590 finalize PR

* VAULT-17590 add extra empty line

* Update .github/workflows/build.yml

Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>

* Update .github/workflows/ci.yml

Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>

* VAULT-17590 fix typo

* VAULT-17590 ent workflow

* VAULT-17590 typo

---------

Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
2023-07-06 08:50:51 -04:00
Peter Wilson
5c02e3f255
VAULT-17772: audit event base (#21577)
* observability/event package, and basic error
* sink types (and validation test)
* event types (and validation test)
* options for events (and tests)
* audit event type (and tests)
2023-07-06 10:06:27 +00:00
Bianca Moreira
4c1a7b53d3
Add high privilege namespace (#21215) 2023-07-06 09:51:43 +02:00
Angel Garbarino
f5207a3a71
Fix link to API Explorer in console (#21596)
* quick fix for using api keyword in the console

* add back space
2023-07-05 13:52:25 -06:00
Kianna
21f8ad289c
UI: [VAULT-17317] Update components to use helper class and use overview-… (#21586) 2023-07-05 19:50:22 +00:00
Max Bowsher
8925dc22a0
Minor improvements to gen_openapi.sh (#21568)
1) Reduce sleep time - in my experience, 1 second is plenty for a dev
   Vault to start up its HTTP listener - having the user wait for
   5 seconds seems excessive.

2) Comment reason for both sleeps.

3) Remove line of code that is obsolete, now the Enterprise transition
   from stored to autoloaded licenses has completed.
2023-07-05 15:31:46 -04:00
Ryan Cragun
4f811661f8
[QT-576] Optimize build workflow (#21486)
Improve our build workflow execution time by using custom runners,
improved caching and conditional Web UI builds.

Runners
-------
We improve our build times[0] by using larger custom runners[1] when
building the UI and Vault.

Caching
-------
We improve Vault caching by keeping a cache for each build job. This
strategy has the following properties which should result in faster
build times when `go.sum` hasn't been changed from prior builds, or
when a pull request is retried or updated after a prior successful
build:

* Builds will restore cached Go modules and Go build cache according to
  the Go version, platform, architecture, go tags, and hash of `go.sum`
  that relates to each individual build workflow. This reduces the
  amount of time it will take to download the cache on hits and upload
  the cache on misses.
* Parallel build workflows won't clobber each others build cache. This
  results in much faster compile times after cache hits because the Go
  compiler can reuse the platform, architecture, and tag specific build
  cache that it created on prior runs.
* Older modules and build cache will not be uploaded when creating a new
  cache. This should result in lean cache sizes on an ongoing basis.
* On cache misses we will have to upload our compressed module and build
  cache. This will slightly extend the build time for pull requests that
  modify `go.sum`.

Web UI
------
We no longer build the web UI in every build workflow. Instead we separate
the UI building into its own workflow and cache the resulting assets.
The same UI assets are restored from cache during build worklows. This
strategy has the following properties:

* If the `ui` directory has not changed from prior builds we'll restore
  `http/web_ui` from cache and skip building the UI for no reason.
* We continue to use the built-in `yarn` caching functionality in
  `action/setup-node`. The default mode saves the `yarn` global cache.
  to improve UI build times if the cache has not been modified.

Changes
-------
* Add per platform/archicture Go module and build caching
* Move UI building into a separate job and cache the result
* Restore UI cache during build
* Pin workflows

Notes
-----
[0] https://hashicorp.atlassian.net/browse/QT-578
[1] https://github.com/hashicorp/vault/actions/runs/5415830307/jobs/9844829929

Signed-off-by: Ryan Cragun <me@ryan.ec>
2023-07-05 19:25:22 +00:00
Anton Averchenkov
e0472d4059
openapi: Better mount points for kv-v1 and kv-v2 in openapi.json (#21563) 2023-07-05 15:01:18 -04:00
Steven Clark
5ce57dbd00
Fix incorrect role ttl parameters in ACME tests (#21585)
- The ACME tests were using ttl_duration and max_ttl_duration instead
   of ttl and max_ttl as input parameters to roles.
 - Add missing copyright headers
2023-07-05 14:17:15 -04:00
Angel Garbarino
967c241c15
Add API Explorer Link to Sidebar Nav under tools (#21578)
* wip

* add outlet and sidebar nav link

* add changelog

* fix tests

* address pr comment
2023-07-05 18:05:32 +00:00
Jordan Reimer
78a86b4508
Login View Fix for Safari (#21582)
* adds height to brand-icon-large class to fix display issue in Safari

* adds changelog entry
2023-07-05 17:20:18 +00:00
Violet Hynes
44354eb147
VAULT-17590 Add failure notifications for OSS builds (#21561)
* VAULT-17590 Add failure notifications for OSS builds

* VAULT-17590 Incur build failure for testing purposes

* VAULT-17590 head_ref for testing

* VAULT-17590 rework to rely on completed status checks

* VAULT-17590 Use slackapi/slack-github-action

* VAULT-17590 Remember dollar sign

* VAULT-17590 finalize PR

* VAULT-17590 add extra empty line

* Update .github/workflows/build.yml

Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>

* Update .github/workflows/ci.yml

Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>

---------

Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
2023-07-05 16:44:39 +00:00
Jordan Reimer
52baf01e53
Hide Nav Links in Child Namespaces (#21562)
* hides enterprise related nav links when in child namespace

* adds changelog entry
2023-07-05 09:47:45 -06:00
mickael-hc
c6ef0800a0
update github.com/protonmail/go-crypto (#21560)
Updates the transitive dependency github.com/cloudflare/circl which will help address scanning noise related to CVE-2023-1732.

Vault is not affected by this issue as it does not use the vulnerable functionality.
2023-07-05 09:24:14 -04:00
Peter Wilson
772cda4eb2
Fix: Ensure log related settings appear in 'sanitized' config (#21567)
* include log related settings in SharedConfig.Sanitize()
* add optional log config to sanitized config when not default
* tests
2023-07-05 13:14:05 +00:00
miagilepner
7522ca248f
VAULT-17774: Allow test parallelism and timeout to be configurable (#21557) 2023-07-04 17:13:49 +02:00
miagilepner
eecae3a827
VAULT-17586: Add concurency to ci and build workflows (#21550) 2023-07-04 13:43:47 +02:00
Max Bowsher
c9b18c43ea
Fix incorrect OpenAPI operation ID (#21543)
The operation ID for `GET auth/token/lookup` has been overridden in
a way which *implies* it can only perform lookup-self operations.

This is not true, as shown:

1) Here is my current token:
```
$ vault read -field=display_name auth/token/lookup
userpass-admin
```

2) I create a second token, with a different display name to distinguish
   it:
```
$ othertoken=$(vault token create -field=token -display-name=testing123)
```

3) I use this operation, still authenticated with the first token, to
   lookup the second token, proving it does not have lookup-self nature:
```
$ vault read -field=display_name auth/token/lookup token=$othertoken
token-testing123
```

I have set the new operation ID suffix to `"2"` adhering to current
conventions in `vault-client-go` and `vault-client-dotnet` for secondary
versions of APIs which should be excluded from the generated library
code.
2023-07-03 20:09:12 -04:00
Anton Averchenkov
f4f0412b6a
[docs] Convert titles to sentense case (#21426)
* Convert documentation titles to sentense case

* Docker, Google, Foundry, Cloud proper case
2023-06-30 19:22:07 -04:00
Kianna
d01a3c1763
UI: VAULT-17699 Fix masked input bug (#21531) 2023-06-30 13:17:34 -07:00
Rebecca Willett
f1c6ab41fc
Add Slack notification for failed Enos workflow runs (#21332)
* Add separate Slack notification steps for run, run_retry, and destroy steps
2023-06-30 15:00:54 -04:00
Tom Proctor
1ffc56cb42
Docs: Updates for vault-mssql-ekm-provider-enterprise release v0.2.1 (#21529) 2023-06-30 18:00:44 +00:00
kpcraig
bbb01ed554
update plugin-dependency-check workflow (#21525) 2023-06-30 16:57:49 +00:00
kpcraig
3feb157fc7
fix curl, add reviewers, fix label call (#21522) 2023-06-30 15:49:28 +00:00
Max Bowsher
2f677665b3
Fix vault path-help for selected paths with bad regexps (#18571)
* Fix `vault path-help` for selected paths with bad regexps

See the comment being added in `sdk/framework/path.go` for the
explanation of why this change is needed.

* Grammar fix and add changelog

* Also fix hardcoded expectations in a new test

* Add a couple more testcases, and some comments.

* Tweak spelling in comment
2023-06-30 08:42:30 -07:00
Christophe Deliens
325233ea7d
Fix "vault agent generate-config" documentation URL (#21466) 2023-06-30 00:26:15 +00:00
John-Michael Faircloth
00295d2bf5
plugin automation: fix create pr (#21518)
* plugin automation: fix create pr

* get vault pr num
2023-06-29 22:20:01 +00:00
kpcraig
208336d251
Add some debugging to figure out what is happening (#21516)
* println debugging

* add more print debugs
2023-06-29 21:07:28 +00:00
John-Michael Faircloth
ab97243ed0
plugin automation: fix branch name (#21515)
* plugin automation: fix branch name

* fix input name
2023-06-29 19:45:53 +00:00
John-Michael Faircloth
bc71fdf040
plugin automation: use correct path to helper script (#21512) 2023-06-29 18:38:00 +00:00
John-Michael Faircloth
cc5240f47d
updates to plugin update check (#21511)
* updates to plugin update check

* use script to make curl request easier
2023-06-29 16:23:52 +00:00
Ben Ash
3ca3397676
Add support for cloning a Client's tls.Config (#21424)
Additional fixes:
- handle a failed type assert in api.Config.configureTLS()

Co-authored-by: Anton Averchenkov <84287187+averche@users.noreply.github.com>
2023-06-28 17:56:39 -04:00
John-Michael Faircloth
3e60da075b
plugin: use gh token for plugin workflow (#21505) 2023-06-28 21:26:06 +00:00
Angel Garbarino
1a780d8380
Capitlization Policy: First word only for title is-5 (#21501)
* initial fixes

* fix test

* fix test
2023-06-28 13:24:09 -06:00
kpcraig
08facd2bb2
Add plugin-update-check workflow (#21491) 2023-06-28 13:57:39 -04:00
Sarah Chavis
282b4a0738
Correct typos in 1.14.0 release notes (#21499) 2023-06-28 17:20:05 +00:00
Yoko Hyakuna
81a5e2ee65
[Docs] Add namespace naming restriction (#21493)
* Add naming restriction

* Update website/content/docs/enterprise/namespaces.mdx

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

* Use sentence case for heading

---------

Co-authored-by: Jonathan Frappier <92055993+jonathanfrappier@users.noreply.github.com>
2023-06-28 08:57:28 -07:00
Angel Garbarino
53d34dd930
Missed some Titlelize of the h1 title is-3 (#21482)
* missed a lot

* test fix

* wip context switch

* last of the test?

* last test, please
2023-06-28 08:33:13 -06:00