Jeff Mitchell
b60e356b6c
Add username to SSH as well ( #441 )
2020-09-25 12:26:16 -04:00
Jeff Mitchell
61a0ae02c1
Bring go-alpnmux in house for now
2020-09-25 10:17:12 -04:00
Jeff Mitchell
b650695e82
Add rdp/postgres subcommands ( #437 )
2020-09-24 21:16:12 -04:00
Todd Knight
fd0da998e8
SDK error revamp ( #432 )
...
SDK methods now return 1 error. To differentiate between Client errors and Server errors I've also implemented the AsServerError function which returns an *api.Error if it is an error originating from the remote server or nil otherwise.
2020-09-24 14:34:58 -07:00
Jeff Mitchell
94f9d952be
Add connect -exec and ssh subcommand support ( #434 )
2020-09-24 17:29:12 -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
10a41c914e
Force worker to use the local controller when running in combined mode ( #429 )
2020-09-24 13:14:45 -04:00
Jeff Mitchell
41a3c66ea1
Add names to init output ( #428 )
2020-09-24 12:54:40 -04:00
Jeff Mitchell
7fcbffbe88
Remove not-set value. ( #427 )
...
I don't think the conditions exist here that necessitated it being
introduced into Vault, but I do sometimes see a baffling condition where
the address coming from the flag is empty. I don't think we need this so
take it out.
2020-09-24 12:19:00 -04:00
Jeff Mitchell
31fe9292b3
Instantiate default resources ( #425 )
2020-09-24 03:31:26 -04:00
Jeff Mitchell
8d8a7358f8
Add AdditionalVerification function ( #423 )
2020-09-23 23:39:44 -04:00
Jeff Mitchell
03436a73de
Update CLI output functions to show scope info and cleanup ( #416 )
2020-09-23 03:01:39 -04:00
Jeff Mitchell
38ce9d9eac
Combine controller and worker commands ( #415 )
2020-09-23 01:23:10 -04:00
Jeff Mitchell
0a4669e96d
Remove dev mode from controller/worker, and streamline flags on dev command ( #413 )
2020-09-22 21:37:37 -04:00
Jeff Mitchell
262ff06042
Add public address config option ( #405 )
2020-09-22 08:28:10 -04:00
Christian Frichot
475c6cdebe
Fix updated help text for the authenticate base command so it aligns with the password subcommand ( #401 )
2020-09-22 07:51:14 -04:00
Christian Frichot
9e6c016223
Add JSON formatted output for authenticate password cli command ( #402 )
2020-09-22 07:50:40 -04:00
Christian Frichot
874a7180ea
Fix segfault with boundary sessions help output ( #403 )
2020-09-22 07:50:04 -04:00
Jeff Mitchell
e9b91f323f
Allow port to not be specified in listener address ( #404 )
2020-09-22 07:49:19 -04:00
Jeff Mitchell
dd06615c2e
Add database initialization command ( #400 )
2020-09-21 20:25:16 -04:00
Jeff Mitchell
35c3f5b717
Use 'at' for auth token prefix ( #397 )
2020-09-21 16:04:13 -04:00
Jeff Mitchell
d3606e14b6
Set wrapper on client, not token, so it doesn't fail KMS recovery on update calls
2020-09-21 12:20:44 -04:00
Christian Frichot
72de1a6916
Fix WATCHTWER ENV variable names ( #389 )
2020-09-21 11:09:40 -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
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
Jeff Mitchell
f7e48ec836
Plumb connection limit to proxy and output it ( #384 )
2020-09-20 16:28:00 -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
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
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
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
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
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
Jeff Mitchell
1b2f73d1d4
Fix some old logic in some CLI commands ( #357 )
2020-09-14 12:45:56 -04:00
Jeff Mitchell
6201357902
Use scope-specific token DEKs ( #342 )
2020-09-14 12:30:11 -04: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
2914b4c14c
Use base58 for a few more user-facing values ( #356 )
2020-09-12 21:43:08 -04:00
Jeff Mitchell
1f80edbffc
Add missing default-port flag to targets command ( #355 )
2020-09-12 14:06:28 -04:00
Jeff Mitchell
c689af4306
Implement a TOFU mechanism on auth to worker ( #348 )
...
This sets us up to better support multiple connections per session at
some future point.
2020-09-10 23:25:40 -04:00