From f21d0ef3a98458deb347fb2a51fab0b5b41f7fe2 Mon Sep 17 00:00:00 2001 From: jasquat Date: Fri, 14 Oct 2022 16:43:34 -0400 Subject: [PATCH] Squashed 'spiffworkflow-backend/' changes from 59e6ee2c..3fff3539 3fff3539 added configs for demo env w/ burnettk git-subtree-dir: spiffworkflow-backend git-subtree-split: 3fff3539fb5685ea68a26cba1a6a3b58af014c37 --- src/spiffworkflow_backend/config/demo.py | 9 ++++++ .../config/permissions/demo.yml | 28 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 src/spiffworkflow_backend/config/demo.py create mode 100644 src/spiffworkflow_backend/config/permissions/demo.yml diff --git a/src/spiffworkflow_backend/config/demo.py b/src/spiffworkflow_backend/config/demo.py new file mode 100644 index 000000000..78e5dd201 --- /dev/null +++ b/src/spiffworkflow_backend/config/demo.py @@ -0,0 +1,9 @@ +"""Staging.""" +from os import environ + +GIT_COMMIT_ON_SAVE = True +GIT_COMMIT_USERNAME = "demo" +GIT_COMMIT_EMAIL = "demo@example.com" +SPIFFWORKFLOW_BACKEND_PERMISSIONS_FILE_NAME = environ.get( + "SPIFFWORKFLOW_BACKEND_PERMISSIONS_FILE_NAME", default="demo.yml" +) diff --git a/src/spiffworkflow_backend/config/permissions/demo.yml b/src/spiffworkflow_backend/config/permissions/demo.yml new file mode 100644 index 000000000..9fe49997d --- /dev/null +++ b/src/spiffworkflow_backend/config/permissions/demo.yml @@ -0,0 +1,28 @@ +groups: + admin: + users: [jakub, kb, alex, dan, mike, jason, amir, jarrad, elizabeth, jon] + + finance: + users: [harmeet, sasha] + + hr: + users: [manuchehr] + +permissions: + admin: + groups: [admin] + users: [] + allowed_permissions: [create, read, update, delete, list, instantiate] + uri: /* + + finance-admin: + groups: [finance] + users: [] + allowed_permissions: [create, read, update, delete] + uri: /v1.0/process-groups/finance/* + + read-all: + groups: [finance, hr, admin] + users: [] + allowed_permissions: [read] + uri: /*