Michael Gaffney
36d465476c
Name all the check constraints in the database ( #410 )
...
* Name all of the check constraints
* Run 'make migrations'
2020-09-22 14:44:21 -04:00
Jim
57da9f918e
cancel a session when one of its FKs is set to null ( #406 )
2020-09-22 14:36:20 -04:00
Michael Gaffney
f0c84de49c
Disambiguate auth_account scope_id by adding iam_user_scope_id column ( #407 )
2020-09-22 13:30:11 -04:00
Jeff Mitchell
dd06615c2e
Add database initialization command ( #400 )
2020-09-21 20:25:16 -04: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
Michael Gaffney
d52fb81e68
Change the default max session for a target to 8 hours ( #392 )
...
* Change the default max session for a target to 8 hours
* Run 'make migrations'
2020-09-21 12:12:18 -04:00
Jeff Mitchell
7db0e2a5ed
Fix database check
2020-09-20 16:09:11 -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
Jim
66400c9cff
changes needed for sessions.AuthorizeConnection ( #377 )
2020-09-19 14:21:09 -04:00
Jeff Mitchell
5bf555cca2
Remove connection idle timeout seconds for now ( #379 )
2020-09-19 14:01:49 -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
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 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
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
4ef0c57a39
Fix r_default description typo
2020-09-16 08:53:36 -04:00
Todd Knight
b998591add
Adding and updating host address validation checks ( #350 )
2020-09-12 22:07:56 -07:00
Michael Gaffney
4ae3a52056
Define session database schema ( #322 )
...
* Define session database schema
* Update comments
* Add insert trigger for session state
* Add canceling state and update foreign keys to 'set null' on delete
2020-09-03 10:49:27 -04:00
Jim
f29869b715
support for additional deks: oplog, session and token and new CreateKeysTx() ( #321 )
2020-09-02 14:37:19 -04:00
Jeff Mitchell
ee35a92f7f
Fix space issue in protobuf that apparently doesn't matter? Also apparently postgres migrations weren't run.
2020-09-02 13:38:07 -04:00
Jim
f3dd62d5d8
database DEKs ( #317 )
2020-09-02 07:42:03 -04:00
Jim
fcb61d4b67
targets repo ( #298 )
2020-08-26 13:58:46 -04:00
Michael Gaffney
58dec98ea2
Rename table from servers to server ( #307 )
2020-08-26 13:15:12 -04:00
Michael Gaffney
de162c5533
Replace and remove ErrNilParameter with ErrInvalidParameter ( #295 )
2020-08-25 12:18:14 -04:00
Jeff Mitchell
ac4d9fa311
Add nonce storage and replay prevention test ( #293 )
2020-08-24 13:22:10 -04:00
Jeff Mitchell
b47cca0329
Add (non-db aspects of) the recovery key workflow ( #286 )
2020-08-20 13:34:03 -04:00
Jeff Mitchell
6bf4a5ce38
Add not null checks to wt_private_id, wt_scope_id, and wt_user_id ( #284 )
2020-08-19 21:45:46 -04:00
Jim
9570897032
basic keys mgmt repo ( #264 )
2020-08-19 16:47:18 -04:00
Michael Gaffney
041e1f9fd3
Update host ( #278 )
...
* Add IsNotNullError function to db package
* Let the database handle default values not gorm
* Implement UpdateHost
* Remove unnecessary clone
2020-08-18 16:50:26 -04:00
Jeff Mitchell
282177afc2
Remove the default org ( #270 )
2020-08-17 15:38:41 -04:00
Todd Knight
01059e6ca8
Wrap StartDbInDocker in a mutex. ( #275 )
...
* Wrap StartDbInDocker in a mutex.
* Adding TODO to debug further.
* Clarifying the TODO to point out a race condition.
2020-08-17 10:18:46 -07:00
Michael Gaffney
7d133878be
Add base types for host catalog, host set, and host ( #272 )
...
* Move static host migrations to higher number
* Add wt_host_address domain type
* Add base tables for host catalog, host set, and host
* Reformat create trigger statements
* Add subtype triggers for host catalog, host set, and host
* Remove wt_host_address domain type
* Rename columns in host_set_member
* Add delete trigger functions for base types
* Add delete after triggers to static host subtypes
* Add protobufs for host base types
2020-08-17 11:00:41 -04:00
Jeff Mitchell
c195c4bc9b
Remove disabled property and sync up field ordering and numbering ( #259 )
2020-08-12 13:00:49 -04:00
Jeff Mitchell
203e2b5dc2
Initial worker porting steps ( #232 )
2020-08-12 00:40:39 -04:00
Jeff Mitchell
73a38b1433
Remove some unneeded resource types and fix the resource typing for default role in global scope ( #256 )
2020-08-12 00:02:26 -04:00
Jeff Mitchell
4cfab04307
Migrate user name to login name ( #255 )
2020-08-11 17:25:00 -04:00
Michael Gaffney
6f886976e4
Add not null constraint to wt_version domain ( #254 )
2020-08-11 14:15:19 -04:00
Jeff Mitchell
78d7f539c5
Add versioning to host catalogs/sets/hosts and fix up tests ( #247 )
...
* Start adding version to host resources and fixing up tests
* Add versioning to host resources and update API tests
* Fix nil in test
* Add missing update
2020-08-11 11:20:06 -04:00
Jeff Mitchell
565059ed63
Add versioning to auth methods and accounts ( #249 )
2020-08-11 11:19:29 -04:00
Michael Gaffney and Jeff Mitchell
a7c467bd68
Password - UpdateAccount and SetPassword ( #248 )
...
* Implement UpdateAccount
* Implement SetPassword
* Add tests for duplicate user names
* Fix imports broken after product rename
Co-authored-by: Jeff Mitchell <jeffrey.mitchell@gmail.com >
2020-08-11 10:12:36 -04:00
Jeff Mitchell
6661117d4c
The name. The name. The name!
2020-08-10 17:15:02 -04:00
Jim
1c836c430b
support for associating/disassociating an auth account with a user ( #233 )
2020-08-10 15:17:15 -04:00
Michael Gaffney
bdb31cf8b5
Bump deps ( #245 )
2020-08-08 10:49:43 -04:00
Jeff Mitchell
0d0660b061
Fix some tests I broke
2020-08-07 17:46:33 -04:00
Jeff Mitchell
908a299ea3
Convert SDK to the new options API ( #238 )
2020-08-07 12:55:02 -04:00