8000 Add support for CSRF protection in APPolicy by rafwegv · Pull Request #1578 · nginx/kubernetes-ingress · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 94 additions & 0 deletions deployments/common/crds/appprotect.f5.com_appolicies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ spec:
- VIOL_GRPC_METHOD
- VIOL_PARAMETER_ARRAY_VALUE
- VIOL_PARAMETER_VALUE_REGEXP
- VIOL_CSRF
- VIOL_PARAMETER_VALUE_BASE64
- VIOL_MANDATORY_HEADER
- VIOL_HEADER_REPEATED
Expand Down Expand Up @@ -386,6 +387,40 @@ spec:
type: integer
type: object
type: array
csrf-protection:
properties:
enabled:
type: boolean
expirationTimeInSeconds:
pattern: disabled|\d+
type: string
sslOnly:
type: boolean
type: object
csrf-urls:
items:
properties:
$action:
enum:
- delete
type: string
enforcementAction:
enum:
- verify-origin
- none
type: string
method:
enum:
- GET
- POST
- any
type: string
url:
type: string
wildcardOrder:
type: integer
type: object
type: array
data-guard:
properties:
creditCardNumbers:
Expand Down Expand Up @@ -618,6 +653,19 @@ spec:
type: integer
type: object
type: array
host-names:
items:
properties:
$action:
enum:
- delete
type: string
includeSubdomains:
type: boolean
name:
type: string
type: object
type: array
idl-files:
items:
properties:
Expand Down Expand Up @@ -1180,13 +1228,57 @@ spec:
items:
properties:
$action:
enum:
- delete
type: string
allowRenderingInFrames:
enum:
- never
- only-same
type: string
allowRenderingInFramesOnlyFrom:
type: string
attackSignaturesCheck:
type: boolean
clickjackingProtection:
type: boolean
description:
type: string
disallowFileUploadOfExecutables:
type: boolean
html5CrossOriginRequestsEnforcement:
properties:
allowOriginsEnforcementMode:
enum:
- replace-with
- unmodified
type: string
checkAllowedMethods:
type: boolean
crossDomainAllowedOrigin:
items:
properties:
includeSubDomains:
type: boolean
originName:
type: string
originPort:
pattern: any|\d+
type: string
originProtocol:
enum:
- http
- http/https
- https
type: string
type: object
type: array
enforcementMode:
enum:
- disabled
- enforce
type: string
type: object
isAllowed:
type: boolean
mandatoryBody:
Expand Down Expand Up @@ -1298,6 +1390,8 @@ spec:
type: boolean
name:
type: string
operationId:
type: string
positionalParameters:
items:
properties:
Expand Down
94 changes: 94 additions & 0 deletions deployments/helm-chart/crds/appprotect.f5.com_appolicies.yaml
Original file line number Diff line number Diff line change
Expand Up 8000 @@ -166,6 +166,7 @@ spec:
- VIOL_GRPC_METHOD
- VIOL_PARAMETER_ARRAY_VALUE
- VIOL_PARAMETER_VALUE_REGEXP
- VIOL_CSRF
- VIOL_PARAMETER_VALUE_BASE64
- VIOL_MANDATORY_HEADER
- VIOL_HEADER_REPEATED
Expand Down Expand Up @@ -386,6 +387,40 @@ spec:
type: integer
type: object
type: array
csrf-protection:
properties:
enabled:
type: boolean
expirationTimeInSeconds:
pattern: disabled|\d+
type: string
sslOnly:
type: boolean
type: object
csrf-urls:
items:
properties:
$action:
enum:
- delete
type: string
enforcementAction:
enum:
- verify-origin
- none
type: string
method:
enum:
- GET
- POST
- any
type: string
url:
type: string
wildcardOrder:
type: integer
type: object
type: array
data-guard:
properties:
creditCardNumbers:
Expand Down Expand Up @@ -618,6 +653,19 @@ spec:
type: integer
type: object
type: array
host-names:
items:
properties:
$action:
enum:
- delete
type: string
includeSubdomains:
type: boolean
name:
type: string
type: object
type: array
idl-files:
items:
properties:
Expand Down Expand Up @@ -1180,13 +1228,57 @@ spec:
items:
properties:
$action:
enum:
- delete
type: string
allowRenderingInFrames:
enum:
- never
- only-same
type: string
allowRenderingInFramesOnlyFrom:
type: string
attackSignaturesCheck:
type: boolean
clickjackingProtection:
type: boolean
description:
type: string
disallowFileUploadOfExecutables:
type: boolean
html5CrossOriginRequestsEnforcement:
properties:
allowOriginsEnforcementMode:
6D40 enum:
- replace-with
- unmodified
type: string
checkAllowedMethods:
type: boolean
crossDomainAllowedOrigin:
items:
properties:
includeSubDomains:
type: boolean
originName:
type: string
originPort:
pattern: any|\d+
type: string
originProtocol:
enum:
- http
- http/https
- https
type: string
type: object
type: array
enforcementMode:
enum:
- disabled
- enforce
type: string
type: object
isAllowed:
type: boolean
mandatoryBody:
Expand Down Expand Up @@ -1298,6 +1390,8 @@ spec:
type: boolean
name:
type: string
operationId:
type: string
positionalParameters:
items:
properties:
Expand Down
0