Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kaanaktas committed Sep 28, 2022
1 parent 03d54dc commit dd59185
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Installation

Configuration
-------------
![](diagram.png)

## datafilter

Expand Down Expand Up @@ -126,7 +127,7 @@ the **GO_SLM_COMMON_POLICIES_PATH** environment variable as in the example below
**common_policies.yaml**

```
policy:
- policy:
name: combined_policy
statement:
- type: data
Expand All @@ -146,7 +147,26 @@ the **GO_SLM_COMMON_POLICIES_PATH** environment variable as in the example below
order: 10
- name: weekdays
active: true
order: 20
order: 20
- policy:
name: pan_only_policy
statement:
- type: data
action:
- name: pan_process
active: true
- policy:
name: combined_policy_no_schedule
statement:
- type: data
order: 100
action:
- name: xss
active: true
- name: pan_process
active: true
- name: sqli
active: true
```

Below, you can see how policy based definitions are generated for our API services. Simply, our common policies that we create
Expand All @@ -160,10 +180,10 @@ environment variable as in the example below.
**policy_rule_set.yaml**

```
- serviceName: test
- serviceName: service_test
request: combined_policy
response: pan_only_policy
- serviceName: test2
request: combined_policy
- serviceName: service_test_2
request: combined_policy_no_schedule
response: pan_only_policy
```
Binary file added diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dd59185

Please sign in to comment.