Skip to content

Commit

Permalink
1.10.3
Browse files Browse the repository at this point in the history
Signed-off-by: Shreyas220 <[email protected]>
  • Loading branch information
Shreyas220 committed Aug 19, 2021
1 parent 7d73a27 commit 5e28cd4
Show file tree
Hide file tree
Showing 25 changed files with 4,784 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ main
**errorutil_analyze_errors.json
**errorutil_analyze_summary.json
**errorutil_errors_export.json
**generator.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,275 @@
{
"description": "Configuration for access control on workloads. See more details at: https://istio.io/docs/reference/config/security/authorization-policy.html",
"oneOf": [
{
"not": {
"anyOf": [
{
"required": [
"provider"
]
}
]
}
},
{
"required": [
"provider"
]
}
],
"properties": {
"action": {
"description": "Optional.",
"enum": [
"ALLOW",
"DENY",
"AUDIT",
"CUSTOM"
],
"type": "string"
},
"provider": {
"description": "Specifies detailed configuration of the CUSTOM action.",
"properties": {
"name": {
"description": "Specifies the name of the extension provider.",
"format": "string",
"type": "string"
}
},
"type": "object"
},
"rules": {
"description": "Optional.",
"items": {
"properties": {
"from": {
"description": "Optional.",
"items": {
"properties": {
"source": {
"description": "Source specifies the source of a request.",
"properties": {
"ipBlocks": {
"description": "Optional.",
"items": {
"format": "string",
"type": "string"
},
"type": "array"
},
"namespaces": {
"description": "Optional.",
"items": {
"format": "string",
"type": "string"
},
"type": "array"
},
"notIpBlocks": {
"description": "Optional.",
"items": {
"format": "string",
"type": "string"
},
"type": "array"
},
"notNamespaces": {
"description": "Optional.",
"items": {
"format": "string",
"type": "string"
},
"type": "array"
},
"notPrincipals": {
"description": "Optional.",
"items": {
"format": "string",
"type": "string"
},
"type": "array"
},
"notRemoteIpBlocks": {
"description": "Optional.",
"items": {
"format": "string",
"type": "string"
},
"type": "array"
},
"notRequestPrincipals": {
"description": "Optional.",
"items": {
"format": "string",
"type": "string"
},
"type": "array"
},
"principals": {
"description": "Optional.",
"items": {
"format": "string",
"type": "string"
},
"type": "array"
},
"remoteIpBlocks": {
"description": "Optional.",
"items": {
"format": "string",
"type": "string"
},
"type": "array"
},
"requestPrincipals": {
"description": "Optional.",
"items": {
"format": "string",
"type": "string"
},
"type": "array"
}
},
"type": "object"
}
},
"type": "object"
},
"type": "array"
},
"to": {
"description": "Optional.",
"items": {
"properties": {
"operation": {
"description": "Operation specifies the operation of a request.",
"properties": {
"hosts": {
"description": "Optional.",
"items": {
"format": "string",
"type": "string"
},
"type": "array"
},
"methods": {
"description": "Optional.",
"items": {
"format": "string",
"type": "string"
},
"type": "array"
},
"notHosts": {
"description": "Optional.",
"items": {
"format": "string",
"type": "string"
},
"type": "array"
},
"notMethods": {
"description": "Optional.",
"items": {
"format": "string",
"type": "string"
},
"type": "array"
},
"notPaths": {
"description": "Optional.",
"items": {
"format": "string",
"type": "string"
},
"type": "array"
},
"notPorts": {
"description": "Optional.",
"items": {
"format": "string",
"type": "string"
},
"type": "array"
},
"paths": {
"description": "Optional.",
"items": {
"format": "string",
"type": "string"
},
"type": "array"
},
"ports": {
"description": "Optional.",
"items": {
"format": "string",
"type": "string"
},
"type": "array"
}
},
"type": "object"
}
},
"type": "object"
},
"type": "array"
},
"when": {
"description": "Optional.",
"items": {
"properties": {
"key": {
"description": "The name of an Istio attribute.",
"format": "string",
"type": "string"
},
"notValues": {
"description": "Optional.",
"items": {
"format": "string",
"type": "string"
},
"type": "array"
},
"values": {
"description": "Optional.",
"items": {
"format": "string",
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
},
"type": "array"
},
"selector": {
"description": "Optional.",
"properties": {
"matchLabels": {
"additionalProperties": {
"format": "string",
"type": "string"
},
"type": "object"
}
},
"type": "object"
}
},
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"version": "1.10.3",
"object-type": "AuthorizationPolicy",
"service-mesh": "Istio"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"apiVersion": "core.oam.dev/v1alpha1",
"kind": "WorkloadDefinition",
"metadata": {
"name": "AuthorizationPolicy.Istio"
},
"spec": {
"definitionRef": {
"name": "authorizationpolicy.istio.meshery.layer5.io"
},
"metadata": {
"@type": "pattern.meshery.io/mesh/workload",
"meshVersion": "1.10.3",
"meshName": "ISTIO",
"k8sAPIVersion": "security.istio.io/v1beta1",
"k8sKind": "AuthorizationPolicy"
}
}
}
Loading

0 comments on commit 5e28cd4

Please sign in to comment.