Update local_policy.yaml

This commit is contained in:
orianelou 2024-10-01 13:05:23 +03:00 committed by GitHub
parent 7153d222c0
commit b58f7781e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
# open-appsec default declarative configuration file
# open-appsec Prevent declarative configuration file
# based on schema version: "v1beta2"
# more information on declarative configuration: https://docs.openappsec.io
@ -6,25 +6,16 @@ apiVersion: v1beta2
policies:
default:
# start in prevent-learn
# start in detect-learn and move to prevent-learn based on learning progress
mode: prevent-learn
threatPreventionPractices:
- default-threat-prevention-practice
accessControlPractices:
- default-access-control-practice
threatPreventionPractices: [default-threat-prevention-practice]
accessControlPractices: [default-access-control-practice]
customResponses: default-web-user-response
triggers:
- default-log-trigger
specificRules:
- host: www.example.com
# this is an example for specific rule, adjust the values as required for the protected app
mode: detect-learn
threatPreventionPractices:
- default-threat-prevention-practice
accessControlPractices:
- default-access-control-practice
triggers:
- default-log-trigger
triggers: [default-log-trigger]
sourceIdentifiers: ""
trustedSources: ""
exceptions: []
specificRules: []
threatPreventionPractices:
- name: default-threat-prevention-practice
@ -57,7 +48,7 @@ threatPreventionPractices:
files: []
# relevant for docker and linux embedded deployments
# 0 or 1 files supported in array
openapiSchemaValidation: # schema validation requires "Premium Edition"
schemaValidation: # schema validation requires "Premium Edition"
overrideMode: inherited
configmap: []
# relevant for deployments on kubernetes
@ -108,3 +99,4 @@ customResponses:
- name: default-web-user-response
mode: response-code-only
httpResponseCode: 403