Commit Graph
82 Commits
Author SHA1 Message Date
shadowdaoandClaude Sonnet 5.5 962d708fdd Rename Go module paths to repo.anhonesthost.net/CyberCoveLLC/threshold
Rename root, api and sdk module paths (imports, go.mod, go_package,
ldflags, build scripts, buf configs) and regenerate protobuf/gateway
code with the project's pinned toolchain. Wire identifiers unchanged.
api gets a local replace for sdk; root/api/sdk require v0.1.0.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 10:33:41 -07:00
Irena Rindos dfce6557d4 chore: replace docker with moby and update opentelemetry (#6717) 2026-05-14 10:43:19 -04:00
aditya2548 f8363dd06e [COMPLIANCE] Update Copyright & License Headers 2026-04-06 15:48:57 +05:30
Michael Li 21f67743d2 test(e2e): Add missing context (#6534) 2026-03-24 10:32:28 -04:00
Michael Li 147dcaafb7 fix(e2e): Address TestCliSearch flakiness (#6496)
* refact(e2e): Create start/stop cache methods

* fix(e2e): Address potential flake

* CR

* CR: Improve check

* CR
2026-03-23 15:03:53 -04:00
Michael Li f116a70b7d test(e2e): Move paginate test to its own file (#6440) 2026-02-17 09:54:29 -05:00
429247f407 [COMPLIANCE] Update Copyright Headers (#6282)
* [COMPLIANCE] Update Copyright and License Headers

* chore: make gen to generate files with copyright headers

* chore: update missed copyright headers

---------

Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
Co-authored-by: Justin Nguyen <justin.nguyen@hashicorp.com>
2026-01-28 11:05:07 -06:00
Michael Li 3e3ecd59c9 test(e2e): Reorganize tests to improve CI runtime (#6377) 2026-01-26 17:33:13 -05:00
Tony 29ba92e453 chore(e2e): update e2e tests to use t.Context() (#6316) 2026-01-06 17:05:30 -05:00
Tony 5560121c3b chore(e2e): fix linting errors for e2e files (#6307) 2025-12-23 12:13:41 -05:00
Tony 94c32d2173 ce: refact(e2e): Update WaitForSessionCli to accept e2e options
(cherry picked from commit ab3b5fb361e6f2f854f24306979565a28664fc0a)
2025-11-18 14:36:08 -05:00
Bharath Gajjala c39a50570a fix(db): vault password library migration adjustments and mapping overrides (#6229) 2025-11-13 12:49:25 -08:00
Justin Nguyen 1ac444d0a8 feat(cli): Add support for password credential in redis helper (#6213) 2025-11-13 12:28:54 -08:00
dillanb-hashi d0050ad881 refact(e2e): Enable token to be passed into methods (#6248)
* ce: chore(e2e): Address setup flakiness when getting hostname
* ce: refact(e2e): Enable token to be passed into methods
Co-authored-by: Michael Li <michael.li@hashicorp.com>
2025-11-13 13:19:33 -07:00
Michael Li 06d69f699e refact(e2e): Rename credential methods for clarity (#6219)
* refact(e2e): Rename method to usernamepassworddomain

* refact(e2e): Rename method to usernamepassword
2025-11-04 14:29:05 -05:00
4078838f56 feat(mongo): Add MongoDB connection support for Boundary CLI PORT (#6069)
* feat(mongo): add mongo for boundary cli

* Fix: remove changes added by mistake during testing

* feat(enos): install MongoDB client (mongosh) in e2e Docker test runtime

* Remove explicit Boundary DB/server startup from target_tcp_connect_mongo_test.go

* Add a full stop and trigger CI

* feat: add mongosh support to boundary connect mongo

* feat: add mongosh support to boundary connect mongo

* feat: add auth-source flag for MongoDB connect command

- Add -auth-source flag with default value 'admin' for root users
- Add BOUNDARY_CONNECT_MONGO_AUTH_SOURCE environment variable support
- Update documentation with new flag and correct mongosh default
- Improve MongoDB test with explicit auth-source parameter
- Fix Docker configuration formatting for better readability

This ensures MongoDB root users authenticate against the admin database
by default while allowing flexibility for custom authentication databases.

* test(e2e): Fixed false positive in Mongo connect test; use UriNetwork and container hostname

* make gen

* fix: Removed unnecessary variable containerName from the MongoDB E2E test

* feat(connect/mongo): Build URI compatible with mongosh and set default authSource

* feat(connect/mongo): use mongosh flags following PostgreSQL pattern

* remove 'connection string' from auth-source usage text

* Update internal/cmd/commands/connect/mongo.go

Co-authored-by: Bharath Gajjala <120367134+bgajjala8@users.noreply.github.com>

* remove 'connection string' from auth-source usage text

* refacotr: replace authSource flag with authenticationDatabase

---------

Co-authored-by: Enbiya <100806254+enbiyagoral@users.noreply.github.com>
Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
2025-10-09 11:13:47 -05:00
Michael Li 710337eaee test(e2e): Add test for connect redis (#6102) 2025-10-02 11:16:53 -04:00
Michael Li a3bb48e4d4 fix(e2e): Address flakes in TestCliSearch (#6080)
* fix(e2e): Address flake in session count

There was a failure where this returned 1 session when the test expected 0. This commit updates the search to only look at sessions within the created project in this test.

* fix(e2e): Address flake in cache status

This commit addresses a flake where the test attempted to stop and start a cache, but when it goes to start the cache, it claims that the cache is already running. A theory is that the test tries start the cache too quickly after stopping it. Now, we add in a status call to check the status of the cache before proceeding.
2025-09-30 09:20:02 -04:00
Justin Nguyen 4548028efe ICU-14484: redis connect helper (#6001)
* add redis connect support
* Setup redis in docker for e2e testing
* Update docs and changelog
* Commenting out e2e tests for now, will revisit in a separate task
2025-09-19 16:20:11 -05:00
Hugo 288f505482 refact(e2e): Modify CreateTargetApi to support different target types 2025-09-02 15:13:23 -04:00
Andrew Gaffney 822d1a7494 test(e2e): Static/vault-generic Username-Password-Domain tests (#1538) 2025-09-02 15:12:42 -04:00
Ryan DerrandBharath Gajjala 4d3cb76c28 Cassandra Connect Support (#5952)
* Init cassandra

* Init cassandra

* Initial Cassandra Command Support For cqlsh

* Add Make Gen

* adding cassandra test

* Cleanup cassandra docker setup

* Adding container wait

* Container restart

* Minor Fix

* Cleanup docker and test

* Adding final tests

* Removing comment

* Fixing cleanup (uncomment)

* Removing bad yaml

* Cleanup

* Cleanup

* Adressing PR review comments

* Adding test support

* fix spacing

* Adding changelog

* docs

* docs

* adding cassandra page

* nav

* Versbose commenting

* cleanup naming of file

* updating helper func to return errors

* doc change

* Removed an incorrect comment and now passing the config by reference.

* Comment cleanup

* Fix option warning in cassandra connect command (#5951)

* Add healthcheck to caller function as it's resposible for container health

* Resolve Comments

* Update Log Typo

---------

Co-authored-by: Bharath Gajjala <120367134+bgajjala8@users.noreply.github.com>
2025-07-30 16:21:11 -05:00
Richard Trinh d621219340 bug: fix multiple connections to same listen port hanging CLI (#5939)
* fix: return error when listen port already in use

* add err handling for proxy start

* add listen port and DefaultClientPort tests

* add err handling for listen info
2025-07-25 11:46:31 -07:00
8b8fb28228 feat: add MySQL command support PORT (#5891)
* feat: add MySQL command support

* Fix MySQL connection according to review feedback

* Update internal/cmd/commands/connect/mysql.go

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

* Update internal/cmd/commands/connect/mysql.go

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

* Update internal/cmd/commands/connect/mysql.go

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

* feat: add MySQL support to boundary connect

* docs: add MySQL to navigation menu

   Fixes content check error by adding mysql.mdx to docs navigation.
   MySQL page now appears in Commands > connect section alongside postgres.

* Update testing/internal/e2e/tests/base_plus/target_tcp_connect_mysql_test.go

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

* test: add containerized MySQL connection test for target functionality

* Remove MySQL environment variables from e2e test config

* test: move MySQL e2e test from base_plus to base folder

* Fix MySQL test to support both MySQL and MariaDB clients

* Fix MySQL test to support both MySQL and MariaDB clients

* lint cleanup

* adding error checks

* Make gen

* Test case testing

* Reverting bad comment

* cleaning up extra test file

* Add Mysql to runner (#5893)

* Adding back correct test file

* Removing base plus test file

* Removing base plus test file

* Revert "Removing base plus test file"

This reverts commit ace9cb3e90a028adc1f7c8ef55436ca843abfc15.

* forcing enos docker network name

* Revert "forcing enos docker network name"

This reverts commit 631bdb4a0ef87f5435e06456e8ec0a4573ab3e49.

* changing hosts to looks for sql container

* fix container name

* Adjusting for e2e tests and a bit of cleanup

* missed a commented string

* Bgajjala mysql e2etest v2 (#5900)

* Using Env Vars rather than parsing uri

* Comments fix

* spacing

* Update testing/internal/e2e/tests/base/target_tcp_connect_mysql_test.go

* Spacing

* Update internal/cmd/commands/connect/mysql.go

* adding error checks

* Make gen

* Update testing/internal/e2e/tests/base/target_tcp_connect_mysql_test.go

* Update internal/cmd/commands/connect/mysql.go

* Make gen

* derving target port from uri

* nit

* updating test to use url strings

* nit: spacing

* nit: code organization

* nit: code organization
Co-authored-by: Enbiya Göral

---------

Co-authored-by: Enbiya <menbiyagoral@gmail.com>
Co-authored-by: Enbiya Göral <100806254+enbiyagoral@users.noreply.github.com>
Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Co-authored-by: Ryan Derr <54389874+RyanDerr@users.noreply.github.com>
2025-07-08 17:07:27 -05:00
dillanb-hashi 75b3652645 test(e2e): Test for scopes permission defect (#5755)
* e2e(test): Test for scopes permission defect
2025-05-23 08:38:07 -07:00
Michael Li d935291f07 test(e2e): Better skip message (#5743) 2025-05-16 15:19:55 -04:00
Michael Li e97ce924b4 test(e2e): Skip pagination tests until large estimated count bug is addressed (#5742)
See ICU-16649
2025-05-16 14:32:08 -04:00
dillanb-hashi 32d139c45e test(e2e): Added a test for an unauthenticated user
* test(e2e): Added a test for an unauthenticated user

* CR: spelling
2025-04-18 08:11:30 -07:00
Michael Li e5b3f822c5 test(e2e): Address flake in search test (#5572)
* test(e2e): Address flake in search test

* CR: Add ticket
2025-03-06 09:46:11 -05:00
Johan Brandhorst-SatzkornandMichael Li 262693f47c Restore soft deleted users on authentication (#5549)
* internal/clientcache: restore user on login

A user that previously had its last auth token deleted
(for example, if they logged out), should be restored
again when they successfully authenticate again.

* internal/clientcache: delete keyringless expired auth tokens

Previously, we would only correctly delete auth tokens
that were expired (or deleted) if they were also in the
keyring.

* internal/clientcache: remove tautological condition

At this stage we already know that at is non-nil, because
the case above would have been true if it was nil.

* internal/clientcache: improve error handling

The previous error handling would have ignored API errors that were not ErrUnauthorized or ErrNotFound.
Handle all API errors the same as other unexpected errors.

* internal/clientcache: make errors distinct

These two error conditions are otherwise impossible
to tell apart.

* test(e2e): Update search test to catch bug (#5551)

---------

Co-authored-by: Michael Li <michael.li@hashicorp.com>
2025-02-24 09:16:07 -08:00
Michael Li 00a5a8f4c5 test(e2e): Address flakiness in bytes up/down test (#5450) 2025-01-22 11:14:00 -05:00
Michael Li 554195f49f test(e2e): Add test for connect http (#5423)
* test(e2e): Add comment to test

* test(e2e): Add test for connect http

* CR
2025-01-09 12:43:21 -05:00
Michael Li 91c060ca44 test(e2e): Add increased retries due to worker status report changes (#5424) 2025-01-08 15:46:37 -05:00
Michael Li 504050acb9 test(e2e): Add debug to search test (#5274)
* test(e2e): Fix typo

* test(e2e): Add cache log to output on failure
2024-11-21 13:50:19 -05:00
Michael Li 50db63be95 test(e2e): Add retry to search test (#5187) 2024-10-18 18:06:56 -04:00
Michael Li 40efebf7ab test(e2e): Add check for target authorize-session using scope name and target name (#5118) 2024-09-20 15:28:05 -04:00
Johan Brandhorst-Satzkorn 59fd2d4595 e2e: replace '%s' with %q (#5058)
%q handles quotes inside the quoted strings better.
2024-08-29 15:50:19 -07:00
Michael Li c986d20cef test(e2e): Rename daemon command to cache (#4833) 2024-05-29 12:02:26 -04:00
Stan Ryzhov 76a5530b53 test(e2e): Verify host id and invalid input for aliases (#4691) 2024-05-02 11:05:03 -04:00
Michael Li 51d33f3393 refact(e2e): Add err to helper methods (#4581)
* refact(e2e): Add err to CreateOrgApi

* refact(e2e): Add err to CreateProjectApi

* refact(e2e): Add err to CreateOrgCli

* refact(e2e): Add err to CreateProjectCli

* refact(e2e): Add err to CreateHostCatalogApi

* refact(e2e): Add err to CreateHostSetApi

* refact(e2e): Add err to CreateHostApi

* refact(e2e): Add err to AddHostToHostSetApi

* refact(e2e): Add err to CreateHostCatalogCli

* refact(e2e): Add err to CreateHostSetCli

* refact(e2e): Add err to CreateHostCli

* refact(e2e): Add err to AddHostToHostSetCli

* refact(e2e): Add err to CreateAwsHostCatalogCli

* refact(e2e): Add err to CreateAwsHostSetCli

* refact(e2e): Add err to CreateTargetApi

* refact(e2e): Add err to AddHostSourceToTargetApi

* refact(e2e): Add err to CreateTargetCli

* refact(e2e): Add err to AddHostSourceToTargetCli

* refact(e2e): Add err to SetHostSourceToTargetCli

* refact(e2e): Add err to RemoveHostSourceFromTargetCli

* refact(e2e): Add err to AddBrokeredCredentialSourceToTargetCli

* refact(e2e): Add err to RemoveBrokeredCredentialSourceFromTargetCli

* refact(e2e): Add err to CreateUserApi

* refact(e2e): Add err to CreateUserCli

* refact(e2e): Add err to SetAccountToUserCli

* refact(e2e): Add err to CreateRoleApi

* refact(e2e): Add err to CreateRoleCli

* refact(e2e): Add err to AddGrantToRoleCli

* refact(e2e): Add err to AddPrincipalToRoleCli

* refact(e2e): Add err to CreateManagedGroupApi

* refact(e2e): Add err to CreateGroupApi

* refact(e2e): Add err to CreateGroupCli

* refact(e2e): Add err to AddUserToGroup

* refact(e2e): Add err to CreateCredentialStoreStaticApi

* refact(e2e): Add err to CreateCredentialStoreVaultApi

* refact(e2e): Add err to CreateCredentialStoreVaultCli

* refact(e2e): Add err to CreateCredentialStoreStaticCli

* refact(e2e): Add err to CreateVaultGenericCredentialLibraryCli

* refact(e2e): Add err to CreateStaticCredentialPrivateKeyCli

* refact(e2e): Add err to CreateStaticCredentialPasswordCli

* refact(e2e): Add err to CreateStaticCredentialJsonCli

* refact(e2e): Add err to CreateStaticCredentialPasswordApi

* refact(e2e): Add err to CreateAuthMethodApi

* refact(e2e): Add err to CreateOidcAuthMethodApi

* refact(e2e): Add err to CreateAccountApi

* refact(e2e): Add err to CreateAccountCli
2024-04-03 09:44:44 -04:00
Michael Li 8533433868 refact(e2e): Consolidate tests (#4569)
* refact(e2e): Move -remote-command check into ssh test

* refact(e2e): Remove duplicate test

* fix(e2e): Modify unnecessary use of Logf

* fix(e2e): Add error checks

* fix(e2e): Remove unused parameter
2024-03-27 09:49:06 -04:00
Michael Li e0305f11aa test(e2e): Add check for boundary search -force-refresh (#4566) 2024-03-26 12:56:17 -04:00
Stan Ryzhov 41d3dffa9b test(e2e): Add multi-scope grants test (#4446) 2024-03-01 12:53:42 -05:00
Michael Li 2e55ae72ba test(e2e): Add test for alias (#4436) 2024-02-29 15:52:27 -08:00
Michael Li 694db71004 fix(e2e): Add extra buffer in -session-max-seconds test again (#4440) 2024-02-23 10:33:43 -05:00
Stan Ryzhov 2497078df6 test(e2e): Add ssh log for failed requests (#4431) 2024-02-20 14:37:14 -05:00
Michael Li 4d344edecc test(e2e): Add extra buffer in -session-max-seconds test (#4428)
This test would sometimes fail due to the diff sometimes exceeding `sessionMaxSeconds+1` by less than 1 second.
2024-02-20 11:09:36 -05:00
Michael Li a48698a315 test(e2e): Add test to check target's -session-max-seconds (#4411)
* test(e2e): Add test to check target's -session-max-seconds

* test(e2e): Add additional test to check new connections are rejected

* test(e2e): Fix test check
2024-02-20 09:26:55 -05:00
Stan Ryzhov 7de0699a0d test(e2e): Verify long-lasting scripts complete successfully on tcp targets (#4423) 2024-02-16 15:22:47 -05:00
Jeff MitchellandDamian Debkowski 35cef97bd4 Linter fixes PR 3 (#4415)
* Linter fixes

* fix(bsr): update test to register TEST protocol once

---------

Co-authored-by: Damian Debkowski <damian.debkowski@hashicorp.com>
2024-02-16 08:30:16 -05:00