Commit Graph
1762 Commits
Author SHA1 Message Date
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
Todd e4d1e501cf fix(warehouse): Handle duplicate addresses when migrating into wh_network_address_dimension (#1860) 2022-02-15 15:49:41 -07:00
Irena Rindos c6c10cbec7 Merge pull request #1859 from hashicorp/irindos-remove-terminate-session
refactor(session): Remove dead session termination code
2022-02-15 06:39:43 -08:00
Irena Rindos 5d6aa3b729 refactor(session): Remove dead session termination code 2022-02-15 08:55:25 -05:00
Todd 11ce54f8fb Add DW network address dimension tables (#1855) 2022-02-14 16:30:18 -07:00
Louis Ruch 8cab9a4315 feat(scheduler): Update job description on conflict (#1852) 2022-02-11 17:20:19 -08:00
Todd 3242d3936e Add test coverage for dns names on a host when authorizing a session in target_service_test.go. Add the recent fixes to the changelog. (#1854) 2022-02-10 16:06:03 -07:00
Justen Walker bd30ff4140 fix(controller/targets): authorize-session should allow h_ ids (#1853)
* fix(controller/targets): authorize-session should allow h_ ids

The targets controller previously only allowed hosts from a static catalog
since it checked for the ID subtype from the static package.

This change validates host ids with the plugin.Subtype as well

Fixes: #1850

* test: cover authorize-session with host id

Add a regression test to cover the case where an explicit host ID was
given when calling AuthorizeSession
2022-02-10 13:59:57 -07:00
Justen Walker 6166d2240f bug(plugin): Fix incorrect use of WithIpAddrs in Repository.Endpoints (#1849)
When creating the options for the preferencer, this used WithIpAddrs for both the host addresses and also DNS names. This causes errors when a host contains DNS names that are not IP addresses (ie: whenever dns names are present).

This change will:
- Replace WithIpAddrs with WithDNSNames option for DNS Names when constructing options for the preferencer.
- Add a test which includes a DNS name to prevent regressions

Fixes #1848
2022-02-10 13:59:35 -07:00
Irena Rindos befdc7612c Merge pull request #1842 from hashicorp/irindos-circli-proto-delta
ci(proto): Detect unchecked API and proto changes
2022-02-10 06:55:05 -08:00
Irena Rindos d57603022a ci(proto): Detect unchecked API and proto changes 2022-02-10 09:08:21 -05:00
Timothy Messier 60bbadd125 chore: Set next version to 0.7.5 (#1847) 2022-02-09 16:12:53 -05:00
Louis Ruch aaaf0241ff bug(host): Fix sync job failure blocking other set syncs (#1841)
During the plugin_host_set_sync job, a single set failing to  sync
can cause all following syncs to fail.
2022-02-04 12:02:37 -08:00
modrake 2f7b4e5451 Docker version parity to reduce oss->ent merge conflicts (#1843) 2022-02-04 09:54:26 -08:00
Timothy Messier 8557442370 ci: Add plugin compile step (#1840)
Some OS build steps were not compiling the plugins before compiling the
boundary binary. This resulted in binaries that did not have plugins
included, and would result in an error when starting a boundary server.
2022-02-02 17:29:29 -05:00
Dylan StaleyandRandall Morey 7bbe44a029 website: display warning in IE 11 (#1829)
* feat: display warning in IE 11

* Use innerHTML instead of manual DOM

Co-authored-by: Randall Morey <randall@hashicorp.com>

* link to HashiCorp IE11 deprecation page

Co-authored-by: Randall Morey <randall@hashicorp.com>
2022-02-01 12:20:52 -08:00
Haotian fa00a06bef feat(host): Add host set information to static host (#1828)
* feat(host): Add host set information to static host

Updates LookupHost and ListHost API to include sets a static host is part of, as like with plugin hosts.

* test: updated TestList_Plugin and TestCrud to be more consistent under race conditions
2022-02-01 10:06:13 -08:00
84f6cc698c Onboard Boundary to CRT (#1786)
Onboard Boundary to Common Release Tooling

Co-authored-by: mdrake <mdrake@hashicorp.com>
Co-authored-by: jeanneryan <jeanneryan@hashicorp.com>
2022-02-01 07:41:27 -08:00
Jeff Mitchell 5743580ca5 Update authenticate command/subcommands help text (#1835)
* Make it clear in the subcommands that the given strings are examples
* Add an OIDC example to show that there are different types
* Remove password flag from examples
2022-01-31 11:50:45 -05:00
Noel Quiles 029569a201 website: Add Demandbase tag to consent manager (#1832)
* chore: Add Demandbase tag to consent manager

* fix: Add services to manager options
2022-01-28 13:30:36 -05:00
Irena Rindos 86245c48da Merge pull request #1824 from hashicorp/irindos-fix-session-termination-msg
bug(connect): Fix Session has expired messaging
2022-01-18 12:50:43 -08:00
Irena Rindos 52e07931e7 Merge pull request #1822 from hashicorp/irindos-fix-createSession-ordering
bug(session): Fix CreateSession foundStates logical ordering
2022-01-18 12:48:06 -08:00
Louis Ruch 74e2bcdb52 chore(release): Bump website version to 0.7.4 2022-01-18 11:48:25 -08:00
Irena Rindos 24ae5dfe94 bug(connect): Fix Session has expired messaging 2022-01-18 13:38:12 -05:00
Irena Rindos 963fbcbdf2 bug(session): Fix CreateSession foundStates logical ordering 2022-01-14 14:31:08 -05:00
Louis Ruch 221acff4cc chore(release): Bump Boundary version to 0.7.4 2022-01-13 14:22:47 -08:00
Louis Ruch ecbeab9035 chore(release): bump api/sdk versions 2022-01-13 14:22:37 -08:00
Louis Ruch 61fe77572e chore: make tools & make gen 2022-01-13 14:03:46 -08:00
Louis Ruch ac78ee6315 Merge pull request #1819 from hashicorp/louis-scheduler
feat(scheduler): Add support for run now option
2022-01-13 12:22:06 -08:00
Louis Ruch c4506ec743 feat(scheduler): Add support for run now option 2022-01-13 11:51:53 -08:00
Jeff Mitchell 5d33393cbd Add target resource listing to default roles (#1803)
This addresses the issue of a user being created in a normal or
dev environment that is given access to authorize sessions against
specific targets but the permission hasn't been configured for the UI
clients to actually list them.

Resolves #1791
2022-01-13 09:26:35 -05:00
Timothy Messier cf0a95f260 Merge pull request #1820 from hashicorp/tmessi-fix-docker-build-dev
Replace XC_OSARCH with GOOS and GOARCH
2022-01-13 08:55:26 -05:00
Timothy Messier 0c3218ec3e docs(website): Update cross-compiling notes
This replaces references to XC_OSARCH with GOOS and GOARCH.

See: 1c8e0ed1e1
2022-01-13 08:54:50 -05:00
Timothy Messier 36664d433b chore(makefile): Fix docker-build-dev target
This target is updated to set GOOS and GOARCH instead of XC_OSARCH since
the build script was updated to use these environment variables for
cross-compiling.

See: 1c8e0ed1e1
2022-01-13 08:54:50 -05:00
Irena Rindos 0a6e5470e0 Merge pull request #1793 from hashicorp/irindos-state-transitions
bug(session): Allow only valid state transitions
2022-01-13 05:50:43 -08:00
Irena Rindos edae7c899f bug(session): Allow only valid state transitions 2022-01-12 16:01:49 -05:00
Louis Ruch f8b2e99e11 Merge pull request #1815 from hashicorp/louis-decode-type
feat(target): Decode based on credential type
2022-01-10 10:45:26 -08:00
Louis Ruch a90f1f4eb1 feat(target): Decode based on credential type 2022-01-10 09:57:27 -08:00
Jim 591ec476e7 refactor: Update internal/db and oplog to use go-dbw package for database operations. (#1785)
* chore: Add new dbw dependency

* refactor: Convert to use dbw.DB

* refactor (db): Change GetTicket(...) signature

* feature (db tests): Added TestDeleteWhere(...)
Adding this allows us to eliminate a leak of the gorm library

* refactor: Add ctx to ScanRows(...) signature
This is required to refactor all the deprecated errors pkg calls.
This refactor required adding a context to quite a few call chains
and in particular the job scheduler bits

* feature (db/tests): Add support for test opt: WithTestLogLevel(...)
This test only option allows callers to specify a log level for the
underlying db package (where supported/applicable) when calling
TestSetup(...)

* refactor (db): Simplify Db type
Only store the underlying *DB and create the *RW on demand when
needed.

* refactor (oplog): Port to using dbw pkg for db operations

* refactor (db): Remove gormDB(...) func

* tests (db): Add unit tests for TestDeleteWhere(...)

* chore: make fmt changes to formatting
2022-01-05 14:38:38 -05:00
Noel Quiles 002d004114 website: Upgrade deps (#1807)
* Update @hashicorp/react-subnav

* Upgrade deps to latest
2021-12-23 16:41:34 -05:00
Jeff Mitchell 75a38e2505 Import TCP subtypes in test controller 2021-12-22 22:53:52 -05:00
Alex Carpenter c69e96969e fix: redirect /home to / (#1788) 2021-12-22 09:42:03 -05:00
A-440Hz 3afbfbf8c2 fix(cli): Remove duplication of target host sources (#1805)
fix(cli): Remove duplication of target host sources
2021-12-17 19:11:28 -08:00
Louis Ruch 58aca600a4 Merge pull request #1804 from hashicorp/louis-egress
Egress credentials
2021-12-17 12:51:01 -08:00
Louis Ruch 425a56179f feat(worker): Implement egress credentials
Egress credentials Issued during AuthorizeSession are stored in the
session repo. These credentials are retrieved and stored in-memory on the
worker during the LookupSession call. Each proxy handler will need to
handle the credentials as required.
2021-12-17 11:27:10 -08:00
Louis Ruch 5fe23ab14d feat(session): Store session credentials
Creates a new session_credential table and repository functions
to add and list credentials attached to a session. All credentials
are encrypted using the session scope id.
2021-12-17 11:26:52 -08:00
Timothy Messier 27ebfa1125 Merge pull request #1796 from hashicorp/llb-credential-type-mapping
This allows users to set the type of credential that a credential
library will provide.

A User Password credential type and an Unspecified credential type are included
with the expectation that additional credential types will be added in the
future. This change also adds the credential type attribute to existing
credential libraries and sets it to Unspecified. The credential type can
only be set when a credential library is created.

The vault credential library includes functionality for converting a
Vault Secret into a User Password Credential. This mapping is enabled by
default, however, the user can override the attributes used for this
mapping.
2021-12-17 14:03:58 -05:00
Louis Ruch ff3be7a74b Merge pull request #1802 from hashicorp/louis-recover
feat(server): Add grpc_middleware recovery interceptor
2021-12-16 21:03:03 -08:00