Commit Graph
2519 Commits
Author SHA1 Message Date
Todd 426e6aaa79 Check that the returned resources before referencing them (#2612) 2022-11-14 13:23:56 -08:00
Dan Heath 4509981e5b Fix pull-down placement (#2610) 2022-11-11 15:57:07 -05:00
Jeff MitchellandTodd 0c96c6ff6c Split grace period into multiple config values (#2578) (#2603)
Co-authored-by: Todd <github@quaddi.com>
2022-11-10 13:14:57 -05:00
Johan Brandhorst-Satzkorn a216c701ee Silence events from DB errors (#2601) (#2602)
If callers want errors to create events, they can do so
by wrapping the error. Sometimes we don't want db
errors to be events, and before this there was no way
to supress them.
2022-11-09 17:04:05 -05:00
Michael Li ae28bf7838 test(e2e): Update test to also use a username/password credential in vault (#2595)
* test(e2e): Add test that uses a vault username/password
* refact(e2e): Use go:embed for policy file
2022-11-08 16:45:55 -05:00
Irena Rindos 1e59aaf19b fix host sets command sample command (#2596) 2022-11-07 08:05:16 -05:00
Todd 2a4ce02de6 Disconnect PKI workers from upstreams when they are no longer authorized (#2515) 2022-11-03 14:50:48 -07:00
Michael Li 80cdbc305d test(e2e): Check that an active session ends if the user is deleted (#2588)
Adds a new test to the e2e test suite that checks that an active session ends once the user is deleted.
2022-11-02 20:05:15 -04:00
Michael Li d68d57e884 fix(e2e): Add retry when checking if session is active (#2586)
Observed some flakiness here. A test reported that the session was still "pending". Adding additional retries to ensure that it will eventually go active.
2022-11-01 18:41:56 -04:00
Michael Li 067530cdbf fix(test): Retry websocket connection due to flaky failure (#2584)
We have observed several unit tests occasionally fail when trying to read a handshake due to the following error:

failed to read protobuf message: failed to get reader: received close frame: status = StatusProtocolError and
reason = "received header with unexpected rsv bits set: false:false:true"

After an investigation, it's still unclear how this happens. We are opting to just retry to mitigate the flakiness.
2022-11-01 15:05:22 -04:00
Michael Li c20bd8a37e chore(e2e): Update to use latest version of Vault CLI (#2585) 2022-11-01 13:13:00 -04:00
Michael Li a9872621ef Merge pull request #2581 from hashicorp/moduli-e2e-group-test-ICU-6621
test(e2e): Add test that creates a role for a group
2022-10-31 14:28:11 -04:00
Michael Li 48e6156428 test(e2e): Add test that creates a group 2022-10-31 13:29:09 -04:00
Michael Li 02dc9be85f refact(e2e): Create role functions 2022-10-31 10:36:18 -04:00
Michael Li 81bb361148 test(e2e): Add ssh localhost test (#2579)
This adds a test case where a user would do `boundary connect` in one terminal and `ssh localhost` in another to get to the target.
2022-10-28 16:36:18 -04:00
Irena Rindos b26814a3cc move user variables into globals (#2580)
* move user variables into globals
2022-10-28 15:52:06 -04:00
Robin BeckandAshlee M Boyer c20445754e Docs deploy and login updates (#2574)
* replaces all references to Origin URL with Cluster URL

* fixes content headers

* removes reference to Beta

* removes content duplicated by dev-portal page subtitle

* updates style for code snippet copy-paste values

* Update website/content/docs/getting-started/deploy-and-login.mdx

Use h1 header

Co-authored-by: Ashlee M Boyer <43934258+ashleemboyer@users.noreply.github.com>

* fixes headers

Co-authored-by: Ashlee M Boyer <43934258+ashleemboyer@users.noreply.github.com>
2022-10-28 12:49:36 -06:00
Irena Rindos 946dab487e enable recovery user to list targets and sessions (#2576)
* enable recovery user to list targets and sessions
2022-10-28 11:17:33 -04:00
Michael Li 0c18dc0729 Merge pull request #2577 from hashicorp/moduli-e2e-vault-more-tests-ICU-ICU-6501
test(e2e): Add more checks in credential store tests
2022-10-28 09:22:35 -04:00
Michael Li f4a38a7fc9 fix(e2e): Fix authentication flakiness
There was a misunderstanding of how goroutines work. Turns out, the goroutine uses the same keyring as the main routine, which can result in some conflicts depending on when the goroutine executes
2022-10-27 17:40:13 -04:00
Michael Li c1449c4fd8 test(e2e): Add additional checks to credential store tests 2022-10-27 17:40:13 -04:00
Michael Li 935cc830aa test(e2e): Add test for vault using the connect authz-token option 2022-10-27 17:40:13 -04:00
Michael Li 0424d379cf refact(e2e): Reorganize test directory
Rearranges the directory structure to align better with the enos scenarios. Tests will now be added in the `tests` directory, with a folder in the directory corresponding to an enos scenario.
2022-10-27 17:40:13 -04:00
Dan Heath 7abea7a4a9 docs: Remove redundant word (#2563)
The bullet point for _Consistent Workflow for Access_ uses the word "securely" twice:

> Boundary securely connects the user securely to their infrastructure regardless of cloud platform

This PR removes the second instance.
2022-10-27 12:42:37 -04:00
Michael Li 0cfedf08b1 test(e2e): Use Vault 1.12.0 in e2e tests (#2572)
Vault 1.12.0 was recently released. e2e tests should use the latest version to test against.
2022-10-27 09:57:44 -04:00
Jeff Mitchell cede1aec93 Add initial templating support to Vault credential libraries (#2569) (#2575)
Add initial templating support to Vault credential libraries

This adds support for templating various account and user values into
Vault dynamic credential library POST bodies and GET/POST paths.

It also unifies how parameters are used in grants, with backwards
compatibility.
2022-10-27 09:01:05 -04:00
Michael Anthony b5ef8a516b QT-351 - Output Terraform and provider version information in Enos workflows (#2564)
* Add tf core and module version output step

* Add generate step before getting versions
2022-10-26 11:48:17 -06:00
Hugo Vieira bfd65feb90 feat(cmd): Display session connection information 2022-10-26 17:44:28 +01:00
Hugo Vieira d206635d74 fix(connection): Make bytes up and down a signed 64-bit integer
This fixes a theoretical issue with database interaction. Because the
fields in the database are signed 64-bit integers, it's theoretically
possible to overflow them if we're using unsigned 64-bit integers in the
application code.
2022-10-26 17:44:28 +01:00
Hugo Vieira c81398cbf3 feat(worker): Report bytes up and down on Status updates
With this commit, the Worker now sends BytesUp and BytesDown for each
of the connections it handles to the Controller in the Status request.

The Controller then persists these fields to the database. There is also
a new trigger to prevent bytes_up and bytes_down to change after a
connection has been closed, as the last update to a session_connection
row should be the one that is performed as part of the connection
closure process.
2022-10-26 17:44:22 +01:00
Hugo f023f05c11 feat(worker): Report bytes up/down on Worker connection closure
Introduces data about bytes read and written to the connection close
payload. No changes are required in the Controller because the RPC
messages already contained the required fields. As of this commit,
bytes_up and bytes_down columns in the session_connection table are now
populated when a connection closes.

Refs: #2509
2022-10-26 17:43:05 +01:00
Hugo 1bb80624b8 feat(worker): net.Conn implementation to count Bytes Read and Written
This commit introduces a new net.Conn implementation (countingConn) that
will keep track of bytes read and written for a particular client
connection. This is then implemented into the worker code using
interface composition.

Refs: #2501
2022-10-26 17:43:04 +01:00
Michael Gaffney f114e20c6d docs(db): fix comments on database domain types
Fixes the comments on the wt_scope_id, wt_user_id, and wt_role_id domain
types.
2022-10-26 08:27:38 -04:00
Michael Gaffney ed4b00303a docs(db): fix comments on kms database tables
Fixes the comments on the kms_data_key and kms_data_key_version tables.
2022-10-26 08:19:43 -04:00
Michael Gaffney c9cfb0e564 docs(db): fix comments on oidc database tables
Fixes the comments on the auth_oidc_method and auth_oidc_account tables.
2022-10-26 08:01:14 -04:00
Michael Gaffney 3241c9a411 docs(db): fix comments on database functions
Fixes the comments on functions wt_add_seconds, wt_add_seconds_to_now,
wt_sub_seconds, and wt_sub_seconds_from_now which were the tragic
victims of a copypasta error.
2022-10-26 06:34:36 -04:00
Jeff Mitchell b86430c2af Add some common account bits and change over some getOpts -> GetOpts funcs (#2565) (#2566)
This is a precursor to another upcoming PR that will make use of these
changes, but it makes that PR more manageable.
2022-10-25 21:33:31 -04:00
Johan Brandhorst-Satzkorn f57454b6b9 Rewrite interface{} to any (#2535)
* chore: Rewrite interface{} to any

* Add ignore revs
2022-10-25 19:29:38 -04:00
Michael Li ffdad31756 Merge pull request #2559 from hashicorp/moduli-e2e-user-session-test-ICU-6468
test(e2e): Add test that creates a user with permissions to start a session
2022-10-25 17:26:25 -04:00
Michael Li 57ffc71849 refact(e2e): Add context as an argument for cli methods
This was done have some alignment with the corresponding api methods as well as matching standard Go conventions.
2022-10-25 16:23:52 -04:00
Michael Li a956e8dec9 refact(e2e): Add WithEnv option to RunCommand
This was done to keep the scope of environment variables to just the command execution
2022-10-25 16:23:52 -04:00
Michael Li 1cc2b0b820 doc(e2e): Update typo in comments 2022-10-25 16:23:52 -04:00
Michael Li 6bd168b2a3 test(e2e): Add test that creates a user with the right permissions to start a session 2022-10-25 16:23:52 -04:00
Michael Li 07b16e877c refact(e2e): Rename original session cancelling test 2022-10-25 16:23:52 -04:00
Michael Li 5d795e6104 refact(e2e): Add support for authenticating as any user 2022-10-25 16:23:52 -04:00
stephan242 220456d092 Remove duplicate sentence (#2560) 2022-10-25 11:14:50 -04:00
Irena Rindos 2ab6ca6a84 Remove unrelated error from error message (#2558) 2022-10-24 12:23:59 -04:00
Todd 73f7004c74 Add RLocks for all read access to s.connInfoMaps in a session (#2553)
* Add RLocks for all read access to s.connInfoMaps in a session
2022-10-20 14:05:27 -07:00
Michael Li 8af92997c8 Merge pull request #2549 from hashicorp/moduli-flaky-bats-credential-store-ICU-6336
test(e2e): Fix flaky test in `credential_stores.bats`
2022-10-20 15:00:47 -04:00
Michael Li 5b0ff4f058 test(e2e): Port "credential stores deletion check" from bats test to e2e test suite
The "can not read deleted $NEW_STORE static store" bats test was demonstrating flaky behavior where it would fail due to the credential store read still returning something valid. This check has been moved to an e2e test in order to add some retry logic to the check.
2022-10-20 13:47:46 -04:00