Commit Graph

1298 Commits (4b526538af660cf4c29988cd514b18fe673dc8a8)

Author SHA1 Message Date
Timothy Messier 64ef193cfc test(account): Fix parallel validation tests
4 years ago
Timothy Messier e76c48ad36 feat(account): Mark auth_method_id as a source id for subtypes
4 years ago
Timothy Messier cc7e7429ab feat(account): Add domain file option
4 years ago
Timothy Messier 349e32afe4 feat(account): Use new filterable function to support filtering
4 years ago
Timothy Messier 3d58ce5f5c feat(subtypes): Add function to convert protobuf for filtering
4 years ago
Timothy Messier 198a39ef1e feat(subtypes): Add grpc interceptor for transforming attributes
4 years ago
Timothy Messier af93f7fccb feat(subtypes): Attribute field registration and lookup
4 years ago
Timothy Messier 185d8b392d refact(auth): Move subtype registration into global registry
4 years ago
Timothy Messier 31ef40ec5a feat(subtype): Add global registry
4 years ago
Timothy Messier 8cbbfbe3a0 feat(proto): Add new field option to indicate a in id for subtypes
4 years ago
Timothy Messier 760b090567 feat(proto): Add new option for proto files to set domain
4 years ago
Johan Brandhorst-Satzkorn 6e6efeee71 feat(account): Add gotags classification
4 years ago
Johan Brandhorst-Satzkorn ac5a1acca8 feat(account): Hide internal attribute fields
4 years ago
irenarindos eb43941771 refact(account): Use OneOf for Account attributes
4 years ago
irenarindos e76db2cd13 feat(proto): create custom option for attribute subtype
4 years ago
Johan Brandhorst-Satzkorn 6a37bd9710 Upgrade grpc-gateway version to v2.10.0 (#1954)
4 years ago
Zed 0c8dd578e6
Bump UI version for 0.8.0 release (#2029)
4 years ago
Jim addbfee593
chore: upgrade gofumpt to v0.3.1 (#2028)
4 years ago
Timothy Messier b5080c30c1
fix(config): Prevent panic when setting audit config filter orverrides (#2021)
4 years ago
Johan Brandhorst-Satzkorn 80b2c9230f
refact(authmethods): Add top level token type to Authenticate (#2010)
4 years ago
Jeff Mitchell bf9e7874b1
Use custom X.509 verification logic for proxy connections (#2008)
4 years ago
Todd 631de192d3
Initialize the build info metrics using init to always register to the DefaultRegistery. (#2020)
4 years ago
Jeff Mitchell 3d9e541930
Switch request.WithContext to request.Clone (#2017)
4 years ago
Todd 0b12feb953
Do not register the build_info collectors multiple times. (#2014)
4 years ago
Jim 4636efce8f
refactor (tests): GetEventDetails(...) will stop returning nil (#2019)
4 years ago
Jim cb93c6bdfd
chore: update auditResponseInterceptor const op (#2018)
4 years ago
Hugo cc54a834e8
feat(worker): Instrumentation for Controller Cluster Communication (#1998)
4 years ago
Todd 36b7f3e1f8
Update the cluster server metrics to use the gRPC status.Handler. (#2000)
4 years ago
Haotian e3f72bd0a4
feat(metrics): add build info metric on server start (#1984)
4 years ago
Johan Brandhorst-Satzkorn 8d80d10ff7
fix(controller): Cancel tests on fatal errors (#1994)
4 years ago
Louis Ruch 9b48dbc2fd
fix(logs): Remove erroneous scheduler run logs at first run. (#1980)
4 years ago
Jim 8895bc08e0
fix (kms): properly reconcile DEKs for existing scopes (#1976)
4 years ago
Hugo Vieira 3564776517 feat(worker): Implement proxy handler websocket instrumentation
4 years ago
Louis Ruch e6b7b7f60a
feat(db): Suppress not found events during db lookups (#1979)
4 years ago
Johan Brandhorst-Satzkorn f2fa1142d3
fix(test): Remove uses of t.FailNow in goroutines (#1978)
4 years ago
Jeff Mitchell 1be55b50c7
Pull up Server to top level of Init command (#1959)
4 years ago
Jim 0ca86c8a2c
chore: remove unneeded ref to gorm.DB (#1971)
4 years ago
Todd fb068341a4
Update naming for initializing collectors and tweak some comments. (#1968)
4 years ago
Johan Brandhorst-Satzkorn b1d6a1da9a
Switch to buf for protobuf generation (#1944)
4 years ago
Jeff Mitchell 58a448fc6a
Put session ID in ALPN (#1966)
4 years ago
Haotian 62f0d18885
Initialize and provide handler for proxy worker http metrics (#1961)
4 years ago
Todd 20e6c0ce6c
Add collector updating interceptor to the controller cluster grpc server (#1964)
4 years ago
Jeff Mitchell 07dc3db974
Remove ALPN Muxer (#1965)
4 years ago
A-440Hz 95e1fe8df0 typo(metrics) changing response size to request size
4 years ago
Todd 3eb22b073a
Defines the controller api metrics and registers them at controller startup (#1917)
4 years ago
Hugo Vieira aae944be37 test(worker): Remove test-only hooks from actual code
4 years ago
Hugo Vieira 61e310998f refactor(worker): Decouple listeners/servers shutdown
4 years ago
Hugo Vieira 657b099440 refactor(worker): Ensure `startListeners` consistency with controller
4 years ago
Hugo Vieira 1ebd7deccf refactor(worker): Validate listener configuration in New
4 years ago
Hugo 244237cd2f
feat(controller): Add health endpoint (#1882)
4 years ago
Hugo Vieira eebdfb88dc refact(controller): Decouple listeners/servers shutdown from Worker
4 years ago
Hugo d438a6d2dd
Merge pull request #1907 from hashicorp/hugoamvieira-controller-start-listeners
4 years ago
Jeff Mitchell c99907c6c5
Update keyring deps to remove deprecation warnings (#1924)
4 years ago
Hugo Vieira b5ef468d33 refact(controller): Ensure deterministic listeners start order
4 years ago
Hugo Vieira 8d48a8515c refact(controller): Validate listener configuration in New
4 years ago
Lars Lehtonen b6ee5dc9cc
internal/session: fix dropped test errors (#1928)
4 years ago
irenarindos 0eb70b7942 bug(worker): create error and handle session cancel with no tofu token
4 years ago
Jeff Mitchell e596daf34d
Add hclog adapter and gating to eventer (#1915)
4 years ago
Jeff Mitchell 7eb29261b2
Update to go-kms-wrapping version 2, and plugin-based KMS (#1901)
4 years ago
Johan Brandhorst-Satzkorn 89273a2f3e
Update references to "make dev" (#1920)
4 years ago
Timothy Messier 9aa2d4cd84
test(session): Speed up some tests around dead worker cleanup
4 years ago
Timothy Messier 79670180a7
refact(session): Move domain logic of Worker Status into domain service
4 years ago
Timothy Messier cdb035f5fc test(worker_service): Add baseline tests for Status
4 years ago
Timothy Messier 4de6464978 refact(session): Make CloseDeadConnectionsForWorker more testable
4 years ago
Timothy Messier e0603534c0 lint(session): Whitespace and missing ; in sql queries
4 years ago
irenarindos 32132d6bc1 refactor(session connections): Refactor connection closure
4 years ago
irenarindos 3482f91a17 refactor(connections): Move connect connect to the Connection repo
4 years ago
irenarindos ac9fb8016f refactor(session connections): Worker only closes connections in memory on grace period expiration
4 years ago
Irena Rindos 5a2c0db586 fix(session connections): Create session connection repository
4 years ago
Louis Ruch f8b27645d9
fix(scheduler): Update job run query to not error on running conflict (#1914)
4 years ago
Irena Rindos bc6689fb16
docs(permissions): break permissions into sections (#1893)
4 years ago
Timothy Messier bdb98d508e
fix(genapi): Sort slice in removeDups template function (#1889)
4 years ago
Justen Walker 8279397dbb
fix(connect): do not panic on multiple `--` args (#1858)
4 years ago
Carlos Alcaide Corvo b529f4af44
Bump ui version (#1868)
4 years ago
Louis Ruch 4ed4575802 chore(fmt): make fmt
4 years ago
Todd 7ee1f74388
fix(hostsets/plugin): Only delete preferred endpoints when there are preferred endpoints to delete. (#1865)
4 years ago
Carlos Alcaide Corvo 360ff9cf2b
Update changelog with latest changes in the UI (#1866)
4 years ago
Todd e4d1e501cf
fix(warehouse): Handle duplicate addresses when migrating into wh_network_address_dimension (#1860)
4 years ago
Irena Rindos c6c10cbec7
Merge pull request #1859 from hashicorp/irindos-remove-terminate-session
4 years ago
Irena Rindos 5d6aa3b729 refactor(session): Remove dead session termination code
4 years ago
Todd 11ce54f8fb
Add DW network address dimension tables (#1855)
4 years ago
Louis Ruch 8cab9a4315
feat(scheduler): Update job description on conflict (#1852)
4 years ago
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)
4 years ago
Justen Walker bd30ff4140
fix(controller/targets): authorize-session should allow h_ ids (#1853)
4 years ago
Justen Walker 6166d2240f
bug(plugin): Fix incorrect use of WithIpAddrs in Repository.Endpoints (#1849)
4 years ago
Louis Ruch aaaf0241ff
bug(host): Fix sync job failure blocking other set syncs (#1841)
4 years ago
Haotian fa00a06bef
feat(host): Add host set information to static host (#1828)
4 years ago
Jeff Mitchell 5743580ca5
Update authenticate command/subcommands help text (#1835)
4 years ago
Irena Rindos 86245c48da
Merge pull request #1824 from hashicorp/irindos-fix-session-termination-msg
4 years ago
Irena Rindos 24ae5dfe94 bug(connect): Fix Session has expired messaging
4 years ago
Irena Rindos 963fbcbdf2 bug(session): Fix CreateSession foundStates logical ordering
4 years ago
Louis Ruch 61fe77572e chore: make tools & make gen
4 years ago
Louis Ruch ac78ee6315
Merge pull request #1819 from hashicorp/louis-scheduler
4 years ago
Louis Ruch c4506ec743 feat(scheduler): Add support for run now option
4 years ago
Jeff Mitchell 5d33393cbd
Add target resource listing to default roles (#1803)
4 years ago
Irena Rindos edae7c899f bug(session): Allow only valid state transitions
4 years ago
Louis Ruch a90f1f4eb1 feat(target): Decode based on credential type
4 years ago
Jim 591ec476e7
refactor: Update internal/db and oplog to use go-dbw package for database operations. (#1785)
4 years ago
A-440Hz 3afbfbf8c2
fix(cli): Remove duplication of target host sources (#1805)
4 years ago
Louis Ruch 425a56179f feat(worker): Implement egress credentials
4 years ago
Louis Ruch 5fe23ab14d feat(session): Store session credentials
4 years ago
Timothy Messier 27ebfa1125
Merge pull request #1796 from hashicorp/llb-credential-type-mapping
4 years ago
Louis Ruch d46daa573f feat(server): Add grpc_middleware recovery interceptor
4 years ago
Louis Ruch b8afd4f50c
feat(cli): Display credential type in library list
4 years ago
Michael Gaffney 4636d34943
test(credential): Add credential mapping override to delete test
4 years ago
Michael Gaffney 888f8cea03
test(credential): Add credential mapping override to list test
4 years ago
Louis Ruch e75f1d2f73
feat(credential): Add mapping override update for API/SDK/CLI
4 years ago
Louis Ruch da20a8b434
feat(credential): Add support for Vault KV2
4 years ago
Michael Gaffney 035182681a
feat(credential): Allow updating of credential mapping overrides
4 years ago
Michael Gaffney 9cdfc5f986
docs(vault): Add comment about the default value of HttpMethod
4 years ago
Michael Gaffney ba8188e6d7
feat(credential): Add mapping override to credential library on lookup
4 years ago
Michael Gaffney 0e637f47b5
feat(credential): Use credential type when issuing credentials
4 years ago
Michael Gaffney 17762ed01e
test(vault): Fix use of assert library in tests
4 years ago
Louis Ruch 1cc35fb0df
feat: Credential library mapping API/SDK/CLI on create path
4 years ago
Michael Gaffney c317901db4
feat(credential): add credential type to credential library on create
4 years ago
Louis Ruch f4b9b83caf fmt: Fix import groups
4 years ago
Louis Ruch 9b39345c7f bug(credential): Fix panic in credential Issue
4 years ago
Carlos Alcaide Corvo 86eead3a3e
Bump UI version (#1795)
4 years ago
Louis Ruch 72a15b8d2d
bug(target): Add *-host-sources actions to target service (#1794)
4 years ago
Hugo Vieira 5f36057f65 feat(config): Env/file support for Worker description
4 years ago
Jim baa1d88f1f
feature: Add client ip to inbound request information (#1678)
4 years ago
Irena Rindos 7bf787ec40 feat(config): Add env and file support for database max connections
4 years ago
Hugo Vieira 8462a65637 feat(config): Add env/file support to Worker.Controllers field
4 years ago
Hugo Vieira a097b6db8f fix(server): Duplicated Worker nil check inside Worker nil check stmt
4 years ago
Irena Rindos 5601f2bc5f feat(config) Add env and file support to Plugins execution dir
4 years ago
Irena Rindos 1f43ec174f
Merge branch 'main' into irenarindos-env-file-controllerconfig
4 years ago
Hugo faabfc0002
Merge pull request #1758 from hashicorp/hugoamvieira-env-file-workertags
4 years ago
Chris Marchesi bf18555d5e
internal/host/plugin: remove custom queries for secrets (#1676)
4 years ago
Irena Rindos 161916f6d3 feat(config): Add env and file support to Controller description
4 years ago
Thor 8c842df8a8
Remove public_id and session id from Connection api (#1767)
4 years ago
Hugo Vieira 1576af70cc feat(config): Add env and file support to Worker Tags
4 years ago
Louis Ruch b692e0e54c
api(session): Add connection to api input (#1763)
4 years ago
Timothy Messier 0cfd8279b0
fix(controller/targets): Fix creation of credential libraries
4 years ago
Timothy Messier 533b434d1a
refact(controller/targets): Move tcp functionality into subpackage
4 years ago
Timothy Messier c9b99306e1
refact(target): Add NewFunc to registry
4 years ago
Timothy Messier 1ae388438f
feat(subtypes): Add function to provide all known prefixes
4 years ago
Thor 9f7c650101
api: Returns connections as part of sessions (#1714)
4 years ago
Michael Gaffney 72d4d6d205
fix(sql): Remove warning from create_time trigger (#1751)
4 years ago
Jim 983f7b019c
refactor (db): Remove unused gorm formatter (#1738)
4 years ago
Chris Marchesi 84febd9983
internal/host/plugin: ensure UpdateCatalog triggers updates for sets (#1736)
4 years ago
Hugo Vieira f1063a62a0 feature(config): add sockaddr template support
4 years ago
Hugo Vieira 21a771b581 test(servers base): add tests ahead of functionality change
4 years ago
Jeff Mitchell 5417cc5cb0
Fix setting nil attributes on host sets (#1746)
4 years ago
Jeff Mitchell 269fb94885 Add test controller option to not use a templated database
4 years ago
Jeff Mitchell 1c39691023
Fix setting host catalog attributes to nil (#1743)
4 years ago
Jeff Mitchell b2efce961d
Fix comment on sync_interval_seconds being invalid (#1745)
4 years ago
Jeff Mitchell dc2148496b
Actually enable loopback plugin in dev (#1742)
4 years ago
Louis Ruch 9bec68f32c
refact(servers): Cleanup redundant if else (#1741)
4 years ago
Chris Marchesi 9e976cb4ae
internal/host/plugin: Fix TestUpdateSet (#1735)
4 years ago
Jeff Mitchell 95568ef07f
Fix tests using multiple controllers (#1734)
4 years ago
Jeff Mitchell ad8ce50f69
Fix Windows (#1733)
4 years ago
Jeff Mitchell 5559cf54d3
Don't always assume plugins should be activated (#1732)
4 years ago
Jeff Mitchell 3b83184700
Add missing read only check on secrets hmac field in handler (#1729)
4 years ago
Jeff Mitchell 9213e4b821
Handle same-named options across subtypes (#1728)
4 years ago
Todd 18de3653f5
Set sync job still syncs when plugin reports no hosts in sets (#1726)
4 years ago
Todd 63bf60654e
Add plugin info on the CLI when reading a host. (#1725)
4 years ago
Michael Gaffney 55c6c5872f
feat(sqltest): Make container port configurable
4 years ago
Todd 056e72491d
Attempt to fix the ci error. (#1723)
4 years ago
Louis Ruch 0cf9573f24 chore: make fmt
4 years ago
Louis Ruch c33efbf223
chore: make fmt (#1721)
4 years ago
Todd 1417e17909
Fix nil pointer error when listing by non existing host catalog. (#1720)
4 years ago
Jim 5232be905b
fix (auth/oidc): Revert to working version of oidc acct upsert (#1719)
4 years ago
Todd b1c53951d5
Use the correct collection actions response when updating host catalogs. (#1718)
4 years ago
Jeff Mitchell 866bfceefc
Add secrets_hmac to host catalog output (#1712)
4 years ago
Dharini Jeeva c6e7abc9e0
update ui version (#1717)
4 years ago
Jim ebea283421
fix (kms): Add kms.ReconcileKeys(...) to fix missing audit DEK scenario (#1711)
4 years ago
Thor 7fa2cd2526
rename migration from 01-09 after bad merge (#1709)
4 years ago
Thor ad31b6d6c3
repo: Return connection informat in Session response object (#1690)
4 years ago
Jeff Mitchell 8cd8453113 Update dev loopback host plugin flag name
4 years ago
Jeff Mitchell 8110e0eab3
Increment version of host during updates (#1707)
4 years ago
Jim 1b6c9a25c8
Add more opts when using Create + WithOnConflict (#1706)
5 years ago
Jeff Mitchell b3fd23863f
Add external ID to host output (#1705)
5 years ago
Todd 46a1edcb3b
Add DNS Names and IP Addresses to the CLI output. (#1701)
5 years ago
Todd 78dc6cf370
OnConflict constraints for adding host ip and dns names in upsertHosts (#1700)
5 years ago
Jim c6d79bc911
feature (db): Add WithOnConflict support to CreateItems(...) (#1699)
5 years ago
Todd 5d2b0e94aa
Update sync interval seconds field. (#1698)
5 years ago
Todd Knight 5850001a07 Rename file to match others in directory and remove TODO.
5 years ago
Todd b16ce175e5
Fix secrets clearing bug in update. Changes to update count behavior for catalogs (#1691)
5 years ago
Todd 5cfcc41f00
Fix bug for adding preferred endpoint when non existed prior. (#1692)
5 years ago
Todd Knight f41bceda83 Merge from main and `make gen`
5 years ago
Todd Knight 884e1f2d18 Merge branch 'main' into plugin-hostcatalogs
5 years ago
Jim f46803d808
feature (authmethod): Add managed grps perms to auth collection actions (#1695)
5 years ago
Todd 61f9d1f6af
Add update set handler and sdk functionality (#1684)
5 years ago
Jim 1ac151100e
docs (internal/db): Add docs Update/Delete operations using WithWhere (#1687)
5 years ago
Todd 29b4537d3b
Reference PreferredEndpoints by top level struct name (#1688)
5 years ago
Jeff Mitchell 30e9f944a2
Add sync interval to host sets (#1680)
5 years ago
Todd Knight dba7c6b531 Fix value of op constant for syncSets
5 years ago
Chris Marchesi c2cd6febca
internal/host/plugin: add UpdateSet (#1686)
5 years ago
Todd 2229d1a819
Call OnCreate or OnUpdate on the plugin after db constraints are checked (#1683)
5 years ago
Todd 050553ffcf
Add update catalog support for plugin based catalogs in handler and go sdk (#1673)
5 years ago
Jim c047c4d89d
refactor (db): Remove the internal/db test tables from the migrations (#1675)
5 years ago
Jim 048fceaf54
feature (workers): Add audit events for worker requests (#1681)
5 years ago
Jim b96f57ec4e
fix (events): Only "sign" audit events (#1677)
5 years ago
Jeff Mitchell 48ac8b8f0b Merge branch 'main' into plugin-hostcatalogs
5 years ago
Jim eecd878b36
feature: Add signing (hmac-sha256) of audit entries (#1666)
5 years ago
Chris Marchesi 157f1a091b
internal/host/plugin: add update catalog test for empty/same description (#1672)
5 years ago
Timothy Messier 242e353f18
fix(schema): Prevent duplicate versions per edition (#1670)
5 years ago
Chris Marchesi 0670e272e3
internal/host/plugin: Add UpdateCatalog (#1634)
5 years ago
Jim b6ad76e4d2
fix (db): Clean up tests a bit (#1669)
5 years ago
Chris Marchesi 165cc5ef1b
fix ineffectual assignment to err in DeleteCatalog (#1664)
5 years ago