Commit Graph
2878 Commits
Author SHA1 Message Date
Michael Li 33f3a5ff9c test(e2e): Add test that uses new worker resource (#3177) 2023-04-24 16:58:39 -04:00
Zhihe Li 98a6318760 Bump UI commit (#3178) 2023-04-24 11:28:36 -04:00
Jeff Mitchell 413ec67ace Fix description of port to not be optional 2023-04-21 12:40:17 -04:00
Jeff Mitchell bc47a60f2f Update sdk dep 2023-04-21 10:38:35 -04:00
Jeff Mitchell 8ae839f9ee Update api dep 2023-04-21 10:04:17 -04:00
Jeff Mitchell e7bf134710 Enhance tcp client port vet logic (#3175) 2023-04-21 09:34:59 -04:00
Jeff Mitchell 20391e3503 Add default client port to targets and use in connect command (#2767) 2023-04-21 06:50:53 -04:00
Dan Heath 6db6cc18e2 docs: Credential management documentation (#3147)
* docs: Create credential management documentation

* docs: Copy edits

* docs: Update graphics

* docs: Additional copy edits

* docs: Fix typos

* docs: Reduce size of graphics

* docs: Fix pixel density in brokering graphic

* docs: Increase size of graphics

* docs: Fix pixel density in brokering graphic

* docs: Fix issue with brokering image size

* docs: Adjust cred brokering image width

* docs: Adjust width of brokering graphic

* docs: Specify width for gifs

* docs: Undo width settings on gifs

* docs: Test brokering gif at 75%

* doc: Test resized images in preview deployment

* docs: Resize gifs smaller

* docs: Resize gifs a bit larger

* doc: Cleanup extra graphics, test zoomable link

* docs: Test gif loop with original

* docs: Update gif with loop, fix legacy link

* docs: Clean up file names, add updated graphics

* docs: Increase size of terminal gif

* docs: Update terminal graphic

* docs: Update with larger terminal graphic

* docs: Move large graphics to DatoCMS
2023-04-20 16:11:37 -04:00
Jim 40d888c7f2 fix (test): update how we determine when/if a test is running. (#3169) 2023-04-20 08:34:43 -04:00
Michael Li d25f4493d3 test(e2e): Improve reliability of enos docker scenario (#3167) 2023-04-19 17:03:38 -04:00
Damian Debkowski c5b1b7bbc7 fix(handler): return human readable error for json cred w/ empty object (#3109)
* fix(handler): return human readable error for json cred w/ empty object

* fix(handler): sync error messages for create/update json cred

* fix(handler): sync error logic for create/update json cred
2023-04-19 10:17:07 -07:00
Stan Ryzhov 5e9ffd57d4 test(e2e): add test to verify user is logged out on its auth-token deletion (#3160) 2023-04-17 22:16:55 -04:00
Hugo a69e963c87 chore: Update host plugins to the latest versions (#3164) 2023-04-17 17:40:04 +01:00
Jim a4f54cb98f refactor (events): QOL fix: turn off events for tests. (#3163) 2023-04-14 20:01:14 -04:00
dependabot[bot] 8c265bf7c1 chore(deps): bump actions/cache from 3.2.6 to 3.3.1 (#3131)
Bumps [actions/cache](https://github.com/actions/cache) from 3.2.6 to 3.3.1.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/69d9d449aced6a2ede0bc19182fadc3a0a42d2b0...88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-14 14:43:21 -04:00
Michael AnthonyandJosh Brand 073f8fe98e [QT-405] Create solo worker module (#3148)
* Create solo worker module

---------

Co-authored-by: Josh Brand <jbrand@hashicorp.com>
2023-04-12 14:21:23 -06:00
Michael Li 8c5464802d chore: Add write permission to milestone checker (#3155) 2023-04-10 08:46:49 -04:00
Michael Li f816611dd0 chore: Update milestone-checker to use newer version of node (#3154) 2023-04-07 14:36:35 -04:00
Michael Li 29c268d5ac chore: Fix issues detected by GitHub actions linter (#3139) 2023-04-07 12:05:05 -04:00
Stan Ryzhov c675dc07ec test(e2e): Verify different credentials are brokered to target (#3149)
* test(e2e): Verify json credentials are brokered back

* test(e2e): Get expected json credentials from file

* test(e2e): Check private key credentials are brokered to target

* test(e2e): Regenerate test .pem file for every test
2023-04-05 19:42:46 -04:00
Johan Brandhorst-Satzkorn c1a61b9e34 internal/tests/cluster: switch flaky test to polling (#3153)
* internal/tests/cluster: switch flaky test to polling

Also extend deadline from 10 seconds to 1 minute, hopefully
this should fix any flakiness in this test.

* fixup! internal/tests/cluster: switch flaky test to polling
2023-04-05 18:45:52 -04:00
Johan Brandhorst-Satzkorn ecdb77b584 internal/db/sqltest: fix sessions aggregate (#3152)
The sessions aggregate was inserting host_id and host_set_id,
columns which are no longer present on the session table. Also
fix the test that guards against regressions like this in the future.
2023-04-05 12:57:25 -04:00
Jim d59ca6b7d1 fix (workflows): use github ctx for repo name in legacy link checker (#3146) 2023-04-04 15:44:23 -04:00
Hugo 5926dc40ba fix(host/plugin): Remove dead code and duplicate imports 2023-04-04 18:51:04 +01:00
Hugo Vieira e467cbbfa2 feat(cmd): Display plugin host external name if present 2023-04-04 18:51:04 +01:00
Hugo Vieira 45dc8251ec feat(api): Support plugin host external_name field 2023-04-04 18:51:04 +01:00
Hugo Vieira 2ff9b8efac feat(host/plugin): Support External Name field
The new `ExternalName` field is an optional field that is used to store
the cloud providers' human-identifiable name for a given compute
instance. This field is not user-editable, but it is kept in sync with
the cloud provider's through Boundary's `SetSyncJob`.
2023-04-04 18:51:04 +01:00
Michael Li 26ebaefd70 test(migration): Use docker mirror (#3144) 2023-04-04 13:50:17 -04:00
Jeff MitchellandIrena Rindos bdf7bf7702 Do not allow PKI-KMS workers to have names updated via API (#3143)
Do not allow PKI-KMS workers to have names updated via API

This would cause their public IDs to change, which we do not want.

Descriptions are also disallowed, since those come from the config file.

This also adds logic to allow upgrading from old KMS method to new, with
a test.

Co-authored-by: Irena Rindos <irenarindos@users.noreply.github.com>
2023-04-03 17:44:41 -04:00
Irena RindosandDan Heath b4a8032649 docs: Update website to include SIGHUP, SIGTERM, and SIGINT behaviour (#3140)
* docs: Update website to include SIGHUP, SIGTERM, and SIGINT behaviour

Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com>
2023-04-03 15:58:45 -04:00
Mike Baum 55af9f3072 [QT-516] Add a step to the enos run workflow to automatically upload application logs when a scenario fails (#3137) 2023-04-03 14:42:30 -04:00
Jim 60723c070c feature (is_nil): support checking func for nil (#3142) 2023-04-03 14:20:07 -04:00
Haotian 5b26634b8a feat(ui): serve controller metadata from ui handler (#3120)
* adds noop metadata function to OSS UI handler
* removes old-style build tags for UI handler files
2023-03-31 13:09:48 -07:00
Bryce Kalow 5e43976947 chore: update dependency (#3138) 2023-03-31 11:18:28 -05:00
Jeff Mitchell 163ce184b8 KMS-PKI Workers (#3101)
This adds a new mechanism for worker authentication that uses the
third-party arbitration of the original KMS flow by leveraging
recently-added capabilities in nodeenrollment to support a registration
wrapper. This allows for workers to be registered to the system with
just a name and a matching wrapper, while at the same time allowing
these workers to be used for private Vault access and multi-hop as they
contain per-worker encryption keys and support rotation.

Nodes using this mode will generate and rotate credentials in-memory
(using another recently added nodeenrollment capability) so will have a
new set of keys on every startup. This has the side effect of ensuring
that there is never a conflict or re-use of these credentials.

Note that the normal test worker flow was using the now-deprecated KMS
method; there is still a test that uses this (explicitly) but all other
tests using test workers that did not specify a specific PKI flow now
actually use this mechanism. This means there is fairly decent test
coverage in a general sense, plus the specific tests updated/added for
this feature.

This also adds a new KMS type that can be used to have
distinct KMSes for upstream authentication vs. accepting from
downstream.
2023-03-30 16:20:28 -04:00
Elim Tsiagbey 16f48686a7 Refactor Target Repository (#3092)
- Refactor the Target domain repository functions so that they no longer return 4 different types.

`Target` struct now contains `HostSource` & `CredentialSources` with Getters & Setters

- Extending `Target` to contain `HostSource` & `CredentialSources` enables `funcs` to just return `Target` instead of multiple return types.
This also allows easy future refactors and extensions of `Target`
2023-03-30 15:19:30 -04:00
Timothy Messier 743bbf88ac fix(cliui): Download correct artifact (#3134)
This was missed on the previous fix. It now references the correct
artifact name now that this is back to running as part of the build
workflow.

Blame: 181f0f1806
2023-03-30 10:28:27 -04:00
Timothy Messier 181f0f1806 fix(cliui): Call test-cli-ui workflow from build (#3126)
It seems the workflow_run trigger only calls the workflow as it is on
the default branch (ie `main`). This would make it difficult to make
changes to this workflow and set of tests.

Blame: e76b3b9511
2023-03-29 20:27:09 -04:00
Timothy Messier 87b5d1b21c Merge pull request #3044 from hashicorp/tmessi-ci-actionlint
This performs some final clean up of github actions as part of the
migration away from CircleCI
2023-03-29 16:05:50 -04:00
Timothy Messier 1806151392 ci(build): Set permissions for workflow 2023-03-29 18:39:03 +00:00
Timothy Messier e4fbc0281a chore(ci): Update and pin actions steps 2023-03-29 18:39:01 +00:00
Timothy Messier a7c11846d6 lint(ci): Address linter issue for workflow files 2023-03-29 18:38:50 +00:00
Timothy Messier e76b3b9511 ci(cliui): Move to separate workflow
This will run the cli ui (bats) tests in a separate workflow from the
build workflow. This takes advantage of the newer workflow_run event to
trigger the tests after the build has completed, so that the artifacts
from the build step can still be used.
2023-03-29 18:38:50 +00:00
Timothy Messier a241ca452c ci: Add actionlint workflow 2023-03-29 18:38:50 +00:00
Jamie Finnigan b3ff887bb0 remove repo-specific codeql action, in favor of centralized job (#3108) 2023-03-29 14:22:18 -04:00
dependabot[bot] 788c9f10e0 chore(deps): bump github.com/opencontainers/runc from 1.1.2 to 1.1.5 (#3123)
Bumps [github.com/opencontainers/runc](https://github.com/opencontainers/runc) from 1.1.2 to 1.1.5.
- [Release notes](https://github.com/opencontainers/runc/releases)
- [Changelog](https://github.com/opencontainers/runc/blob/v1.1.5/CHANGELOG.md)
- [Commits](https://github.com/opencontainers/runc/compare/v1.1.2...v1.1.5)

---
updated-dependencies:
- dependency-name: github.com/opencontainers/runc
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-29 12:24:25 -04:00
Conor McCullough 8b0f149882 Replace broken link (#3119)
Link to the old URL for the dynamic host catalog page removed, added the current valid path.
2023-03-28 15:41:55 -06:00
Johan Brandhorst-Satzkorn bc31892f29 internal/db: add set_once_columns function (#3117)
* internal/db: add set_once_columns function

Also replace existing before_soft_delete_credential_vault_store
function and trigger with the new function.

* internal/db/schema: add note to replaced definitions
2023-03-28 13:35:26 -04:00
Timothy Messier e4c656ae5d Merge pull request #3114 from hashicorp/tmessi-schema-diff-fix 2023-03-27 11:04:40 -04:00
Timothy Messier 9d2758368c doc(schema-diff): Add documentation on schema-diff script
This also will include a link to this documentation when leaving a
comment on a pull request.
2023-03-27 14:27:54 +00:00