Commit Graph
1450 Commits
Author SHA1 Message Date
Jeff Mitchell d58e7670f1 Make PG resource usage nicer for dev (#1615)
This overrides settings specifically in CI scenarios to the current
values but reduces the resource requirements for local dev work.
2021-10-20 15:12:09 -04:00
Zachary Shilton 3399ca30b3 website: use shared open-api-page component (#1519)
* website: use canary release of open-api-page

* website: bump to latest open-api-page pre-release

* chore: bump to latest open-api-page pre-release

* chore: refresh package files from main to avoid conflicts

* bump to stable open-api-page release
2021-10-20 11:29:54 -04:00
Timothy Messier b5fbf9608e refact(target): Remove old TargetType (#1618)
Now that subtypes are registered via sub-packages, this TargetType is
not needed and should not be used. This removes it and updates the
target.Repository and targets.Service to use the updated code.

This was missed in eac433f7ff.
2021-10-20 08:35:33 -04:00
Jim 769416c2ff refactor (controller): Use a grpc server for the grpc-gateway (#1576)
* refactor (controller): Use a grpc server for the grpc-gateway

This starts a grpc server for the grpc-gateway.  The new gateway
server uses an in-memory listener which also supports "dialing", so
the http proxy can connect to the in-memory listener.

This change allows us to use all grpc server features and was in part
motivated by a need for an interceptor of inbound requests.  With that
said, having a "proper" grpc server for the gateway will provide a lot
more flexibility and capabilities moving forward.

The request context will still be verified via middleware in the
http proxy (see wrapHandlerWithCommonFuncs).  This verified context
will be serialized into a protobuf and sent along to the grpc-gateway
via metadata where an interceptor will add the verified request
info to the request's context (see requestCtxInterceptor).  The
interceptor will verify the serialized request info via a shared ticket
with it's companion in-memory http proxy.  FYI: the ticket is simply
random base62 string (see db.NewPrivateId).

This change also necessitated a minor change to services.  We need to
return an empty response instead of nil, nil when there are no errors
and the response is empty.

* refactor (handlers): Rename gRPC Gateway filter

Originally, this was called an OutgoingInterceptor, which is an
unfortunate name since it's not an interceptor.  Now that we're
refactoring the gateway stuff and have proper interceptors, renaming
this should remove ambiguity

* refactor: Rework how 204 with empty msg is handled

Recent changes to grpc gateway has necessitated a change to how
204s are handled by the gateway

* tests (bats): Check status codes for delete operations
2021-10-19 17:21:41 -04:00
Timothy Messier 55ba24499a Merge branch 'tmessi-target-refact' (#1573) 2021-10-19 14:11:38 -04:00
Timothy Messier 02b2291375 feat(subtypes): Make Registry thread-safe 2021-10-19 10:44:51 -04:00
Timothy Messier eac433f7ff refact(target): Move tcp into subpackage
This moves all of the tcp target functionality into a tcp package. It
also establishes a Register function in the target package to allow
specific target types to be registered at initilazation time. When
registering, a target type needs to provide its Subtype, as well as some
RepositoryHooks that are used by the target Repository.
2021-10-19 10:44:51 -04:00
Brandon Romano b48f11dddb Prep Banner for HashiConf (#1610) 2021-10-19 06:55:38 -07:00
Timothy Messier 51812ff779 docs(target): Mark additional fields as output only (#1609)
When creating or updating a target, the following fields should have
been marked as output only:

- host_set_ids
- host_source_ids
- application_credential_source_ids
- application_credential_library_ids

This updates the protobuf and generated files including the swagger file
used by the docs site to correctly mark these are output only.

Fixes #1588
2021-10-19 09:37:32 -04:00
Noel Quiles 6fc9505378 website: Upgrade platform analytics package (#1606) 2021-10-15 16:42:05 -04:00
Timothy Messier 65f72ce3d0 Merge branch 'tmessi-hooks' (#1593) 2021-10-15 14:24:20 -04:00
Timothy Messier 4b6a16034e chore: Add ci job to trigger update to enterprise 2021-10-15 14:03:26 -04:00
Timothy Messier b9a393d10b chore: Add pre-push hook 2021-10-15 14:03:26 -04:00
5d527c5e99 Boundary documentation: created a boundary intro page (#1601)
* added an boundary intro page

* Update what-is-boundary.mdx

deleted an extra space

* added an image

* Apply suggestions from Robin's code review

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

Co-authored-by: Pete Pacent <ppacent@hashicorp.com>
Co-authored-by: Robin Beck <stellarsquall@users.noreply.github.com>
2021-10-14 17:03:25 -07:00
Jeff Mitchell c05324282f Rename the UI passthrough dir flag/env var (#1600)
This puts it more in line with other upcoming options that use "dir"
instead of "directory" (plus it's easier to type), and makes it clear
that this directory and the passthrough behavior is related to the UI as
opposed to other upcoming items.
2021-10-14 12:13:07 -04:00
Noel Quiles 08a0f32a6e website: Add Fathom analytics (#1579)
* Impl Fathom analytics

* Use analytics package instead of direct impl
2021-10-13 18:03:23 -04:00
Jeff Mitchell 3af3ceec3a Bump Go to 1.17.2 (#1596) 2021-10-13 17:46:02 -04:00
Robin Beck 204ff254ca fixed hcl config examples for sink (#1590)
* fixed hcl config examples for sink

* fixed observations_enabled parameter typo
2021-10-13 13:57:31 -06:00
Jim 3b99ded7ad refactor: Update gorm deps (#1591)
Our recent upstream PR was merged into gorm.  We needed to change
just a few bits to migrate our gorm dep back to the upstream source.
2021-10-13 11:10:11 -04:00
Michael Gaffney 7ccab48a3c style: Run make fmt 2021-10-11 16:00:32 -04:00
Bryce Kalow 43b4d69517 website: upgrade deps to fix search styles (#1586) 2021-10-11 11:28:53 -05:00
Timothy Messier b0b8375dc6 Merge branch 'tmessi-migration-editions' 2021-10-11 08:37:07 -04:00
Timothy Messier 06e6ab6c57 build: Fix build to support switch to embed for migrations
With the refactor to the schema package, and the switch to use embed,
the sql files need to be included in CI when compiling the boundary
binary.
2021-10-08 06:50:26 -04:00
Timothy Messier e3f7c263b0 refactor(sqltest): Update init script to support migration editions
This updates the docker image used for tests to support the new location
for sql migration files and the concept of editions. It continues to
process the old paths for now if the new directory does not exist, so
that the same image can be used during the transition.
2021-10-08 06:50:26 -04:00
Timothy Messier 2143940a4a refactor(dbtest): Support new paths for migration files
This updates the docker image used for tests to support the new location
for sql migration files and the concept of editions. It continues to
process the old paths for now if the new directory does not exist, so
that the same image can be used during the transition.
2021-10-08 06:50:26 -04:00
Timothy Messier 8caaf3e076 refactor(schema): Add support for migration editions
This refactors the schema package and subpackages to support editions.
An Edition is a collection of sql migrations. A given boundary binary
can have multiple migration editions. The `schema.Manager` is updated to
apply the necessary migrations in the correct order, leveraging an
Edition's priority to determine the order in which the separate Editions
are applied.

The sql migration files are now nested under a directory for the
edition.

This also switches from the generated code to using embed, which
eliminates the need for the `make migrations` target and the generated
code. As such this commit removes the target and generated code.

See:
    https://pkg.go.dev/embed
2021-10-08 06:50:26 -04:00
Jeff Mitchell 217adfc4d2 Pull over CombinedSliceFlagValue from WIP plugin-hostcatalogs (#1582)
I've pulled over files as-is for the most part so this also pulls over
some common attribute/secret flags but it's not worth dealing with the
merge later...
2021-10-07 15:30:39 -04:00
Bryce KalowandZachary Shilton 5dd49871f9 website: upgrade dependencies (#1551)
Co-authored-by: Zachary Shilton <4624598+zchsh@users.noreply.github.com>
2021-10-07 09:47:35 -05:00
Timothy Messier 111f3906e8 ci: Consolidate some circle configuration with executors (#1578) 2021-10-05 15:15:08 -04:00
Jim 2ee2c50ba3 fix (Makefile): Add proper comment delimiter (#1577) 2021-10-04 13:37:07 -04:00
Jimmy Merritello 50ad0f9396 Fix broken downloads link url (#1575) 2021-10-02 17:00:02 -05:00
jweissig 291d80136c website: fix wording (#1572)
Minor wording tweak.
2021-10-01 13:19:48 -04:00
Alex Carpenter ebb4d4e99f [Assembly] homepage refresh (#1558)
* Updates <BrandedCta />

* Add <WhyBoundary /> section

* Add <HowBoundaryWorks /> section

* Updates <UseCases /> content

* Adjust <HomepageHero /> content

* Update <HowItWorks /> section

* Content updates

* Update icon directory

* Update how it works title

* Removes extra grid container

* Adds lang attribute to document

* Fix heading level usage

* Content updates

* Remove secure

* Captialize works

* Content update

* Update use case links

* Update background

* CTA text

* Convert ssh to svg

* Convert to SVG

* Coming soon to feature block
2021-09-30 10:54:51 -07:00
Jim c8b29ded1c Events: Add outbound detail protobufs, request status code, and update event encrypt filter. (#1569)
* feat (events): Add status code to audit events

* feat (events): Add the resp proto msg to every audit event

* chore (events): Update eventlogger dep

This latest version will redact any map and/or map field which isn't
explicitly classified via a Taggable interface

* feat (events): Begin to add tagging to response proto msgs
2021-09-30 12:55:47 -04:00
Jim 8d6dee09a9 refact: Add db.DB wrapper and refact all test fixtures to use it. (#1535)
* refact: Changes required for gorm v2

* refact: Add db.DB wrapper and refact all test fixtures to use it

Stop leaking the gorm abstraction within our unit tests.

* refact: Migrate direct calls to pq to pgx driver

The refactor will remove the remaining direct dependencies on
the pq driver which has been deprecated in favor of the pgx
driver.

It includes the addition of common.SqlOpen which is a wrapper around
sql.Open, which is needed to deal with the driver name changing from
"postgres" to "pgx" but in our code base the dialect and driver are
synonyms.
2021-09-30 09:17:27 -04:00
Jim 136ac00b49 refact: Changes required for gorm v2 (#1528) 2021-09-30 08:47:34 -04:00
Jim 0d74f8dbc9 Merge branch 'main' of https://github.com/hashicorp/boundary 2021-09-28 15:28:36 -04:00
Jim 744e08aaef chore: Update website version 2021-09-28 15:28:14 -04:00
Noel Quiles c2948a2257 Update alert banner for HashiConf Global 2021 (#1566)
* Update alert banner for HashiConf Global 2021

* Proper formatting
2021-09-27 17:47:36 -04:00
Jim 07c5c00f55 chore: Update version to 0.6.2 2021-09-27 16:38:06 -04:00
Jim f9c043c866 chore: Update sdk and api deps 2021-09-27 16:32:42 -04:00
Jim 6c7333cbe0 chore: Update sdk dep 2021-09-27 16:28:51 -04:00
Jim 350b79be2d chore: Update go:build tags to new fmt 2021-09-27 16:24:00 -04:00
Randall Morey 0eb1ab1698 chore: bump UI commit (#1565) 2021-09-27 14:28:36 -04:00
Robin Beck aab46370aa Docs: redirect Desktop install links to Learn (#1556)
* point install Desktop redirect to Learn

* hide /api-concepts/desktop and redirect to Learn

* add permanent redirect for /api-clients/desktop to Learn
2021-09-23 11:23:06 -06:00
Timothy Messier 88b3c8358c feat(cmd): Include version metadata in output (#1560)
If the VersionMetadata is set, include it in the output of the `boundary
version` subcommand.
2021-09-23 12:22:20 -04:00
Louis Ruch 49d5711a49 fix (service): corrects permission bug in hostset service (#1549)
* fix (service): corrects permission bug in hostset service

* fixup! fix (service): corrects permission bug in hostset service
2021-09-22 11:01:51 -07:00
Todd 0ba217cbfa Run make tools and make gen now that the dependencies have been updated. (#1552) 2021-09-21 10:32:26 -04:00
Jacob Mammoliti 2f329c4e93 chore: Docker Build fixes (#1502)
Pass correct context to docker build for multiarch and dev build targets.

* fixed missing file errors; bumped boundary version
* downgraded alpine due to build issues
* fixing makefile
* bumping boundary and alpine versions
* fixed docker directory in makefile and dockerfile
* updating dev.dockerfile & makefile
2021-09-21 09:46:17 -04:00
Louis Ruch 1c40100edd tests(scheduler): fix unit test deadlock (#1550)
If a new job is started as the test successfully compeltes and begins
the scheduler shutdown process.  The new job will deadlock waiting on
channel reads.
2021-09-20 11:31:54 -07:00