Commit Graph
2756 Commits
Author SHA1 Message Date
Timothy Messier 39e1cd7dcf chore(ci): Add downstream merge trigger to github action (#3014) 2023-02-24 08:36:47 -05:00
Timothy Messier 18b0bcb395 chore(ci): Revert some permission settings
These workflows seemed to break with these permission changes.
2023-02-23 21:14:53 +00:00
Timothy Messier 2a47e9ddf8 ci: Set permissions in workflows (#3011) 2023-02-23 15:50:26 -05:00
86214a85e1 ci: Run go tests in github action (#2997)
This runs the make targets:

- make test
- make test-api
- make test-sdk

The go tests in the main module are split by package and run in parallel
in a matrix build with GOMAXPROCS=1. This is done primarily to work
around an issue that is only seen on the github runners.  When running
at a higher GOMAXPROCS tests that use vault instances in docker
containers start to intermitently fail with errors from vault, usually
either a 400, 403, or TLS error. It is not clear what the cause of this
is, since the same tests run fine on self hosted runners and on
CircleCI.

Co-authored-by: Sarah Thompson <sthompson@hashicorp.com>
Co-authored-by: Daniel Kimsey <daniel.kimsey@hashicorp.com>
2023-02-23 14:58:40 -05:00
Michael Li 5ec75924df refact(e2e): Set up variables to prepare for docker implementation (#2992)
* refact(e2e): Explicitly define port used for targets

To maintain consistency for how we define ports, this change explicitly defines the port used in the enos
scenario as opposed to relying on a "default" value. This change is in support of work that attempts to
spin up test infrastructure using docker. The openssh-server image uses Port 2222, which needs to be
passed to the test suite.

* refact(e2e): Add optional "Internal" Vault Address parameter

This change enables scenarios that need two different Vault addresses, one used by the Vault CLI and
one by the Boundary server instance. In the case when using a Docker container, the Boundary server
needs the Vault address "internal" to the Docker network, whereas the Vault CLI running outside of the
network needs a different address.
2023-02-23 12:05:06 -05:00
Michael Li 7733677e34 chore(enos): Modify destroy condition (#3001)
Sometimes, the workflow can fail before enos is even installed, which causes this step to fail due enos not existing.
This change makes it such that this step only runs if the Retry step fails.
2023-02-23 11:58:43 -05:00
Michele Degges c309f46568 Update version.go to remove addl oss metadata (#2968) 2023-02-22 19:12:03 -08:00
Michael Li 9512b524f2 chore(enos): Always destroy enos infrastructure (#3000)
When the `Run Enos scenario` and `Retry Enos scenario` steps fail, the Destroy command does not get run since the `Retry` step marks the workflow as failed. This leaves some infrastructure hanging around.
2023-02-22 17:42:19 -05:00
XingLu Wang ad5c6d836e Update service-discovery.mdx (#2995) 2023-02-22 11:46:52 -07:00
Michael Li 235ded684b chore(enos): Update test suite slack bot with different messages (#2993)
* chore(enos): Update slack bot to post different messages when retry succeeds

* Remove unused variables
2023-02-22 13:38:46 -05:00
Timothy Messier b69d1c2e2e fix(cli): Fallback parsing of un-typed credentials (#2989)
The `boundary connect` subcommands attempt to parse the credentials to
use for brokering. This allows the subcommands to insert the credentials
automatically into the process called by the subcommand, i.e. `ssh` or
`psql`. There is some fallback logic to try a best attempt at parsing
the credential in cases where a credential type has not be set on the
credential source.

The bug was introduced with the recent change to the vault credential
library subtype being renamed from `vault` to `vault-generic`. This
fallback logic would only run if the credential source type was "vault"
or "static", so if the vault credential library was created without
specifying a credential-type, the credential would not be parsed and
automatically passed to the sub-process.

This fix removes the additional check on the credential source's type,
instead it will attempt to parse the credential, relying just on the
structure of the credential.

This also fixes a similar bug in the table output of secrets when using
`boundary connect` without a subcommand. The parsing of the credentials
for display in the table was only running for `vault` or `static`.

Blame: db42eafd7a
2023-02-21 16:38:42 -05:00
Hugo 41b1b5b4b7 feat(db): Introduce migrations for ssh targets (#2960)
Adds the schema for ssh targets. This also changes the target listing
func to not error out when it encounters a target with an unknown type.
Instead, it now ignores it and continues to the next one.
2023-02-21 16:31:22 -05:00
Johan Brandhorst-Satzkorn 0e1b020960 fix(all): make copywrite ignores stricter (#2990)
The previous ignore matched oplog_entry.go accidentally.
2023-02-21 15:01:15 -05:00
Josh Brand 17811f76b8 Use another method of getting acctid to pass to aws-nuke, clarify region output (#2987) 2023-02-17 13:27:03 -05:00
Johan Brandhorst-Satzkorn 18eed58ec5 fix(targets): Use correct error string in enterprise (#2984)
In enterprise the error is different, so we need a different
test error string to compare against. Create a variable
that can be overwritten in the enterprise repo.
2023-02-16 20:34:25 -05:00
Johan Brandhorst-Satzkorn 8a0ee97f3b fix(targets): Readd WorkerFilterDeprecationMessage (#2982)
This variable is updated in the enterprise repo and needs to stay.
2023-02-16 17:56:18 -05:00
Mike Baum e1d078fa9f [QT-444] Use repo isolated AWS account for enos CI tests (#2727)
* [QT-444] Use repo isolated AWS account for enos CI tests
2023-02-16 17:07:30 -05:00
Timothy Messier af1b8d2f02 ci: Remove deprecated output from make-gen-delta 2023-02-16 21:22:30 +00:00
Timothy Messier 876b25fead ci: Use variable for runner (#2981) 2023-02-16 16:17:04 -05:00
Timothy Messier 96ab199562 ci: Run make-gen-detla in github action (#2980) 2023-02-16 14:49:47 -05:00
Timothy Messier 5c19dba3c9 ci(sqltest): Add github action workflow for sql tests (#2977) 2023-02-16 14:37:48 -05:00
Johan Brandhorst-Satzkorn ac3543bdfb fix(targets): Use correct field name in deprecation warning (#2978) 2023-02-16 14:36:23 -05:00
Dan Heath d7049e4e79 docs: Update main branch with 0.12.0 revisions (#2975)
* docs: Add HCP only to heading

* docs: Add worker requirements

* docs: Fix heading format and hierarchy

* docs: Fix headings format

* docs: Update feature name using "sessions"

* docs: Fix heading hierarchy

* docs: Fix headings format

* docs: Fix spacing in title
2023-02-16 13:37:25 -05:00
mickael-hc 7e87f0f0a1 update dependencies (#2972)
* deps: update ory/dockertest
* deps: update /x/net
2023-02-16 13:02:48 -05:00
Johan Brandhorst-Satzkorn ca3c66e7b2 fix: Exempt enterprise files from copywrite (#2971) 2023-02-16 11:00:57 -05:00
Cameron Perera 313316ecd2 chore: update CHANGELOG to include UI managed group feature (#2969) 2023-02-14 20:51:40 -06:00
Mark Collao 7d69db7854 fix: disable osv until errors are investigated 2023-02-14 16:26:29 -06:00
Mark Collao 7f96be9033 fix: disabling codeql until larger workers are avail 2023-02-14 16:13:24 -06:00
Dan Heath 260b0ec51e docs: Update 0.12.0 release notes with HCP links (#2955) 2023-02-14 12:47:38 -05:00
Dan Heath fc2bf00838 docs: Update Getting Started guide, direct address (#2855)
* docs: Update Getting Started guide, direct address

* docs: Delete unused image

* docs: Resize image

* docs: Resize image
2023-02-14 12:47:06 -05:00
Todd fe5b554370 AuthorizedDownstreamWorkers now separated from AuthorizedWorkers to maintain API compatibility (#2957)
* AuthorizedDownstreamWorkers now separated from AuthorizedWorkers to maintain API compatibility
2023-02-13 13:52:25 -08:00
Todd 3461caee41 fix downstream manager test (#2950) 2023-02-13 13:52:00 -08:00
Johan Brandhorst-Satzkorn cf412b95a2 fix: Support streaming HTTP responses (#2956)
* all: Upgrade listenerutil dependency

The new listenerutil implements http.Flusher, which is necessary
for streaming responses from the grpc-gateway to work.

* daemon/controller: Remove newline delimiter in streaming responses

The default gRPC-Gateway HTTPBody marshaler uses newlines
as a delimiter. This introduces newlines in our streamed responses.
Wrapping the default marshaler lets us define a nil delimiter, which
ensures our streaming responses are unaffected by the server side
chunking.
2023-02-13 14:56:53 -05:00
Michael Li bb6d1cad58 chore(enos): Reset status on job retry (#2954) 2023-02-13 14:00:23 -05:00
Michael Li 96918f0ab6 test(e2e/migration): Add additional resources to database before migrating (#2948) 2023-02-13 10:36:05 -05:00
Mark Collao 115b8fd5cb fix: update sec-scanner sha 2023-02-10 21:16:41 -06:00
Todd 1e89be1b1a Downstream worker connections are tracked by worker id (#2949)
When possible downstream workers will include their worker id information in
the connections they establish with the upstream using the nodeenrollment
library.  The tracking listener now tracks connections that are connected in
this same way instead of just connections of type *tls.Conn.
2023-02-10 15:27:42 -08:00
Mark Collao 5e3244a2e5 add security-scan workflow (#2945)
* add security-scan workflow

* remove uneeded branch; adopt .go-version

* fix bad yaml

* fix random newlines

* add copy
2023-02-10 11:12:56 -06:00
Johan Brandhorst-Satzkorn 4146c0c55d Upgrade Go version to 1.20 (#2898)
* chore: Upgrade Go version

* fix: Upgrade golangci-lint to support 1.20

* fix: Don't use t.SetEnv in parallel tests

This is a panic in Go 1.20 and it sounds like a recipe
for distaster in general.
2023-02-10 11:16:03 -05:00
Michael Li 9dcf605251 chore: Add slack notifications when e2e or bats tests fail (#2946) 2023-02-10 09:27:26 -05:00
Michael Li 62e7335c54 chore: Update deprecated set-output command (#2879)
GitHub is deprecating `set-output`. Updating these commands to their new recommended approach.
2023-02-09 17:08:40 -05:00
claire labry d611ce8fd6 add changelog update for vendor label for linux packaging (#2921) 2023-02-09 15:46:09 -06:00
Jeff Mitchell d15af1d5f3 Remove incorrect assertion that public_addr can be a go-sockaddr template 2023-02-09 14:19:06 -05:00
Mike Baum 0dc140045a [QT-400] Fix doormat hc-service-uri for ci bootstrap ci doormat role (#2944) 2023-02-09 11:23:52 -05:00
Todd f7030513c1 Update documentation to encourage using "hcp_boundary_cluster_id" (#2940) 2023-02-08 13:38:13 -08:00
Irena Rindos ffd59fa87a chore: update sdk/api deps (#2938)
* chore: update sdk/api deps
2023-02-08 15:23:25 -05:00
Michael Li fcddd972bf test(e2e): Add test for boundary version (#2933)
During testing, there was an issue observed where some additional characters were added to the version output. This test validates that output.
2023-02-08 14:03:02 -05:00
Robin Beck d7b2239bb8 adds cve link (#2934) 2023-02-08 11:45:07 -07:00
3dce39decf docs: Create 0.12.0 release notes (#2926)
* docs: Create 0.12.0 release notes

* docs: add job run table enhancement

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

Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>

* Apply batch of suggestions from code review

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

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

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

* docs: adding HCP content

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

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

* docs: fix typo

---------

Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Co-authored-by: Robin Beck <stellarsquall@users.noreply.github.com>
2023-02-07 17:37:27 -05:00
Michael Li d1429a40df chore(enos): Remove bats test from running in enos (#2929)
* chore(enos): Remove bats tests from enos

* chore(enos): Update cache name to match vault version
2023-02-07 16:30:38 -05:00