Using appsec class for assigning separate custom resources to specific deployments
Using appsec class
helm install ... --set appsec.className=myCustomClass1 ...apiVersion: openappsec.io/v1beta2
kind: Policy
metadata:
name: policy-example
spec:
appsecClassName: myCustomClass1
default:
mode: detect-learn
accessControlPractices: [access-control-practice-example]
threatPreventionPractices: [threat-prevention-practice-example]
triggers: [log-trigger-example]
customResponse: custom-response-code-example
sourceIdentifiers: ""
trustedSources: ""
exceptions:
- exception-example
specificRules:
- host: "example.com"
mode: prevent-learn
threatPreventionPractices: [threat-prevention-practice-example]
accessControlPractices: [access-control-practice-example]
triggers: [log-trigger-example]
customResponse: custom-response-code-example
sourceIdentifiers: ""
trustedSources: ""
exceptions:
- exception-examplePreviousConfiguration using CRDs - special options for Large Scale DeploymentsNextUsing namespace-scoped custom resources
Last updated
Was this helpful?