Commit Graph

240 Commits

Author SHA1 Message Date
Jakub Sokołowski 819415d487 backend: create SSH key file when contents provided
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-02-21 20:02:16 +01:00
Jakub Sokołowski 56a913e33c backend: use sensible lock filename for git
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-02-21 19:58:39 +01:00
Jakub Sokołowski 1e8e6a7968 backend: fix use of SSH private key for git ops
Primarily this is supposed to fix the `git pull` aciton triggered by
webhooks from GitHub. But in addition to that the point is to simplify
that committing wrapper which has far too much in it.

Instead of passing everything as CLI arguments one should make use of
already supported environment variables and the `env` argument to
`subprocess` functions like `run()`. Writing extra logic in the wrapper
only makes it unnecessarily complicated.

By passing both user, email, and the SSH options in `run_shell_command`
we avoid the need to repeat the same boilerplate to provide Git config
and SSH credentials.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-02-21 19:58:36 +01:00
jasquat b22c33e1d6 put the env vars in the env section of the github action configs w/ burnettk 2023-02-16 15:19:01 -05:00
jasquat 0839214fa5 added test for quickstart guide w/ burnettk 2023-02-16 15:05:55 -05:00
jasquat 641d237e83 more config updates w/ burnettk 2023-02-16 10:21:02 -05:00
jasquat c9c1ae4c16 fixed some env vars for ci 2023-02-16 07:59:51 -05:00
jasquat 26875f13bf updated remaining configs manually w/ burnettk 2023-02-15 17:21:37 -05:00
jasquat 3e4fc1259f updated configs to use the prefix using the script w/ burnettk 2023-02-15 17:07:12 -05:00
jasquat 84f27082d4 updates to user import scripts w/ burnettk 2023-02-14 17:39:42 -05:00
jasquat 683c1ee2c1 added script to import users w/ burnettk 2023-02-13 12:15:00 -05:00
jasquat 098aa69216 added api endpoint to allow logging in for the first time with an openid access_token w/ burnettk 2023-02-13 11:57:31 -05:00
jasquat 1d4a7a9b94 added additional columns to spiff_step_details w/ burnettk jbirddog 2023-02-08 12:43:30 -05:00
jasquat 0162821b4c allow configuring gunicorn configs in boot_server_in_docker w/ burnettk 2023-02-07 15:38:29 -05:00
jasquat 559d9a78d8 renamed development env to local_development and testing to unit_testing w/ burnettk 2023-02-07 15:02:47 -05:00
burnettk c74719d13d update get_token 2023-02-06 17:55:07 -05:00
Dan a38ecc2e60 Merge remote-tracking branch 'origin/main' into feature/jinja_errors 2023-01-25 15:38:52 -05:00
Dan 40682d0592 Added useMemo to error context
No longer clear errors in the task bar, as that will constantly remove them as soon as they are shown.
2023-01-25 15:09:05 -05:00
jasquat 2d57c3d45f strip off newlines and spaces when importing secrets and pinning spiffworkflow to working version until we can debug issues with new one w/ burnettk 2023-01-23 17:18:47 -05:00
jasquat 102413326a added locking system for process instances so hopefully background jobs will not take instances currently being run by the user w/ burnettk 2023-01-23 16:45:07 -05:00
burnettk fd2146bd46 since accepting the github host entry programatically is no more secure 2023-01-20 19:06:59 -05:00
jasquat d8cf4b1287 allow specifying an ssh key for git instead of a username and password w/ burnettk 2023-01-20 15:11:23 -05:00
jasquat 3f4781c5ee find the top level process to find the task form when using subprocesses in called activities w/ burnettk danfunk 2023-01-20 12:03:29 -05:00
Dan 8496b722fd Merges 2023-01-19 13:26:13 -05:00
Dan 3c12e8ad35 Lots of adjustments from running pyl
Main change is in the ErrorDisplay.tsx to assure all error information is provided. and index.css to make it "pretty"
2023-01-19 12:36:45 -05:00
jasquat 306676aa11 added script to add test keycloak users and moved all keycloak stuff to keycloak directory w/ burnettk 2023-01-19 12:18:05 -05:00
Dan 28a28e353b Removing dependency on flask-bpmn and taking it out of SpiffArena
Slightly updating the APIError code for recent updates to SpiffWorkflow's error refactoring.
2023-01-17 12:56:06 -05:00
jasquat 7194864e6d do not write to logs when a task is inheriting data from the parent w/ burnettk 2023-01-17 12:23:51 -05:00
jasquat aa6546656e logout works now and queryparams are getting passed correctly on login now 2023-01-12 10:29:37 -05:00
jasquat 6b5087c128 debugging cookies w/ burnettk 2023-01-11 14:52:12 -05:00
jasquat 21d32f00be updated get_token to actually work 2023-01-11 10:47:35 -05:00
jasquat fa3d727b60 added in debug logging for launching call activity editor w/ burnettk 2023-01-09 16:24:36 -05:00
jasquat 83e9a08b90 fix setting the bpmn dir in start scripts w/ burnettk 2023-01-09 14:23:40 -05:00
jasquat 76551f5301 some updates to test w/ burnettk 2023-01-09 10:19:31 -05:00
burnettk 4d0a1abaf0 ensure we are not accidentally using main 2023-01-06 11:08:30 -05:00
jasquat ee650e6039 added ability to filter process instances by process initiator 2023-01-04 16:11:52 -05:00
burnettk 09e012674a upgrade black, give it the preview flag, and let it rip on long strings 2022-12-30 23:08:00 -05:00
jasquat 76c3f13630 ensure we get logs for both db and backend with docker compose w/ burnettk 2022-12-30 10:06:52 -05:00
jasquat bca74bc43b fixed some cypress tests and fixed issue where an invalid date caused the page to constantly reload w/ burnettk 2022-12-28 12:27:37 -05:00
jasquat 3e26226514 some cypress tests w/ burnettk 2022-12-27 15:42:22 -05:00
jasquat 866346f47b added ability to view data objects from the process instance show page w/ burnettk 2022-12-27 11:45:42 -05:00
burnettk 90f578460a dev permissions copied from terraform deployed and terraform deployed now tiny, minor fixes 2022-12-23 23:39:48 -05:00
burnettk c108cd2bf1 fix flask bpmn poetry lock and change admin email to spiffworkflow.org 2022-12-23 12:18:15 -05:00
burnettk e9d1ae45e7 fix qa1 and add script to get perms 2022-12-22 21:29:12 -05:00
jasquat 5a6e181a99 merged in main and resolved conflicts w/ burnettk 2022-12-20 15:06:34 -05:00
jasquat ccac73bb54 set the auth header when calling git commit w/ burnettk 2022-12-19 11:15:05 -05:00
Dan 6f8425a14b Merge branch 'feature/better_unit_tests' into feature/bpmn_user_permissions 2022-12-15 15:01:59 -05:00
Dan 160e19bb8c When loading permissions and the user does not exist, add records to the UserGroupAssignmentWaiting table that can be picked up later.
Request "profile" scope over OpenID so we can get a few more bits of information when avilable.
Add a "clear_perissions" script
Add an "add_permissions" script
Add an "add_permissions" script
When logging in for the first time, check for any awaiting permissions and assign them.
Add "enumerate" as a whitelisted function to React Schema
Add a "display_name" to the user table

