Commit Graph
1809 Commits
Author SHA1 Message Date
Johan Brandhorst-Satzkorn 89273a2f3e Update references to "make dev" (#1920)
"make dev" has been replaced with "make install" since b53e4d4c3e.
2022-03-16 16:39:53 -04:00
irenarindos 3f3eb8bcb8 chore: Update version and add next to changelog 2022-03-16 16:29:10 -04:00
irenarindos 9f64bd19ba chore: udpate website version for 0.7.6 2022-03-16 16:19:37 -04:00
Irena Rindos 0ffa45c5c9 chore: update Changelog for 0.7.6 release (#1922) 2022-03-15 14:14:39 -04:00
Irena Rindos 066e478a44 Merge pull request #1919 from hashicorp/llb-session-connection-deadlocks
chore: Merge session connection deadlock branch to main
2022-03-15 14:08:18 -04:00
irenarindos bbc12d4097 chore: Update changelog for session refactor 2022-03-15 13:51:15 -04:00
Timothy Messier 9aa2d4cd84 test(session): Speed up some tests around dead worker cleanup
This removes or reduces the time that is waited in a number of tests by
allowing the grace period time be a configuration option on the
connection repository.
2022-03-15 13:51:15 -04:00
Timothy Messier 79670180a7 refact(session): Move domain logic of Worker Status into domain service
This creates a domain service function `session.WorkerStatusReport`. The
service performs two functions:

1. Checks the status for all of the reported sessions, returning a
   report of the sessions that are in a "non-active" state, i.e.
   "cacneling" or "terminated".
2. Looks for any "orphaned" session connections, i.e. connections that
   are active but were not reported by the worker. These connections are
   marked as closed.

This also removes the "ShouldCloseConnectionsOnWorker" logic, as this
was determined to not be a possible state, and was unnecessary.
2022-03-15 13:51:15 -04:00
Timothy Messier cdb035f5fc test(worker_service): Add baseline tests for Status
This adds tests for the Status method of the WorkerService grpc service
that is exposed by controller.
2022-03-15 12:11:31 -04:00
Timothy Messier 4de6464978 refact(session): Make CloseDeadConnectionsForWorker more testable
The query for CloseDeadConnectionsForWorker includes a time comparison
to exclude results that are too close to the current time. This is done
to account for a delay in reporting by the worker. However, since the
delay was hardcoded in the query, it made it difficult to test.

This moves the delay duration into a parameter that is set on the
repository. The amount of the delay can be set at repository creation
time using the new WithWorkerStateDelay option. This defaults to the
previously hardcoded amount.

This will allow tests to control the delay to exercise this
functionality fully.
2022-03-15 12:11:31 -04:00
Timothy Messier e0603534c0 lint(session): Whitespace and missing ; in sql queries 2022-03-15 12:11:31 -04:00
irenarindos 32132d6bc1 refactor(session connections): Refactor connection closure 2022-03-15 12:11:31 -04:00
irenarindos 3482f91a17 refactor(connections): Move connect connect to the Connection repo 2022-03-15 12:11:31 -04:00
irenarindos ac9fb8016f refactor(session connections): Worker only closes connections in memory on grace period expiration 2022-03-15 12:11:31 -04:00
irenarindos 32dd594029 docs(connections): Update domain model for session connections 2022-03-15 12:11:31 -04:00
Irena Rindos 5a2c0db586 fix(session connections): Create session connection repository 2022-03-15 12:11:31 -04:00
irenarindos ff42d46b36 chore: Set next version to 0.7.6 2022-03-15 08:58:03 -04:00
Louis Ruch f8b27645d9 fix(scheduler): Update job run query to not error on running conflict (#1914) 2022-03-11 15:11:14 -08:00
Timothy Messier abb02d80d0 Merge pull request #1904 from hashicorp/tmessi-multiarc-postgres-image
chore(dbtest): Build test database docker image for arm64
fix(makefile): Update docker-build-dev to use correct target
2022-03-11 13:56:39 -05:00
Timothy Messier 761acd37b8 fix(makefile): Update docker-build-dev to use correct target
When the make targets where updated to switch from `make dev` to
`make build`, the dependency for the `docker-build-dev` target was not
updated.

See: b53e4d4c3e
2022-03-11 13:55:23 -05:00
Timothy Messier 839f9efcfb chore(dbtest): Build test database docker image for arm64
This adds a new makefile target to build and publish the test database
docker image for multiple architectures. It will create images for:

- linux/amd64
- linux/arm64

The target uses docker buildx to build the images. To build the images:

    docker buildx create --driver docker-container --use
    make docker-buildx
    docker buildx rm

See: https://docs.docker.com/buildx/working-with-buildx/
2022-03-11 13:55:23 -05:00
Michele Degges 2b2cc0bf19 Turn nvd security scanning off temporarily (#1911) 2022-03-11 10:18:18 -08:00
Robin BeckandHugo 860a053ba8 Docs: Update connect-to-target page with target-name example (#1887)
* added boundary connect -target-name example

* removes some passive and ableist language

* Apply suggestions from code review

add rewrite suggestions from @hugoamvieira

Co-authored-by: Hugo <hugoamvieira@users.noreply.github.com>

* update Using Connect Helpers copy

Co-authored-by: Hugo <hugoamvieira@users.noreply.github.com>
2022-03-10 11:26:48 -07:00
Jeff Mitchell b53e4d4c3e Update make targets: (#1900)
* Update make targets:

* `make dev` now shows a message indicating the new commands
* `make build` builds the binary into bin/
* `make install` will subsequently `mv` (not copy) the binary into
  GOPATH/bin

The reason for the `mv` is that M1 Macs seem to get pretty unhappy about
executing a copied binary if it's been modified, so an initial binary is
fine, then after changing and recompiling the command keeps getting
killed.

* Make the 'make install' text more clear
2022-03-09 16:20:44 -05:00
Irena Rindos bc6689fb16 docs(permissions): break permissions into sections (#1893)
* docs(permissions): break permissions into sections

* fixup! docs(permissions): break permissions into sections
2022-03-08 10:36:11 -05:00
Michele Degges 82b121c9ec Turn OSV scanning off temporarily (#1894) 2022-03-07 13:09:55 -08:00
Timothy Messier bdb98d508e fix(genapi): Sort slice in removeDups template function (#1889)
The removeDups template function converts a slice into a map and
back into a slice in order to leverage the map keys to remove
duplicates. However, since the iteration order over a map is not
specified it would be possible to get different orders for multiple runs
of `make api`. While this would not have an impact on any functionality,
it is causing sporadic failures for the new make-gen-deltas CI job.

See: https://go.dev/ref/spec#For_statements
Ref: d57603022a
2022-03-04 11:44:41 -05:00
Swati Saxena be75a2cd3c Update roadmap.mdx (#1885) 2022-03-04 07:52:19 -08:00
xka5h 237f0c5704 updated CLI connection options, including addr (#1884) 2022-03-03 14:15:18 -08:00
Irena Rindos 718e746480 docs(targets): remove default port option (#1883) 2022-03-03 10:44:25 -08:00
Michael Gaffney 2fabfd99e5 docs: add database indexes under performance in contributing guide (#1881) 2022-03-02 08:00:37 -05:00
Dharini Jeeva de96cac780 chore: updates to azure, aws doc links (#1876) 2022-03-01 10:09:32 -08:00
Justen Walker 8279397dbb fix(connect): do not panic on multiple -- args (#1858)
Passthrough args looks for the an instance of -- and re-slices the arg
list to pass through those args to the underlying connect exec command.
However such commands may also need to parse their own '--', such as
kubectl exec.

This change updates the logic so that boundary arg parser only considers
the first instance of '--' when deciding which args to pass to the
-exec= commands.

Fixes: #1857
2022-02-28 10:39:09 -07:00
Sarah Thompson d52f841d8b Adding promotion and post-publish events. (#1871) 2022-02-25 17:32:49 +00:00
Sarah Thompson 3d0b3d4072 Fix UI build caching and set network-timeout (#1875) 2022-02-24 13:20:45 -08:00
Michele Degges 9ec23fbf80 Remove setup-qemu step from Docker build job (#1873) 2022-02-24 12:00:38 -08:00
Timothy Messier 59d754e85f chore: Prep for next version 2022-02-17 14:58:13 -05:00
Timothy Messier 3446a0af39 chore(website): Update version to 0.7.5 2022-02-17 14:54:46 -05:00
claire labry 1361261f67 [RDX-309] UI build timeout fix (#1870)
* testing network concurrency flag

* trigger ui build

* trigger ui build

* trigger ui build

* whoops, cleaning up
2022-02-17 13:46:24 -05:00
Timothy Messier a2dc9dfd40 fix(build): Use POSIX compatible comparison
In CI were errors/warnings like:

    ./scripts/plugins.sh: 7: [: windowsx: unexpected operator

This comparison is compatible with more versions of bash and other
shells and should prevent these messages.
2022-02-17 11:15:36 -05:00
Todd 65c41e5b14 Update changelog to include set ids on static host API resource fix. (#1869) 2022-02-17 08:51:43 -07:00
Carlos Alcaide Corvo b529f4af44 Bump ui version (#1868) 2022-02-17 10:49:39 -05:00
Timothy Messier 44d269fdbd fix(build): Include .exe suffix when building plugins for Windows (#1867)
When moving to the new CRT build process, this was missed from the older
build scripts. When building the plugins for Windows, if the files do
not have the `.exe` suffix, boundary fails with errors like the
following:

    Error initializing controller: error creating aws host plugin: error fetching host plugin rpc client: exec:
    "C:\\Users\\alice\\AppData\\Local\\Temp\\441718622\\boundary-plugin-host-aws": file does not exist
2022-02-17 10:48:15 -05:00
Louis Ruch 4ed4575802 chore(fmt): make fmt 2022-02-16 15:52:37 -08:00
Louis Ruch 64fd93e088 chore(release): Bump API version and changelog for 0.7.5 2022-02-16 15:35:03 -08:00
Todd 7ee1f74388 fix(hostsets/plugin): Only delete preferred endpoints when there are preferred endpoints to delete. (#1865) 2022-02-16 16:12:34 -07:00
Carlos Alcaide Corvo 360ff9cf2b Update changelog with latest changes in the UI (#1866)
* Update changelog with latest changes in the UI

* Change to lowercase for consistency

* Bump UI version
2022-02-16 18:00:08 -05:00
Dharini Jeeva d7d3bdf5e8 add doc link for dynamic host catalog hosts setup (#1861) 2022-02-16 08:55:34 -08:00
Irena Rindos be569dee78 Merge pull request #1862 from hashicorp/irindos-api-client-path
fix(api): address base paths containing a v1 were being truncated
2022-02-16 07:36:17 -08:00
Irena Rindos a6f50e675c fix(api): address base paths containing a v1 were being truncated 2022-02-16 10:15:02 -05:00