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
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
Jeff Mitchell
6ddfe407a3
Update allowed formats of ACL strings ( #508 )
2020-10-01 01:49:20 -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 Mitchell
15fadd40f4
Return ScopeInfo for adding/setting/removing host set hosts ( #491 )
2020-09-29 12:24:54 -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
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
b1fc9fd547
Sanitize protos ( #471 )
2020-09-26 08:30:27 -04:00
Todd Knight
0e5a849402
Adding Add|Set|Remove Accounts on the user resource ( #461 )
2020-09-25 20:44:55 -07:00
Todd Knight
14f9fc9173
Removing status from all handlers, repo errors are passed on directly for the most part to be intercepted and translated by the API error handler. ( #447 )
2020-09-25 13:41:20 -07:00
Jim
21ca0b6388
SetAssociatedAccounts, DisassociateAccounts, AssociateAccounts with support for multiple accounts. ( #439 )
2020-09-25 13:35:32 -04:00
Jeff Mitchell
e86c11db62
Add session lifecycle info to controller's INFO log. ( #431 )
...
This required some plumbing, but nothing major.
2020-09-24 14:12:34 -04:00
Jeff Mitchell
31fe9292b3
Instantiate default resources ( #425 )
2020-09-24 03:31:26 -04:00
Todd Knight
278902db1a
Allow target type field to be included in an update. ( #412 )
2020-09-23 08:30:25 -07:00
Todd Knight
2f8d7f0a32
API Errors: Hide and log internal errors ( #411 )
2020-09-23 08:10:27 -07:00
Jeff Mitchell
7e3c174b70
Disallow deletion of r_default ( #398 )
...
If it's a useful named resource and people accidentally delete it e.g.
with TF, they can't get it back. This doesn't affect TF's ability to
manage it, just delete.
2020-09-21 16:50:39 -04:00
Jeff Mitchell
f25186f78a
Standardize on one spelling of "canceled" ( #399 )
2020-09-21 16:33:28 -04:00
Jeff Mitchell
6a09e0966e
Fix some broken tests that were expecting nil but are now getting an empty struct
2020-09-21 16:03:47 -04:00
Todd Knight
21f5cc274f
Don't return nil, nil for API service methods. Add tests for updating w/ wrong version. ( #396 )
2020-09-21 15:09:30 -04:00
Jeff Mitchell
1adbe64160
Update some tests that are failing due to 300 nano difference in time comparisons between create and lookup ( #393 )
2020-09-21 15:08:15 -04:00
Jeff Mitchell
27d728875c
Cleanup session state enum ( #394 )
...
It's up to the worker to understand what a change in state means, so
there was no functional difference between simply sending a state change
request and a cancel request.
2020-09-21 11:36:38 -04:00
Jeff Mitchell
5747ea603e
Fix nil pointer with revamped chosen host ID logic
2020-09-21 10:21:40 -04:00
Jeff Mitchell
9cbc7b5c3d
Add connection close call from worker to controller ( #387 )
2020-09-21 00:09:50 -04:00
Jeff Mitchell
7ff4b7f106
Send connected RPC to controller ( #386 )
2020-09-20 23:09:42 -04:00
Jeff Mitchell
4669c95999
Pass more session info around, make proxy UX nicer ( #385 )
2020-09-20 21:18:07 -04:00
Todd Knight
e937b0ea27
Sessions Read/List/Cancel API and SDK ( #369 )
2020-09-20 20:22:57 -04:00
Jeff Mitchell
f7e48ec836
Plumb connection limit to proxy and output it ( #384 )
2020-09-20 16:28:00 -04:00
Jeff Mitchell
697ea561e0
Fix breakage from dual merges
2020-09-20 16:04:05 -04:00
Jeff Mitchell
edffc7863d
Change connection limit to -1 for unlimited so it works with TF ( #383 )
...
* Migrate connection limit unlimited value to -1
* Fix authorization check
2020-09-20 15:53:49 -04:00
Jeff Mitchell
5214f14105
Work on connection authorization ( #381 )
2020-09-20 12:51:08 -04:00
Jeff Mitchell
5bf555cca2
Remove connection idle timeout seconds for now ( #379 )
2020-09-19 14:01:49 -04:00
Jeff Mitchell
e002326293
Plumb timeouts to worker and set appropriate deadlines ( #378 )
2020-09-19 13:51:50 -04:00
Jeff Mitchell
0a3f9b8357
Rename connection idle timeout duration -> seconds and sessions max duration -> seconds ( #376 )
2020-09-19 11:32:38 -04:00
Jeff Mitchell and Jim Lambert
62baef1b7e
Add multi connection parameters through targets and into session creation ( #375 )
...
* Update protos and gen
* Add new values to targets CLI command
* Lots more plumbing of new parameters through everything
* allow fields to be set to zero value.
* Disallow set but empty name/description strings in create/update verifiers
Co-authored-by: Jim Lambert <jlambert@hashicorp.com >
2020-09-19 10:31:49 -04:00
Jeff Mitchell
07a7e9750a
Tie together the database-driven session handling with the worker and add relevant CLI comands ( #370 )
2020-09-19 00:18:17 -04:00
Jim
611288bdc7
basic sessions ( #337 )
2020-09-16 12:02:02 -04:00
Todd Knight
f96fa25157
Add Auth Account id to Auth Token response ( #363 )
2020-09-15 14:33:38 -07:00
Jeff Mitchell
f4ad22b247
Move default port to a TCP target attribute ( #361 )
2020-09-15 15:20:49 -04:00
Jeff Mitchell
eb88d0381a
Fix default port update handling
2020-09-15 02:15:33 -04:00
Jeff Mitchell
6201357902
Use scope-specific token DEKs ( #342 )
2020-09-14 12:30:11 -04:00
Todd Knight
b998591add
Adding and updating host address validation checks ( #350 )
2020-09-12 22:07:56 -07:00
Todd Knight
33e7b4538e
WorkerCoordination and GetSession API refactoring ( #354 )
...
* Possible api changes.
* Worker API update.
* Updating import alias name.
* Moving session down a level as a member of the GetSessionResponse.
* Marshal the auth flag into the GetSessionResponse proto instead of the session.
2020-09-12 21:54:18 -07:00
Jeff Mitchell
60396e4384
Properly populate ScopeInfo from group member actions ( #340 )
2020-09-09 11:37:23 -04:00
Jeff Mitchell
f94f21fd97
Update API codes ( #336 )
2020-09-08 23:57:26 -04:00
Todd Knight
99d5456d7a
Scopes type field and types in updates allowed ( #335 )
2020-09-08 16:04:19 -07:00
Todd Knight
c3ecea172d
Generate new version of SDK resources and Add Tests ( #331 )
2020-09-08 16:27:51 -04:00
Todd Knight
1c2c078e0a
Adding Authz checks that support new pathing ( #328 )
2020-09-04 14:48:11 -07:00
Jim
3d944a616f
fix name typo ( #330 )
2020-09-04 17:11:51 -04:00
Jeff Mitchell
23156afa11
Add in most of the proxy flow ( #326 )
2020-09-03 13:24:34 -04:00