44 Commits

Author SHA1 Message Date
burnettk
6081f66379 renames 2022-11-24 12:00:26 -05:00
jasquat
82388b66e5 pyl is passing w/ burnettk cullerton 2022-11-18 16:45:44 -05:00
mike cullerton
8aa126e750 precommit 2022-11-18 15:50:20 -05:00
burnettk
2cb3fb27e2 pyl 2022-11-11 11:39:15 -05:00
mike cullerton
450a8d0757 Delete groups now checks for running instances in nested models
also, pyl
2022-11-10 16:44:27 -05:00
jbirddog
64ac704288 Move to Python 3.11 (#27) 2022-11-09 13:45:16 -05:00
mike cullerton
440871d579 First stab at nested folders.
Added temp endpoints
Changes to tests and test helpers
2022-11-01 16:48:04 -04:00
Mike Cullerton
4d2ebbe237 Refresh token (#6)
* Handle refreshed tokens if present

* Small cleanup

* No longer require secrets to be modified by the user that created them
Rename creator_user_id column to user_id

Co-authored-by: Jon Herron <jon.herron@yahoo.com>
Co-authored-by: mike cullerton <michaelc@cullerton.com>
2022-10-25 14:12:32 -04:00
jasquat
7c53fc9fa7 Merge remote-tracking branch 'origin/main' into feature/permissions3 2022-10-18 08:43:09 -04:00
burnettk
2fbc6777bd filter out NotFound from our sentry alerts and fix a bunch of typing things 2022-10-18 07:09:03 -04:00
jasquat
93c4562944 merged in main and resolved conflicts w/ burnettk 2022-10-13 15:02:45 -04:00
jasquat
06a7c6485c remaining tests are now passing w/ burnettk 2022-10-13 14:59:26 -04:00
mike cullerton
516ee5fcd7 Remove allowed process stuff from secrets 2022-10-13 08:20:42 -04:00
mike cullerton
6da486fd99 Merge branch 'main' into feature/secrets 2022-10-12 16:57:56 -04:00
burnettk
9888bd09ad rename code to error_code 2022-10-11 10:08:05 -04:00
burnettk
a1f50f09cd lint 2022-10-06 06:51:19 -04:00
mike cullerton
453c4b1e24 add get and update for allowed process paths 2022-10-05 18:06:33 -04:00
mike cullerton
f3166cc8a8 Merge branch 'main' into feature/secrets 2022-10-04 15:29:33 -04:00
burnettk
bb2d4d2f1a bump spiffworkflow and fix lint 2022-10-03 12:29:04 -04:00
Dan
7ef2226dec Merge remote-tracking branch 'origin/main' into feature/upgrade_spiff_workflow_and_service_task 2022-09-30 13:12:21 -04:00
mike cullerton
ff56ed068d Use secret key when adding allowed process model 2022-09-30 12:15:04 -04:00
burnettk
8da5746bf6 never return 204, always return json response body 2022-09-29 00:13:30 -04:00
mike cullerton
4731d5e751 pre commit 2022-09-28 16:38:58 -04:00
mike cullerton
b44bd41b86 mypy 2022-09-28 16:36:23 -04:00
mike cullerton
906f4d5346 SecretService.get_secret returns the entire object, not just the value
Fixed the model so it also returns the allowed processes
2022-09-28 16:29:55 -04:00
Dan
69d8a8b146 raise an error when a secret is not found - this will help people attempting to debug their service tasks. 2022-09-28 14:44:59 -04:00
mike cullerton
c0512062b5 add secret_list api endpoint
pagination for secrets
SecretService.get_secret -> SecretService.get_secret_value
2022-09-28 14:40:24 -04:00
jasquat
da4c20524a code for api error codes instead of db errors since each db raises different errors for the samething 2022-09-23 10:46:03 -04:00
jasquat
8bb45c67d3 avoid checking for mysql specific error messages so other dbs can still work 2022-09-23 09:45:12 -04:00
mike cullerton
de512fb373 Pre commit 2022-09-22 16:40:47 -04:00
mike cullerton
65d163ed39 secrets api 2022-09-22 16:29:08 -04:00
mike cullerton
bddfc52b65 pre commit 2022-09-19 17:24:05 -04:00
mike cullerton
e9cb3b71be mypy 2022-09-19 17:18:03 -04:00
mike cullerton
1c411d0af5 Add UniqueConstraint on secret_id/allowed_relative_path columns in secret_allowed_process table
Add delete_allowed_process to SecretService
Added some remaining tests for SecretService
2022-09-19 17:02:20 -04:00
mike cullerton
05903af99b Committing to work on logging 2022-09-16 10:30:04 -04:00
mike cullerton
7eb76e2328 mypy, precommit 2022-09-15 11:36:14 -04:00
mike cullerton
faffa9c37b Secrets now uses simple key/value instead of service and client
Finished update and delete
Add checks for correct user
2022-09-15 11:29:54 -04:00
jasquat
5acf06046d precommit w/ burnettk cullerton jbirddog 2022-09-14 17:01:02 -04:00
jasquat
8f45f3d586 merged in main w/ burnettk cullerton jbirddog 2022-09-14 16:58:51 -04:00
mike cullerton
e20e2fa8e4 Committing for Thursday demo 2022-09-14 16:54:33 -04:00
mike cullerton
431216e63c pre commit 2022-09-13 10:33:44 -04:00
mike cullerton
75b183f821 mypy 2022-09-13 10:22:40 -04:00
mike cullerton
b5da2d35c5 pre commit 2022-09-13 09:08:24 -04:00
mike cullerton
b7915b71c9 First stab at secrets 2022-09-13 08:20:30 -04:00