Merged in feature/demo-support (pull request #207)
Feature/demo support * index logs now debug * demo data loader
This commit is contained in:
@@ -32,9 +32,14 @@ they conflict with some of the names we use for our roles.
|
||||
```bash
|
||||
export PERMIT_API_KEY="permit_key_omitted-here"
|
||||
go run setup_permit.go -list
|
||||
go run setup_permit.go -config permit_policies.yaml -project default -env dev
|
||||
go run setup_permit.go -config permit_policies.yaml -project default -env <id of the env>
|
||||
```
|
||||
|
||||
Note: When you do the list operation you will get the id of the target environment to put in the -env parameter.
|
||||
|
||||
### Environments in permit
|
||||
You must create a new enviroment in permit.io manually at this time. This tools just sets up the resources and policies for an existing enviromment. We will have to extend this tool later to create the environment if it does not already exist once we are creating a lot of enviroments.
|
||||
|
||||
### Dry Run Mode
|
||||
|
||||
To see what would be created without making actual changes:
|
||||
|
||||
@@ -50,6 +50,19 @@ resources:
|
||||
- get
|
||||
- post
|
||||
|
||||
- name: field-extractions
|
||||
description: Field extraction data for documents
|
||||
actions:
|
||||
- get
|
||||
- post
|
||||
|
||||
- name: folders
|
||||
description: Folder management for document organization
|
||||
actions:
|
||||
- get
|
||||
- post
|
||||
- patch
|
||||
|
||||
- name: home
|
||||
description: Home page access
|
||||
actions:
|
||||
@@ -87,6 +100,13 @@ roles:
|
||||
export:
|
||||
- get
|
||||
- post
|
||||
field-extractions:
|
||||
- get
|
||||
- post
|
||||
folders:
|
||||
- get
|
||||
- post
|
||||
- patch
|
||||
home:
|
||||
- get
|
||||
|
||||
@@ -99,6 +119,12 @@ roles:
|
||||
- patch
|
||||
- delete
|
||||
- head
|
||||
field-extractions:
|
||||
- get
|
||||
- post
|
||||
folders:
|
||||
- get
|
||||
- post
|
||||
home:
|
||||
- get
|
||||
|
||||
@@ -118,6 +144,10 @@ roles:
|
||||
- get
|
||||
export:
|
||||
- get
|
||||
field-extractions:
|
||||
- get
|
||||
folders:
|
||||
- get
|
||||
home:
|
||||
- get
|
||||
|
||||
@@ -134,6 +164,13 @@ roles:
|
||||
export:
|
||||
- get
|
||||
- post
|
||||
field-extractions:
|
||||
- get
|
||||
- post
|
||||
folders:
|
||||
- get
|
||||
- post
|
||||
- patch
|
||||
home:
|
||||
- get
|
||||
notes: |
|
||||
@@ -221,6 +258,18 @@ policy_mappings:
|
||||
methods:
|
||||
GET: export:get
|
||||
|
||||
field_extraction_endpoints:
|
||||
- path: /field-extractions
|
||||
methods:
|
||||
GET: field-extractions:get
|
||||
POST: field-extractions:post
|
||||
- path: /field-extractions/version
|
||||
methods:
|
||||
GET: field-extractions:get
|
||||
- path: /field-extractions/history
|
||||
methods:
|
||||
GET: field-extractions:get
|
||||
|
||||
auth_endpoints:
|
||||
- path: /home
|
||||
methods:
|
||||
@@ -253,6 +302,8 @@ dynamic_mapping:
|
||||
resource: document
|
||||
- url: /admin/users
|
||||
resource: admin
|
||||
- url: /field-extractions
|
||||
resource: field-extractions
|
||||
|
||||
action_extraction:
|
||||
logic: HTTP method converted to lowercase
|
||||
|
||||
Reference in New Issue
Block a user