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
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
Jeff Mitchell
282177afc2
Remove the default org ( #270 )
2020-08-17 15:38:41 -04: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
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
Michael Gaffney
7fefd5e2fe
Change password ( #237 )
...
* Implement ChangePassword
* Refactor: extract authenticate method
* Update tests to verify oplog entries
* More refactoring
* Remove extraneous clones
* More refactoring
2020-08-06 13:03:42 -04:00
Jeff Mitchell
2ca7e0b88e
Fix some linting complaining
2020-08-03 13:13:20 -04:00
Michael Gaffney
5ceb335466
Rehash credential during authentication if config has change ( #234 )
2020-07-31 14:42:22 -04:00
Michael Gaffney and Todd Knight
6c679a9939
Add password authentication using Argon2 ( #227 )
...
* Add argon2 credentials
* Verify oplog in tests
* Refactor: rename field
* Update internal/auth/password/repository_account.go
Co-authored-by: Todd Knight <T.Alan.Knight@gmail.com >
* Add inline comments to SQL query to doc mapping to structure
* Refactor: move authentication query to query.go file
* Replace immutable_create_time_func with immutable_columns
Co-authored-by: Todd Knight <T.Alan.Knight@gmail.com >
2020-07-31 11:18:41 -04:00
Michael Gaffney
87492816cb
Replace immutable_create_time_func with immutable_columns ( #231 )
2020-07-30 16:43:11 -04:00
Jim
cb89422d9d
define immutable fields including PKs. ( #205 )
2020-07-30 16:04:15 -04:00
Michael Gaffney
c163d790a4
Add configuration settings for Argon2 password KDF ( #217 )
...
* Bump generated proto code
* Add argon2 conf sql and proto files
* Add generated code for argon2 conf
* Add Resources for Argon2 configuration
* Add get and set Configuration to repository
* Add current config reference to AuthMethod
* Fix authmethod_test
* Fix TestAccount_New
* Add WithConfiguration to options
* Add sql views for current configuration
* Fix SetTableName
* Remove duplicate testAccounts function
* Make tests clearer
* Fix comment
* Rename test variable
* Use NewPrivateId function for private Ids
* Refactor: rename public_id to private_id for password_conf and password_credential
* Remove bad comment
* Check if embedded argon2 configuration is nil
* Add checks around the WithConfiguration option
* Use spaces not tabs in proto file
* Add doc to explain choice of oplog ticket
* Verify oplog in test
2020-07-29 07:58:19 -04:00
Michael Gaffney
76abd4f3b4
Update comments to use "base type" instead of "abstract" ( #222 )
2020-07-28 09:17:23 -04:00
Michael Gaffney
7897c1cf52
Add base resources for password authentication ( #213 )
...
* Add base SQL and protobuf files
* Add options and public Ids
* Add AuthMethod and Account resources
* Add repository
* Add CreateAuthMethod to repository
* Add CreateAccount method to repository
* Remove redundant foreign keys
* Document relationships between iam and auth tables
* Document relationships between auth and auth_password tables
* Add documentation for subtype triggers
* Use wt_scope_id domain type for scope_id
* Refactor: move test helper function
* Remove check from SetTableName
* Remove check from another SetTableName
* Use org scope in tests
* Remove handling of CreateTime and UpdateTime from docs
2020-07-24 10:23:35 -04:00
Todd Knight
28dbcd84bd
Authenticate Handler API and SDK, and much more ( #183 )
2020-07-14 17:32:47 -04:00
Jeff Mitchell
acce195dcb
Organizations -> orgs consistency ( #189 )
...
* Organizations -> orgs consistency
* Fix up some tests and some mistaken substitutions
2020-07-11 12:00:49 -04:00
Jim and Jeff Mitchell
260703febe
add group member capabilities ( #178 )
...
* add group member capabilities
Co-authored-by: Jeff Mitchell <jeffrey.mitchell@gmail.com >
2020-07-10 19:01:23 -04:00
Jeff Mitchell and Jim Lambert
c657e4b9fc
Fix test broken through various merges ( #186 )
...
Co-authored-by: Jim Lambert <jlambert@hashicorp.com >
2020-07-10 18:59:39 -04:00
bcdcaffa6f
Port over 162 and 165 to master ( #176 )
...
Co-authored-by: Jim Lambert <jlambert@hashicorp.com >
Co-authored-by: Michael Gaffney <mgaffney@users.noreply.github.com >
2020-07-10 15:46:26 -04:00
Jim
136e923583
make iam_role scope_id immutable ( #179 )
2020-07-10 10:22:38 -04:00
Jeff Mitchell
732c07126d
Introduce global scope ( #168 )
...
Introduce the global scope, which holds some resources that don't necessarily belong at either the org or project level.
2020-07-08 17:20:20 -04:00
Jim
6c1b45f7f5
add principal roles (users and groups) to iam ( #163 )
2020-07-08 17:02:01 -04:00
Todd Knight
f69d6b9952
Creating Auth Token Repo ( #125 )
2020-07-07 07:44:49 -07:00
Jim
3e3144117e
iam and auth integration ( #144 )
2020-06-29 08:18:57 -04:00
Jim
6641244734
add support for WithVersion option to updates ( #126 )
2020-06-24 12:33:49 -04:00
Michael Gaffney
6908f7a7a2
Use standard column names ( #138 )
2020-06-22 13:54:55 -04:00
Michael Gaffney
1023c90729
Enforce auth_account to iam_user plus iam_scope constraints ( #137 )
2020-06-21 13:16:03 -04:00
Michael Gaffney
0ebb38bbe5
auth method schema ( #131 )
...
* Rename iam migrations to 06
* Add base tables for auth methods and auth accounts
* Add triggers for auth_method and auth_account subtypes
2020-06-19 13:10:05 -04:00
Jim
ffddf24f86
iam roles ( #116 )
2020-06-15 12:42:08 -04:00
Michael Gaffney
2d650b241d
Fix down migrations ( #120 )
...
* Fix iam down migrations
* Fix '03_db' down migrations
* Fix oplog down migrations
* Fix domain down migrations
* Run make gen
2020-06-13 07:20:40 -04:00
Jim
5c2cff3ad2
iam groups ( #112 )
2020-06-11 16:36:47 -04:00
Jim
7d4993fb61
iam users ( #96 )
2020-06-04 20:05:08 -04:00
Jim
ef6edbd515
Null updates ( #78 )
2020-05-31 19:55:56 -04:00
Michael Gaffney
6d123d91bb
Fix comment for trigger ( #92 )
2020-05-29 14:51:22 -04:00