Commit Graph
572 Commits
Author SHA1 Message Date
Jeff Mitchell 8615d21a1f Remove connection from worker if in terminated state and all conns are closed, not just in canceling state 2020-10-01 20:49:13 -04:00
Todd Knight d1d94c19c8 List sessions CLI reports correct target id and status (#511)
* Including some missing session fields and improving reporting of sessions of CLI.
2020-10-01 15:57:01 -07:00
Jeff Mitchell 9bd6045c46 If the exec'd command executed on its own, don't print a term reason out, just pass through the code 2020-10-01 17:13:47 -04:00
Jeff Mitchell 3400e20fb6 Use the host_id as the HostAlias for SSH (#523)
This tells SSH to use the (random, autogen'd) host ID when doing host
key checking. That way we avoid having an IP/port mismatch every time we
connect.
2020-10-01 17:07:34 -04:00
Jeff Mitchell 617921ef65 Bump deps (#522) 2020-10-01 14:49:52 -04:00
Jeff Mitchell 70fa231377 Update dbassert 2020-10-01 13:47:20 -04:00
Todd Knight e0285a00ea Document CLI commands for session management (#514)
* Documentation for how to manage sessions using the CLI.  UI is still a TODO.

* Removing TODO under the UI tab.
2020-10-01 09:39:34 -07:00
Jeff Mitchell bf30a735dc Clean up slash suffix on -host value 2020-10-01 12:19:06 -04:00
Jeff Mitchell c3b4337b91 Add -path to boundary connect http 2020-10-01 12:16:18 -04:00
Jeff Mitchell fa700dc002 Add account ID templating (#518)
* Remove default role and create via the same mechanism as other initial resources
2020-10-01 10:51:54 -04:00
Jim 19aecfefae terminate "completed" sessions (#477) 2020-10-01 10:13:57 -04:00
Jeff Mitchell d851ab07d8 Add ability to pull user/account/auth-method ID from stored token (#517) 2020-10-01 01:52:08 -04:00
Jeff Mitchell 6ddfe407a3 Update allowed formats of ACL strings (#508) 2020-10-01 01:49:20 -04:00
Jeff Mitchell 4854f2c35f Add boundary connect http (#516) 2020-10-01 00:27:13 -04:00
Jeff Escalante 12e30dd201 fix 'edit this page' link (#512) 2020-09-30 18:29:48 -07:00
Pete Pacent 1e01f3fa1e Cleaning up doc toc (#515)
Removing external link in doc toc
2020-09-30 18:27:19 -07:00
James Bayer 0cddb443c8 Update organization.mdx (#513)
Minor addition for accuracy.
2020-09-30 18:25:12 -07:00
Jim 1e71c55920 deprecate access to underlying *sql.DB via internal/db.DB() (#506) 2020-09-30 18:11:59 -04:00
DevOps Rob 63dbf7cdc3 fixed sidebar typo (#510)
* fixed sidebar typo

* fixed remaining sidebar typo
2020-09-30 13:57:16 -07:00
Jeff Malnick cda345a00d docs: add friendly disclaimer about resource IDs to workflows (#509) 2020-09-30 13:03:47 -07:00
Michael Gaffney a9e806b673 Data warehouse (#475)
* Define initial warehouse schema

* Add session id as the primary key to the session accumulating fact table

* Insert a row to use instead of nulls in the time and date dimensions

* Add missing attributes and a partial index

* Rename files

* Refactor: move fact table to a separate migration

* Add domain types for the warehouse

* Add session connection transaction fact table

* Change columns to match ingress data types

* Add views for host dimension ingress

* Create source and target views for the host and user dimensions

* Generate random ID for dimension table primary key

* Formatting changes

* Add current dimension id to target views

* Implement upsert function for host dimension

* Use domain types for upsert function parameters

* Fix indentation

* Add wh_public_id domain type

* Fix value of type columns when the other columns are null

* Implement upsert function for user dimension

* Add warehouse domain types for timestamps and text fields

* Move fact table migrations to a higher number

* Add functions for getting the current date and current time IDs

* Rename backend to endpoint in column names

* Rename fact tables

The fact tables are actually accumulating fact tables not transactional
fact tables.

* Add default value to connection_authorized_time column

* Update session fact table

* Add session_max_seconds, session_connection_limit, and default_port to wh_host_dimension

* Move session table above connection table

* Add after insert trigger to session table for warehouse ingress

* Add fk from connection warehouse table to session warehouse table

* Implement insert trigger for session connections

* Update warehouse for a user having multiple auth accounts

* Rename warehouse columns to be consistent with operational tables

* Add connection specific columns to the connection fact table

* Update session calculations in warehouse

* Rename functions and formatting changes

* Rename session columns to match names of session states

* Implement warehouse triggers for session and connection state changes

* Run 'make migrations'

* Use a static start and end date for the warehouse date dimension

* Document warehouse functions

* Remove outdated TODO comments

* Add TODO comments for additional dimensions and fact table columns
2020-09-30 14:09:40 -04:00
Jeff Malnick d9a68ff52b docs: add manage identities workflow (#490) 2020-09-30 11:09:12 -07:00
Jeff Mitchell cefea936c3 Update ACLs to allow type=*. (#504) 2020-09-29 22:55:22 -04:00
Jeff Mitchell d479f307a4 Minor tweak to role output formatting 2020-09-29 20:41:32 -04:00
Jeff Mitchell a38f40606e Create default roles in scopes to allow authentication and listing scopes/auth methods (#502) 2020-09-29 20:38:16 -04:00
Jeff Malnick 67c7b82fbe docs: correct database url configuration (#499) 2020-09-29 15:31:51 -07:00
Jeff Malnick b51d99cc84 docs: add additional docs labels and correctly glob subdirectories (#501) 2020-09-29 15:28:08 -07:00
Todd Knight 39da242f38 Removing a few incorrect statements in the documentation. (#498) 2020-09-29 15:11:26 -07:00
Patrick Bernal 9020a70632 issue templates (#497) 2020-09-29 15:02:34 -07:00
Jeff Malnick 7fc0449918 docs: remove unused pages (#495) 2020-09-29 13:27:20 -07:00
Jeff Malnick a068c56127 docs: add roadmap page (#496) 2020-09-29 13:27:06 -07:00
Todd Knight 0eb35f49d5 Correcting a bunch of incorrect documentation for the different API services and resources. (#494) 2020-09-29 13:17:59 -07:00
Jeff Malnick 1c2dd7d0fc docs: do not use code blocks for configuration titles (#493) 2020-09-29 09:40:49 -07:00
Jeff Mitchell 15fadd40f4 Return ScopeInfo for adding/setting/removing host set hosts (#491) 2020-09-29 12:24:54 -04:00
Jeff Malnick ac3725bf89 Docs: Use tabs for workflows (#492)
* docs: use tabs for targets workflow

* docs: use tabs for scopes workflow
2020-09-29 09:24:47 -07:00
Jeff Malnick 1d1491dc9a docs: add managing scopes workflow (#489) 2020-09-29 06:31:42 -07:00
Jeff Mitchell c5fff0ae4d Add API/CLI standards docs and some cleanup elsewhere (#488) 2020-09-29 04:56:04 -07:00
Jeff Malnick 5f939bff34 docs: add target workflow (#487) 2020-09-28 18:54:02 -07:00
Jeff Malnick f8d96a253f docs: add workflows outline (#486) 2020-09-28 18:40:23 -07:00
Jeff Malnick 98b230773d docs: move SDK to developing section and add authenticate example (#485) 2020-09-28 17:57:46 -07:00
Anand Capur cd2bf86a0d Fix getting started link (#484) 2020-09-28 16:43:19 -07:00
Radek Simko b96a96b108 Fix typo (p*r*oduction) (#478) 2020-09-28 16:21:21 -04:00
Jeff Mitchell c1a1f8bb1b Separate out docker dep into package (#482)
This also then removes support for docker-based containing starting (for
now) from platforms other than windows/darwin/linux as there are build
issues on several.
2020-09-28 16:05:15 -04:00
Jim fde96924af refactor user account repo function names (#476) 2020-09-28 15:39:10 -04:00
Todd Knight f1873d623d Attach account to auth token response. (#480) 2020-09-28 09:55:44 -07:00
Sam Salisbury 498a840862 Add packagespec CI (#479) 2020-09-28 17:15:28 +01:00
Jim acd28e5372 use CTE within transaction to calc SetGroupMembers changes (#454) 2020-09-26 17:46:21 -04:00
Jeff Mitchell cf3fa4522d Swap base58 libraries (#472)
* Swap base58 libraries

This doesn't reduce binary size but it removes a metric ton of
dependencies.
2020-09-26 14:01:49 -04:00
Jeff Mitchell c30fd5620e Add account add/set/remove to CLI (#473) 2020-09-26 13:58:48 -04:00
Jeff Mitchell b1fc9fd547 Sanitize protos (#471) 2020-09-26 08:30:27 -04:00