-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding permission matrix migration script
- Loading branch information
1 parent
9f1497c
commit 1a02e76
Showing
8 changed files
with
354 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
### Setup | ||
|
||
#### 1. Create a virtual environment | ||
|
||
##### For macOS/Linux: | ||
```bash | ||
python3 -m venv venv | ||
``` | ||
|
||
##### For Windows: | ||
```powershell | ||
python -m venv venv | ||
``` | ||
|
||
#### 2. Activate the virtual environment | ||
|
||
##### For macOS/Linux: | ||
```bash | ||
source venv/bin/activate | ||
``` | ||
|
||
##### For Windows: | ||
```powershell | ||
.\venv\Scripts\activate | ||
``` | ||
|
||
#### 3. Install requirements | ||
```bash | ||
pip install -r requirements.txt | ||
``` | ||
|
||
#### 4. Add environment variables | ||
|
||
##### For macOS/Linux: | ||
```bash | ||
export KEYCLOAK_BASE_URL=<keycloak-base-url> | ||
export REALM=<formsflow-realm> | ||
export CLIENT_ID=<forms-flow-bpm or keycloak client id with client_credentials grant> | ||
export CLIENT_SECRET=<keycloak client secret> | ||
``` | ||
|
||
##### For Windows (CMD): | ||
```cmd | ||
export KEYCLOAK_BASE_URL=<keycloak-base-url> | ||
export REALM=<formsflow-realm> | ||
export CLIENT_ID=<forms-flow-bpm or keycloak client id with client_credentials grant> | ||
export CLIENT_SECRET=<keycloak client secret> | ||
``` | ||
|
||
##### For Windows (PowerShell): | ||
```powershell | ||
export KEYCLOAK_BASE_URL=<keycloak-base-url> | ||
export REALM=<formsflow-realm> | ||
export CLIENT_ID=<forms-flow-bpm or keycloak client id with client_credentials grant> | ||
export CLIENT_SECRET=<keycloak client secret> | ||
``` | ||
|
||
### Migration | ||
#### 7.0.0 | ||
In v7.0.0, permission matrix has been introduced, so existing groups needs new client roles. Run the following command to migrate the groups: | ||
```bash | ||
python migrate-7.0.0.py | ||
``` |
Oops, something went wrong.