Commit Graph
2850 Commits
Author SHA1 Message Date
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
Timothy Messier 04a6c310ee fix(schema-diff): Include foreign key constraints in diff
With the change to report changes to constraints instead of all of the
post-data section, foreign key constraints where no longer captured in
the diff. This now extracts the foreign key constraints and generates a
diff of them between versions.

Blame: b6d58d0c42
2023-03-27 14:27:54 +00:00
Michael Li 28b98348cc test(e2e): Refactor WaitForSessionStatus methods (#3115) 2023-03-27 09:50:31 -04:00
Elim Tsiagbey b2376356dd Bats Tests: Target Host Sources (#3107)
* Bats Tests: Target Host Sources

- Add bats test coverage for adding a Host Source to a Target
- Create `target_host_sources.bash` file with helper functions for bats test file

## Considerations
Created new resources like a target & host catalog instead of using already created resources because the changes could affect existing tests and it made it easy to change the newly created resources
2023-03-24 17:38:39 -04:00
Johan Brandhorst-Satzkorn e3fc289733 Update buf dependencies (#3116) 2023-03-24 17:01:10 -04:00
Dan Heath d1e30af9ce docs: Add links to new tutorials (#3106)
* docs: Add links to new tutorials

* docs: Make heading plural

* docs: Small rewrite to force a commit
2023-03-23 13:56:13 -04:00
Jim 63a2b62b85 chore (deps): update GKW and protobuf; and run "make gen" (#3111) 2023-03-22 14:32:52 -04:00
Michael Li 8c796d0fc9 chore(enos): Use docker image generated from code (#3100) 2023-03-22 10:47:17 -04:00
Jim e357f6df7f chore: update go version to 1.20 (#3105)
* chore: update go version to 1.20
2023-03-21 15:32:35 -04:00
Jim 76a54a989b chore: add buf upgrade commit to .git-blame-ignore-revs (#3103) 2023-03-20 14:15:04 -04:00
Michael Li 87c80f99dc chore: Remove extraneous fail-on-cache-miss attribute (#3104)
Since this step is a setup step, there shouldn't be an expectation that the cache is present. Removing this attribute gets rid of that requirement.
2023-03-20 13:02:40 -04:00
Jim 982c9c263c chore: update buf version to 1.15.1 (#3102) 2023-03-20 10:37:40 -04:00
claire labryandSarah Thompson bf955b60d4 Try retries on test failures (#3099)
* try-retries-on-test-failures

* remove extra step

* fix spacing

* Pin retry action and fix merge conflict

* Update test.yml

* Uses before name

* hopefully this works

---------

Co-authored-by: Sarah Thompson <sthompson@hashicorp.com>
2023-03-17 11:53:12 -05:00
claire labry edb5498cc0 Remove Test cron (#3089)
* bump to 20 runs of test workflows per hour

* remove test cron
2023-03-17 11:04:34 -05:00
Dan HeathandRobin Beck e6e666443d docs: Update FAQs with IAM role answer (#3093)
* docs: Update FAQs with IAM role answer

* docs: Cut first sentence after review

* Update website/content/docs/troubleshoot/faq.mdx

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

* Update website/content/docs/troubleshoot/faq.mdx

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

* Update website/content/docs/troubleshoot/faq.mdx

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

---------

Co-authored-by: Robin Beck <stellarsquall@users.noreply.github.com>
2023-03-17 09:31:09 -04:00
Dan Heath fd1140236e docs: Update what is Boundary (#3033) 2023-03-17 09:30:55 -04:00
Michael Li 05eb6fba63 Revert "chore(enos): Pin terraform to 1.3.9 to mitigate bug (#3087)" (#3094) 2023-03-16 16:54:47 -04:00
Jeff Mitchell 6fd740d619 Update changelog 2023-03-16 10:19:27 -04:00
Jeff Mitchell fc664eb35f Improve grant validation (#3081)
This adds several relationships into the resource package that are then
made use of to improve the grant validation that runs during Parse. By
understanding mappings between ID and resource type the validation
checks can far better align with actual allowed grant formats so we can
find several common misunderstandings before they simply result in an
authorization failure.

In the future some of these functions could be used in the logic in the
actual ACL checks but it's not currently necessary and I don't want to
lump that change in with this.

Note that the tests have not meaningfully changed, but they _have_ had
to be updated because the stricter validation is actually catching
issues.
2023-03-16 10:11:55 -04:00
dependabot[bot] ef37369c2b chore(deps): bump json5 from 2.2.0 to 2.2.3 in /website (#2802)
Bumps [json5](https://github.com/json5/json5) from 2.2.0 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.0...v2.2.3)

---
updated-dependencies:
- dependency-name: json5
  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-16 08:01:53 -04:00
dependabot[bot] a711189337 chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2 in /website (#2682)
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  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-16 08:01:39 -04:00
dependabot[bot] afa2addf29 chore(deps): bump minimatch from 3.0.4 to 3.1.2 in /website (#2652)
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2.
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2)

---
updated-dependencies:
- dependency-name: minimatch
  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-16 08:01:26 -04:00
dependabot[bot] 8ef32cf46d chore(deps): bump semver-regex from 3.1.3 to 3.1.4 in /website (#2136)
Bumps [semver-regex](https://github.com/sindresorhus/semver-regex) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/sindresorhus/semver-regex/releases)
- [Commits](https://github.com/sindresorhus/semver-regex/commits/v3.1.4)

---
updated-dependencies:
- dependency-name: semver-regex
  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-16 06:54:38 -04:00
dependabot[bot] c967cde40a chore(deps): bump ansi-regex from 5.0.0 to 5.0.1 in /website (#2055)
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v5.0.0...v5.0.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  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-16 06:54:05 -04:00
dependabot[bot] 9ccc82a7c0 chore(deps): bump cross-fetch from 3.1.4 to 3.1.5 in /website (#2044)
Bumps [cross-fetch](https://github.com/lquixada/cross-fetch) from 3.1.4 to 3.1.5.
- [Release notes](https://github.com/lquixada/cross-fetch/releases)
- [Commits](https://github.com/lquixada/cross-fetch/compare/v3.1.4...v3.1.5)

---
updated-dependencies:
- dependency-name: cross-fetch
  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-16 06:53:40 -04:00
Jeff Mitchell 164e6cf212 Update nodeenrollment to 0.1.19 (#3090) 2023-03-15 17:28:45 -04:00
Michael Li 3dc1e2108a chore(enos): Use docker mirror (#3086) 2023-03-15 14:10:17 -04:00
Michael Li 4e697d4dd5 chore(enos): Pin terraform to 1.3.9 to mitigate bug (#3087) 2023-03-15 14:09:35 -04:00
Jim 5243209d96 chore (sdk/api) fix dep references to point to main (#3088) 2023-03-15 14:08:40 -04:00