diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/config/demo.py b/spiffworkflow-backend/src/spiffworkflow_backend/config/demo.py new file mode 100644 index 00000000..78e5dd20 --- /dev/null +++ b/spiffworkflow-backend/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/spiffworkflow-backend/src/spiffworkflow_backend/config/permissions/demo.yml b/spiffworkflow-backend/src/spiffworkflow_backend/config/permissions/demo.yml new file mode 100644 index 00000000..9fe49997 --- /dev/null +++ b/spiffworkflow-backend/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: /*