Jeff Mitchell
fcdaf129a3
Add missing continue in close function
2020-09-21 02:44:53 -04:00
Jeff Mitchell
33b0021547
Add Sessions CLI command and add session cleanup to worker ( #388 )
2020-09-21 02:22:59 -04:00
Jeff Mitchell
bb6ece69b6
Remove unused struct member
2020-09-21 00:11:37 -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
5370111336
Omit private key from session output
2020-09-20 21:23:38 -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
7db0e2a5ed
Fix database check
2020-09-20 16:09:11 -04:00
Jeff Mitchell
697ea561e0
Fix breakage from dual merges
2020-09-20 16:04:05 -04:00
Jim
5764b2c70a
return States as a field of Connection repo operations. ( #382 )
2020-09-20 15:54:39 -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
Jim
223591d835
return connection authz info from session.AuthorizeConnection ( #380 )
2020-09-19 21:05:56 -04:00
Jim
66400c9cff
changes needed for sessions.AuthorizeConnection ( #377 )
2020-09-19 14:21:09 -04:00
Jeff Mitchell
ee7cdde7de
Add trace code for when we add port to controller address
2020-09-19 14:08:33 -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
Justin Weissig
fd8ceb6cc4
docs: minor wording ( #374 )
2020-09-18 17:22:41 -07:00
Jim
e7e70b1b94
new domain functions for the session repo ( #368 )
2020-09-18 18:12:41 -04:00
Jim
7e927203e8
schema changes to support multi-connections ( #372 )
2020-09-18 17:41:45 -04:00
Jeff Malnick
e58072a719
feat: add logo to README ( #373 )
2020-09-18 13:50:47 -07:00
Jeff Mitchell
ff8ce053e1
Don't try to recreate resources when adding test cluster members
2020-09-17 16:06:27 -04:00
Jeff Mitchell
8bef1d734a
Fix mismatch in default role creation permissions
2020-09-16 12:56:41 -04:00
Jim
611288bdc7
basic sessions ( #337 )
2020-09-16 12:02:02 -04:00
Jeff Mitchell
0a44ed3edd
Fix global scope lookup ( #367 )
...
The changed auth logic + verify logic in the scope handler pass the
parent ID for validation, which is correct, as a scope lives in its
parent ID. However, the global scope has no parent, and the changes
resulted in an empty ID being passed in rather than the global scope
itself. This fixes that lookup.
2020-09-16 11:15:42 -04:00
Jeff Mitchell
a660e56ee7
Fix whitespace typo in generated API
2020-09-16 10:49:38 -04:00
Jeff Mitchell
a67d5c8abb
When logging urls, also log method
2020-09-16 10:21:35 -04:00
Jeff Mitchell
c1cc2e3e8e
Fix typo
2020-09-16 10:12:26 -04:00
Jeff Mitchell
37e9fed2e3
Allow not destroying dev databases ( #366 )
...
This also shifts some logic around to better prepare for non-dev-mode
workloads, although it does not actually call the KMS creation functions
and initial auth method creation from non-dev commands yet.
2020-09-16 10:10:06 -04:00
Jeff Mitchell
c4e2b88022
Add database URL. ( #365 )
...
* Add database URL.
This allows specification of either a file://, env://, or other string.
If it starts with file:// or env:// the actual value will be read from
those resources.
* Tidy up the KMS output
* Also run migrations in test mode when specifying the URL
2020-09-16 09:28:39 -04:00
Jeff Mitchell
c2b49dbc7d
Plumb root/worker auth kms testing options to public side
2020-09-16 09:20:09 -04:00
Jeff Mitchell
ab1f31e9af
Add WithDatabaseUrl to testing package
2020-09-16 09:15:54 -04:00
Jeff Mitchell
05c2e38f03
Bump deps ( #364 )
...
* Bump deps
* Revert go-kms-wrapping as the vault team broke it :-(
2020-09-16 09:08:46 -04:00
Jeff Mitchell
4ef0c57a39
Fix r_default description typo
2020-09-16 08:53:36 -04:00
Jeff Mitchell
3c13e4765d
Verbose isn't actually used right now so don't expose it; fix some wording for scope id flag
2020-09-16 08:50:43 -04:00
Jeff Mitchell
570e52cabb
Add missing set-grants to role command
2020-09-16 07:03:11 -04:00
Todd Knight
f96fa25157
Add Auth Account id to Auth Token response ( #363 )
2020-09-15 14:33:38 -07:00
Randall Morey
2b664f78ed
docs: add blurb in dev mode doc about UI passthrough ( #362 )
2020-09-15 12:32:28 -07:00
Jeff Mitchell
f4ad22b247
Move default port to a TCP target attribute ( #361 )
2020-09-15 15:20:49 -04:00
Jeff Malnick
b56e5b6766
docs: add getting started docs for development mode ( #359 )
2020-09-15 08:50:06 -07:00
Jeff Mitchell
77bcee1861
Use json.Number when unmarshaling into the response map
2020-09-15 02:20:24 -04:00
Jeff Mitchell
eb88d0381a
Fix default port update handling
2020-09-15 02:15:33 -04:00
Jeff Mitchell
a598fdfb13
Fix targets CLI command
2020-09-15 02:09:07 -04:00
Jeff Mitchell
97985883df
Fix token storage
2020-09-15 02:07:10 -04:00
Jeff Mitchell
a00ee7a948
Add Result types to Go SDK and properly populate body/map fields ( #358 )
2020-09-15 01:08:21 -04:00