Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unary gRPC support in APPolicy #1411

Merged
merged 1 commit into from
May 5, 2021
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
1 change: 1 addition & 0 deletions deployments/common/crds/appprotect.f5.com_aplogconfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ spec:
- arcsight
- default
- user-defined
- grpc
type: string
format_string:
type: string
Expand Down
154 changes: 154 additions & 0 deletions deployments/common/crds/appprotect.f5.com_appolicies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@ spec:
type: string
name:
enum:
- VIOL_GRPC_FORMAT
- VIOL_GRPC_MALFORMED
- VIOL_GRPC_METHOD
- VIOL_PARAMETER_ARRAY_VALUE
- VIOL_PARAMETER_VALUE_REGEXP
- VIOL_PARAMETER_VALUE_BASE64
- VIOL_MANDATORY_HEADER
- VIOL_HEADER_REPEATED
Expand Down Expand Up @@ -377,6 +382,8 @@ spec:
- explicit
- wildcard
type: string
wildcardOrder:
type: integer
type: object
type: array
data-guard:
Expand Down Expand Up @@ -427,6 +434,8 @@ spec:
filetypes:
items:
properties:
action:
type: string
allowed:
type: boolean
checkPostDataLength:
Expand Down Expand Up @@ -454,6 +463,8 @@ spec:
type: string
urlLength:
type: integer
wildcardOrder:
type: integer
type: object
type: array
fullPath:
Expand Down Expand Up @@ -482,6 +493,62 @@ spec:
pattern: ^http
type: string
type: object
grpc-profiles:
items:
properties:
associateUrls:
type: boolean
attackSignaturesCheck:
type: boolean
defenseAttributes:
properties:
allowUnknownFields:
type: boolean
maximumDataLength:
pattern: any|\d+
type: string
type: object
description:
type: string
hasIdlFiles:
type: boolean
idlFiles:
items:
properties:
idlFile:
properties:
contents:
type: string
fileName:
type: string
isBase64:
type: boolean
type: object
isPrimary:
type: boolean
primaryIdlFileName:
type: string
type: object
type: array
metacharElementCheck:
type: boolean
name:
type: string
signatureOverrides:
items:
properties:
enabled:
type: boolean
name:
type: string
signatureId:
type: integer
tag:
type: string
type: object
type: array
type: object
type: array
header-settings:
properties:
maximumHttpHeaderLength:
Expand All @@ -503,6 +570,8 @@ spec:
headers:
items:
properties:
allowRepeatedOccurrences:
type: boolean
base64Decoding:
type: boolean
checkSignatures:
Expand All @@ -525,13 +594,39 @@ spec:
type: boolean
percentDecoding:
type: boolean
signatureOverrides:
items:
properties:
enabled:
type: boolean
name:
type: string
signatureId:
type: integer
tag:
type: string
type: object
type: array
type:
enum:
- explicit
- wildcard
type: string
urlNormalization:
type: boolean
wildcardOrder:
type: integer
type: object
type: array
idl-files:
items:
properties:
contents:
type: string
fileName:
type: string
isBase64:
type: boolean
type: object
type: array
json-profiles:
Expand All @@ -558,6 +653,8 @@ spec:
type: object
description:
type: string
handleJsonValuesAsParameters:
type: boolean
hasValidationFiles:
type: boolean
metacharOverrides:
Expand Down Expand Up @@ -636,6 +733,8 @@ spec:
methods:
items:
properties:
action:
type: string
name:
type: string
type: object
Expand Down Expand Up @@ -719,6 +818,8 @@ spec:
type: boolean
exclusiveMin:
type: boolean
isBase64:
type: boolean
isCookie:
type: boolean
isHeader:
Expand All @@ -728,12 +829,20 @@ spec:
- global
- url
type: string
mandatory:
type: boolean
maximumLength:
type: integer
maximumValue:
type: integer
metacharsOnParameterValueCheck:
type: boolean
minimumLength:
type: integer
minimumValue:
type: integer
multipleOf:
type: integer
name:
type: string
nameMetacharOverrides:
Expand Down Expand Up @@ -784,6 +893,8 @@ spec:
- explicit
- wildcard
type: string
url:
type: object
valueMetacharOverrides:
items:
properties:
Expand All @@ -807,6 +918,8 @@ spec:
- user-input
- xml
type: string
wildcardOrder:
type: integer
type: object
type: array
response-pages:
Expand All @@ -826,6 +939,11 @@ spec:
type: string
ajaxRedirectUrl:
type: string
grpcStatusCode:
pattern: ABORTED|ALREADY_EXISTS|CANCELLED|DATA_LOSS|DEADLINE_EXCEEDED|FAILED_PRECONDITION|INTERNAL|INVALID_ARGUMENT|NOT_FOUND|OK|OUT_OF_RANGE|PERMISSION_DENIED|RESOURCE_EXHAUSTED|UNAUTHENTICATED|UNAVAILABLE|UNIMPLEMENTED|UNKNOWN|d+
type: string
grpcStatusMessage:
type: string
responseActionType:
enum:
- custom
Expand Down Expand Up @@ -853,6 +971,7 @@ spec:
- mobile
- persistent-flow
- xml
- grpc
type: string
responseRedirectUrl:
type: string
Expand Down Expand Up @@ -1060,6 +1179,8 @@ spec:
urls:
items:
properties:
$action:
type: string
attackSignaturesCheck:
type: boolean
description:
Expand Down Expand Up @@ -1242,6 +1363,8 @@ spec:
type: boolean
exclusiveMin:
type: boolean
isBase64:
type: boolean
isCookie:
type: boolean
isHeader:
Expand All @@ -1251,12 +1374,20 @@ spec:
- global
- url
type: string
mandatory:
type: boolean
maximumLength:
type: integer
maximumValue:
type: integer
metacharsOnParameterValueCheck:
type: boolean
minimumLength:
type: integer
minimumValue:
type: integer
multipleOf:
type: integer
name:
type: string
nameMetacharOverrides:
Expand Down Expand Up @@ -1307,6 +1438,8 @@ spec:
- explicit
- wildcard
type: string
url:
type: object
valueMetacharOverrides:
items:
properties:
Expand All @@ -1330,6 +1463,8 @@ spec:
- user-input
- xml
type: string
wildcardOrder:
type: integer
type: object
urlSegmentIndex:
type: integer
Expand Down Expand Up @@ -1361,6 +1496,11 @@ spec:
urlContentProfiles:
items:
properties:
contentProfile:
properties:
name:
type: string
type: object
headerName:
type: string
headerOrder:
Expand All @@ -1379,6 +1519,7 @@ spec:
- gwt
- json
- xml
- grpc
type: string
type: object
type: array
Expand Down Expand Up @@ -1466,6 +1607,19 @@ spec:
type: boolean
name:
type: string
signatureOverrides:
items:
properties:
enabled:
type: boolean
name:
type: string
signatureId:
type: integer
tag:
type: string
type: object
type: array
type: object
type: array
xml-validation-files:
Expand Down
Loading