Add a test for adding a new permission
Add a test for adding a user to group
Adding a test for deleting all permissions.
Adding a display name for the user table
2022-12-15 14:40:31 -05:00
jasquat 16eec49ca8 commit and push to github on all changes to bpmn dir w/ burnettk cullerton 2022-12-15 12:52:53 -05:00
Dan 6de91d2230 Merge remote-tracking branch 'origin/unit_test_404' into feature/bpmn_user_permissions 2022-12-15 07:19:19 -05:00
burnettk 52e0036209 make replacing keycloak more robust, as it now works when the container is running 2022-12-14 21:29:46 -05:00
jasquat 1e62a77e81 some fixes for ci w/ burnettk 2022-12-14 17:09:43 -05:00
Dan 4a8b07e98d Removing two fields from user table that were not used (uid, name)
Request email from open id clients, as this would provide a handy way to uniquely reference users when assigning to groups.
During Login do a lookup on email if possible -- so that permissions assignments based on email can be connected when sigining in through openid.
Don't use "open_id" for the service name on user accounts, use the iss string provided through open id,  this will allow us to support more than one open id platform.
Update the KeyCloak configuration so it is able to return email addresses for users -- which will make permission assignment easier in the future.
Removed several unused commands in the user_service class.
2022-12-12 15:43:19 -05:00
jasquat d50d95a49c added git creds for pushing on publish w/ burnettk cullerton 2022-12-08 16:39:23 -05:00
jasquat cee726e8b0 pyl passes 2022-12-08 13:47:30 -05:00
jasquat 0fc136a6dd added frontend url as post redirect url in keycloak w/ burnettk 2022-12-07 15:11:58 -05:00
Dan 3a09b45765 running py_pl -- mainly reordering imports. 2022-12-05 12:29:19 -05:00
burnettk 0ae1a5e89e make sasha, harmeet, manuchehr, and admin have desired permissions for demo 2022-11-27 21:07:20 -05:00
burnettk ab8a6d7719 upgrade keycloak 2022-11-25 12:49:41 -05:00
burnettk 2eb3ef6aa3 renames 2022-11-24 12:00:26 -05:00
burnettk 6643e9b711 add fin1, lead1, and Tasks actioned by me to Tasks completed by me 2022-11-24 10:38:25 -05:00
jasquat e5e6226bb9 created new users for keycloak and fixed some permissions for core user w/ burnettk cullerton 2022-11-22 13:01:08 -05:00
jasquat 77ff18a85c pyl is passing w/ burnettk cullerton 2022-11-18 16:45:44 -05:00
mike cullerton 576d60e41d precommit 2022-11-18 15:50:20 -05:00
mike cullerton afc89fc620 No need for script. 2022-11-18 14:17:31 -05:00
mike cullerton f88f576dcb Rename CAT_JSON_FILE, WF_JSON_FILE, add_spec, update_spec 2022-11-17 12:08:42 -05:00
burnettk 91b69e0ada pyl 2022-11-11 11:39:15 -05:00
mike cullerton b13bfe0489 Delete groups now checks for running instances in nested models
also, pyl
2022-11-10 16:44:27 -05:00
jbirddog 5b01c50d6a Move to Python 3.11 (#27) 2022-11-09 13:45:16 -05:00
mike cullerton 812029cf9c script to modify all model json files to use full path for model id. Also removes process_group_id 2022-11-08 12:38:51 -05:00
burnettk 79718ad7c4 re-order imports the way backend always used to 2022-10-31 09:25:35 -04:00
burnettk 14fe339a53 Merge commit 'e958ec3e79cb99940a38c29eddfc2b385af7d49f' 2022-10-28 13:42:21 -04:00
burnettk ad8a67de66 Merge commit 'c24cc56fb00e07f6cfe16840c65471443b120daf' 2022-10-27 22:03:49 -04:00
jasquat c63e9cf521 pyl passes w/ burnettk 2022-10-27 15:38:04 -04:00
jasquat 6b0be70bdb avoid sending two errors to sentry w/ burnettk 2022-10-27 15:33:59 -04:00
jasquat b6d65fe2f6 Merge commit 'e228ab4b80138b3e943b11774c1fd47957ea7562' 2022-10-25 16:55:11 -04:00
burnettk af1eb47568 Merge commit '7026fe1f779051f6eb99b872bcd45b14c0cbe88f' 2022-10-24 17:53:02 -04:00
burnettk 50a4c2c2e0 Merge commit '9a1e33696a744527a18dbec667140edb4038ac94' 2022-10-21 17:51:39 -04:00
jasquat f9a1003a88 resolved merge conflicts in backend w/ burnettk 2022-10-21 10:38:13 -04:00
burnettk f7557c48e9 Merge commit '4a48d9cccd1ca8619b3dbef3c10bcce667c9d9e0' 2022-10-20 16:00:12 -04:00
jasquat df4aba86c0 Merge commit '81746ee508f6ab0ffe757856d9a3d5d855db2560' 2022-10-19 16:16:50 -04:00
burnettk 004378369a Merge commit 'aa22f4b397a899fa06d06c2e9127ca98d9eb909a' 2022-10-18 10:22:31 -04:00
burnettk 37decafb7d Merge commit '4f0f5b1ece069ec56f8eb4154d61334a321749a1' 2022-10-18 07:09:34 -04:00
burnettk 030f315d03 Merge commit 'b4975660431c275ce736e0431b98c39548200af1' 2022-10-17 21:35:30 -04:00
burnettk bf4e933821 Merge commit 'c9bd62250452403550ae1bf1d27547d4796dd316' 2022-10-17 17:36:41 -04:00
burnettk c6b429ea5b Merge commit '9be0517531543655a35023af17b76dbb41eab93e' 2022-10-17 17:09:47 -04:00
burnettk 4aad51f886 Merge commit 'bee232a55a82054e629f48f0333495b61a7da7d1' 2022-10-17 10:20:35 -04:00
burnettk bc7db19a90 Merge commit '71e189afbc127b574cca8d02fc31b2e65aff0d52' 2022-10-16 22:32:16 -04:00
Jon Herron 7ec037bbde Merge main, resolve conflicts 2022-10-12 15:32:33 -04:00
Jon Herron c30d6bbe1e Merge commit '883e65384f1e36a0310f4fdcff57ac486890cd5e' as 'spiffworkflow-backend' 2022-10-12 10:22:22 -04:00