Commit Graph
4103 Commits
Author SHA1 Message Date
vanphan24 c3fc80becf Update worker-tags.mdx to remove Enterprise tag on Vault worker filter (#4652)
Vault worker filters are not an Enterprise feature, so we're removing it.
2024-04-17 13:28:37 -04:00
Johan Brandhorst-Satzkorn 33abe1274a build: include LICENSE.txt in all artifacts (#4630)
Adds our LICENSE file as LICENSE.txt to our binary .zip files,
Docker containers, and RPM files.
2024-04-17 09:04:40 -07:00
Todd 0d67b86543 Add ListResolvableAliases to the user service (#4609)
* Add ListResolvableAliases to the user service

There are a few non common ways this method uses our ACL
and grant system. A user is able to list resolvable
aliases for another user if they are granted permission
to do so. That means we had to load the grants for
the user being listed for and not the requester when
determining if an alias is able to resolve to a destination
for which the requested user has permission.

Similarly, the grant hash used for the list pagination
is required to be that of the user being listed and not
the requester.
2024-04-17 08:26:46 -07:00
Carlos Alcaide Corvo 267b8ab972 Bump UI version to include MinIO support (#4650) 2024-04-16 15:02:07 -07:00
Michael Li 69d686bc9a test(e2e): Set a minio alias in the container (#4646)
This alias will be used by commands in a test when using the minio client. An alias needs to be defined in order for commands like retrieving an object from the bucket to work successfully.
2024-04-16 15:22:05 -04:00
Cameron Perera 87b0866d8f chore: bump ui commit to 98c16ad (#4647) 2024-04-16 12:19:19 -05:00
Damian Debkowski cebcc696e4 chore: update changelog (#4644) 2024-04-15 10:51:29 -07:00
Irena Rindos c126a690d3 update changelog for 0.15.4 release (#4643) 2024-04-15 13:29:34 -04:00
Cameron Perera 200524126d chore: bump ui commit to 80b633a (#4642) 2024-04-15 12:05:15 -05:00
Dan Heath 9c67029a0a docs: Update KMS purpose field for BSR (#4638) 2024-04-12 15:37:52 -04:00
dani 1a77e4da86 Boundary Plugin MinIO (#4621)
feat(storage): Add storage support for MinIO via new built-in plugin
2024-04-12 11:28:40 -04:00
a79e35da54 Cred store docs days (#4579)
* add a new cred management files

* adding credential management files

* fixed type-os, added ent labels, grouped cli/ui

* added reference links from concepts section and Vault integration section to new cred management pages

* style guide and formatting enhancements

* style guide and formatting enhancements

* fixes internal link

* docs: Updates for styles and standards

* docs: Fix link structure

* docs: Break out brokering/injection procedures

* Apply batch suggestions from code review

Co-authored-by: Robin Beck <stellarsquall@users.noreply.github.com>

* docs: Clean up commented out code

* docs: Rename index file per best practices

* docs: Update page description meta content

* docs: Add level 2 headings for organization

---------

Co-authored-by: Robin Beck <stellarsquall@protonmail.ch>
Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com>
Co-authored-by: Robin Beck <stellarsquall@users.noreply.github.com>
2024-04-11 15:09:05 -04:00
1a33cb7199 made worker filter examples more promenent with different example types (#4589)
* made worker filter examples more promenent with different example types

* adds terraform tabs

* updates notes to use Note, Tip, and Warning elements

* deletes old screenshots

* docs: Minor edits

* docs: Make example explanations consistent

* clarifies boundary_credential_store_vault comments

---------

Co-authored-by: Robin Beck <stellarsquall@protonmail.ch>
Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com>
2024-04-11 14:57:04 -04:00
Louis Ruch c617762f56 Merge pull request #4610 from hashicorp/louis-correlation
feat: Add support for correlationId
2024-04-11 09:47:24 -07:00
Louis Ruch 2e6edb843d feat(vault): Add headers to client interface 2024-04-11 09:08:49 -07:00
Louis Ruch 0cfca44cf5 fix(vault): Fixes credential_vault_credential_private view
The worker_filter column was dropped from the
credential_vault_credential_private view in the
56/02_add_data_key_foreign_key_references.up.sql migration.
Any credential renewal/revocations that relied on the worker filter
would not successfully renew.
2024-04-11 09:08:49 -07:00
Louis Ruch c376d06355 feat: Add support for correlationId 2024-04-11 09:08:45 -07:00
f2c2a774c6 Daverandolph boundary doc days (#4561)
* Added using-terraform.mdx to the Install Boundary section

* Initial revision

* formatting on the list and adding in some links to the provider

* Renamed file

* Added assumptions.

* Updated index.

* Fixed some typos

* Folded in Carlos's session recording code

* small changes

* fixes headers

* fixes internal developer links

* style guide and formatting enhancements

* updates Initialize Boundary link

* docs: Updates for style/standards

* docs: Break topic into smaller pieces

* docs: Clean up commented text, rename index file

* docs: Trigger a new Vercel build

---------

Co-authored-by: Daniel Greeninger <daniel.greeninger@hashicorp.com>
Co-authored-by: Adam Bouhmad <adbouhmad@gmail.com>
Co-authored-by: Robin Beck <stellarsquall@protonmail.ch>
Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com>
2024-04-11 10:16:17 -04:00
Dan HeathandMichael Li 8e2ac23a65 docs: Update release notes for April 9 release (#4618)
* docs: Update release notes for April 9 release

* Update website/content/docs/release-notes/v0_15_0.mdx

Co-authored-by: Michael Li <michael.li@hashicorp.com>

---------

Co-authored-by: Michael Li <michael.li@hashicorp.com>
2024-04-09 17:59:11 -04:00
Johan Brandhorst-Satzkorn 31f4b73584 proto/api: improve auth method service API docs (#4616) 2024-04-09 14:14:30 -07:00
Dan Heath 61299276c4 docs: Update license reporting (#4483) 2024-04-09 10:15:25 -04:00
6b53766aa6 internal/proto: improvements to OpenAPIv2 spec (#4555)
* internal/gen: better API docs

Add various pieces of metadata that can be used by the API docs renderer.
Improve the service labels by specifying explicit tags.
Specify error responses. Specify version at generation time.

* internal/gen: add better errors

The default error entry is now used to cover all errors, as
adding a new error for every possible status code was a bit much.
This also properly includes the real error type now!

* Add various pieces of metadata that can be used by the API docs renderer. Improve the service labels by specifying explicit tags.

* make auth method API docs

* make API docs better

* make auth methods API docs nicer

* internal/gen: better attribute examples

Replace Output Only comments with a field behavior annotation in accounts.
Mark some fields as required.
Add elaborate description for attributes.

* Make API docs better

* Make API docs better

* Make API docs better

* internal/proto: regenerate files

* internal/proto: finish off account service

* Make API docs better

* internal/proto: add better API docs for aliases

* Tidy up service descriptions

* Added description for Boundary controller  API doc

* internal/gen: add better API intro

Copy parts of the API docs into the description

* sdk: add openapi dependency

* internal/gen: move global API doc to separate file

* internal/gen: remove required annotations

Unfortunately, while these help with the creating of resources, they still
appear required in contexts where they are not, such as when
updating a resource.

* Review comments

---------

Co-authored-by: jigar-hashicorp <jigar.shah@hashicorp.com>
Co-authored-by: Isaac Christian (he/him) <112639904+isaacchristian@users.noreply.github.com>
2024-04-08 13:55:17 -07:00
Irena RindosandDan Heath b908e7b9da docs(bsr): explain bsr data chunks (#4554)
* docs(bsr): explain bsr data chunks
---------

Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com>
2024-04-08 11:59:25 -04:00
Elim Tsiagbey a23c57e7c6 feat: add storageEventListener nil check
Only shutdown the storageEventListener if the storageEventListener is not nil
2024-04-05 17:27:20 -04:00
Elim Tsiagbey fae2149990 docs: Local Storage State
- add docs for local storage states
- add docs for `recording_storage_minimum_available_capacity` config field for workers
2024-04-05 16:47:35 -04:00
Elim Tsiagbey c67f468e94 test(e2e): add helper function for finding worker by filter
- Add `GetWorkerWithFilterCLI` helper function for finding a worker by Address
2024-04-05 16:47:28 -04:00
Elim Tsiagbey 2c140b1e09 feat: Local Storage State API & CLI
- add `local_storage_state` value to API & CLI
2024-04-05 16:47:22 -04:00
Elim Tsiagbey 3bef063c72 feat: Filter workers by local storage state function
- add functionality to filter worker by local storage state.
- add feature constraint for local storage state
2024-04-05 16:47:10 -04:00
Elim Tsiagbey 3f94c900f0 feat: Add worker event listener
- add worker event listener
- add worker event handler
- start event listener when a worker starts
2024-04-05 16:46:22 -04:00
Elim Tsiagbey 8506ed3e2c feat: Report Local Storage State Status
- add `LocalStorageState` to worker status reports
- update worker service handler to process `LocalStorageState`. If is empty for workers older workers, we set the `LocalStorageState` to `unknown`
- update field mask paths to support `LocalStorageState`
2024-04-05 16:46:06 -04:00
Damian Debkowski aea473c77b feat: new worker config for minimumAvailableCapacity 2024-04-05 16:45:52 -04:00
Elim Tsiagbey f483d1417c feat: Update Proto Definition for Local Storage State
Update `ServerWorkerStatus` Proto Definition to include Local Storage State
2024-04-05 16:45:35 -04:00
Elim Tsiagbey 79917f74b8 feat(worker): Worker Local Storage State DB Column
- Add new `local_storage_state` column to `server_worker` table which keeps track of the state of the local disk space.

- The valid values for `local_storage_state` are:
-- `available`: The worker local storage state is at an acceptable state
-- `lowStorage`: The worker is below the minimum threshold for local storage
-- `criticallyLowStorage`: The worker local storage state is below the critical minimum threshold for local storage
-- `outOfStorage`: The worker is out of local disk space
-- `notConfigured`: The worker does not have a local storage path configured
-- `unknown`: The default local storage state of a worker. Used when the local storage state of a worker is not yet known
2024-04-05 16:44:54 -04:00
6cb7bebaa7 Updated Vault integration section with Client Count (#4551)
* Updated Vault integration section with Client Count

* Update website/content/docs/integrations/vault/index.mdx

Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com>

* Update website/content/docs/integrations/vault/index.mdx

Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com>

* Update website/content/docs/integrations/vault/index.mdx

Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com>

* Update website/content/docs/integrations/vault/index.mdx

Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com>

* Update website/content/docs/integrations/vault/index.mdx

Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com>

* Update website/content/docs/integrations/vault/index.mdx

Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com>

* Update website/content/docs/integrations/vault/index.mdx

Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com>

* Update website/content/docs/integrations/vault/index.mdx

Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com>

* rework headers

* updates Injected credentials section

* various style guide and formatting fixes

* fixes link and updates page description

* docs: Style updates

---------

Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com>
Co-authored-by: Robin Beck <stellarsquall@protonmail.ch>
2024-04-04 18:29:29 -04:00
Michael Li e8e19df872 chore: Update net dependency (#4595)
Addresses GO-2024-2687/CVE-2023-45288
2024-04-04 16:03:38 -04:00
Michael Li d74d667716 test(credential): Potential fix for race condition (#4587)
* test(credential): Potential fix for race condition

* test: Additional instances
2024-04-04 15:24:19 -04:00
Michael LiandDan Heath 82a6ac057d doc: Refactor "install boundary" section (#4557)
* doc: Refactor "install boundary" section

* CR: Use shell-session over bash

* docs: Update redirects and TOC

* CR: Word style/standards

Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com>

* CR: Add second level heading

* CR: Fix more shell-sessions

* CR: Fix link

---------

Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com>
2024-04-04 13:15:31 -04:00
Irena Rindos 1e5559173f fix(session): return from workerStatusReport on first error (#4586) 2024-04-04 12:29:40 -04:00
Jeff Mitchell d396a33930 Fix controller-only in dev not showing events (#4594) 2024-04-03 20:56:51 -04:00
Louis Ruch e9e3d7cad5 feat(session): Include session recording id in auth-session resp (#4593) 2024-04-03 17:54:37 -07:00
Jeff Mitchell 446b790f02 Make WrappableCommand input be a func (#4590)
When wrapper.Wrap was put into place, the argument going into it was no
longer part of a closure but was instead evaluated at function call
time. As a result this would create 197 extra goroutines and
channels on startup - one for each command using wrapper.Wrap. Among
other things this made stack traces much more difficult to parse.
2024-04-03 20:43:20 -04:00
Michael Li 51d33f3393 refact(e2e): Add err to helper methods (#4581)
* refact(e2e): Add err to CreateOrgApi

* refact(e2e): Add err to CreateProjectApi

* refact(e2e): Add err to CreateOrgCli

* refact(e2e): Add err to CreateProjectCli

* refact(e2e): Add err to CreateHostCatalogApi

* refact(e2e): Add err to CreateHostSetApi

* refact(e2e): Add err to CreateHostApi

* refact(e2e): Add err to AddHostToHostSetApi

* refact(e2e): Add err to CreateHostCatalogCli

* refact(e2e): Add err to CreateHostSetCli

* refact(e2e): Add err to CreateHostCli

* refact(e2e): Add err to AddHostToHostSetCli

* refact(e2e): Add err to CreateAwsHostCatalogCli

* refact(e2e): Add err to CreateAwsHostSetCli

* refact(e2e): Add err to CreateTargetApi

* refact(e2e): Add err to AddHostSourceToTargetApi

* refact(e2e): Add err to CreateTargetCli

* refact(e2e): Add err to AddHostSourceToTargetCli

* refact(e2e): Add err to SetHostSourceToTargetCli

* refact(e2e): Add err to RemoveHostSourceFromTargetCli

* refact(e2e): Add err to AddBrokeredCredentialSourceToTargetCli

* refact(e2e): Add err to RemoveBrokeredCredentialSourceFromTargetCli

* refact(e2e): Add err to CreateUserApi

* refact(e2e): Add err to CreateUserCli

* refact(e2e): Add err to SetAccountToUserCli

* refact(e2e): Add err to CreateRoleApi

* refact(e2e): Add err to CreateRoleCli

* refact(e2e): Add err to AddGrantToRoleCli

* refact(e2e): Add err to AddPrincipalToRoleCli

* refact(e2e): Add err to CreateManagedGroupApi

* refact(e2e): Add err to CreateGroupApi

* refact(e2e): Add err to CreateGroupCli

* refact(e2e): Add err to AddUserToGroup

* refact(e2e): Add err to CreateCredentialStoreStaticApi

* refact(e2e): Add err to CreateCredentialStoreVaultApi

* refact(e2e): Add err to CreateCredentialStoreVaultCli

* refact(e2e): Add err to CreateCredentialStoreStaticCli

* refact(e2e): Add err to CreateVaultGenericCredentialLibraryCli

* refact(e2e): Add err to CreateStaticCredentialPrivateKeyCli

* refact(e2e): Add err to CreateStaticCredentialPasswordCli

* refact(e2e): Add err to CreateStaticCredentialJsonCli

* refact(e2e): Add err to CreateStaticCredentialPasswordApi

* refact(e2e): Add err to CreateAuthMethodApi

* refact(e2e): Add err to CreateOidcAuthMethodApi

* refact(e2e): Add err to CreateAccountApi

* refact(e2e): Add err to CreateAccountCli
2024-04-03 09:44:44 -04:00
Michael Li d4e314cde8 test(e2e): Remove leftover debug line (#4588) 2024-04-02 12:02:21 -04:00
Michael Li 1778ab93bc chore: Update docker dep (#4583)
Vulnerabilities
- GHSA-mq39-4gv4-mvpx
- GO-2024-2659
2024-04-01 16:12:15 -04:00
hashicorp-tsccr[bot]andhashicorp-tsccr[bot] ad430b29e0 Result of tsccr-helper -log-level=info gha update -latest . (#4580)
Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
2024-04-01 11:22:40 -04:00
Michael Li cb28fe4296 test(e2e): Add module for minio docker container (#4578) 2024-03-29 10:27:39 -04:00
ToddandJohan Brandhorst-Satzkorn 55fe70e643 Change 404 errors for aliases to 401s (#4575)
* Change 404 errors for alias resolution to 401s
---------

Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
2024-03-27 16:14:49 -07:00
Michael Li 8533433868 refact(e2e): Consolidate tests (#4569)
* refact(e2e): Move -remote-command check into ssh test

* refact(e2e): Remove duplicate test

* fix(e2e): Modify unnecessary use of Logf

* fix(e2e): Add error checks

* fix(e2e): Remove unused parameter
2024-03-27 09:49:06 -04:00
Michael Li e0305f11aa test(e2e): Add check for boundary search -force-refresh (#4566) 2024-03-26 12:56:17 -04:00
Todd 95c507fad5 Add hidden ferry commands and auto adding tokens to ferry daemon (#4572)
* Add boundary ferry command (#4462)

* Add boundary ferry status (#4463)

* Add sending auth token automatically to ferry daemon (#4465)

* Hide ferry cmds, background error msgs, and dont retry background add-token requests (#4571)
2024-03-25 15:04:13 -07:00