Skip to content

Commit

Permalink
[Patterns] Pattern components generated from latest Istio manifests
Browse files Browse the repository at this point in the history
Signed-off-by: l5io <ci@layer5.io>
  • Loading branch information
Revolyssup authored and l5io committed Oct 11, 2022
1 parent a097451 commit c4b58fa
Show file tree
Hide file tree
Showing 38 changed files with 5,108 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,249 @@
{
"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.",
"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": {
"type": "string"
},
"type": "array"
},
"namespaces": {
"description": "Optional.",
"items": {
"type": "string"
},
"type": "array"
},
"notIpBlocks": {
"description": "Optional.",
"items": {
"type": "string"
},
"type": "array"
},
"notNamespaces": {
"description": "Optional.",
"items": {
"type": "string"
},
"type": "array"
},
"notPrincipals": {
"description": "Optional.",
"items": {
"type": "string"
},
"type": "array"
},
"notRemoteIpBlocks": {
"description": "Optional.",
"items": {
"type": "string"
},
"type": "array"
},
"notRequestPrincipals": {
"description": "Optional.",
"items": {
"type": "string"
},
"type": "array"
},
"principals": {
"description": "Optional.",
"items": {
"type": "string"
},
"type": "array"
},
"remoteIpBlocks": {
"description": "Optional.",
"items": {
"type": "string"
},
"type": "array"
},
"requestPrincipals": {
"description": "Optional.",
"items": {
"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": {
"type": "string"
},
"type": "array"
},
"methods": {
"description": "Optional.",
"items": {
"type": "string"
},
"type": "array"
},
"notHosts": {
"description": "Optional.",
"items": {
"type": "string"
},
"type": "array"
},
"notMethods": {
"description": "Optional.",
"items": {
"type": "string"
},
"type": "array"
},
"notPaths": {
"description": "Optional.",
"items": {
"type": "string"
},
"type": "array"
},
"notPorts": {
"description": "Optional.",
"items": {
"type": "string"
},
"type": "array"
},
"paths": {
"description": "Optional.",
"items": {
"type": "string"
},
"type": "array"
},
"ports": {
"description": "Optional.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
}
},
"type": "object"
},
"type": "array"
},
"when": {
"description": "Optional.",
"items": {
"properties": {
"key": {
"description": "The name of an Istio attribute.",
"type": "string"
},
"notValues": {
"description": "Optional.",
"items": {
"type": "string"
},
"type": "array"
},
"values": {
"description": "Optional.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
},
"type": "array"
},
"selector": {
"description": "Optional.",
"properties": {
"matchLabels": {
"additionalProperties": {
"type": "string"
},
"type": "object"
}
},
"type": "object"
}
},
"title": "Authorization Policy",
"type": "object"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"kind": "WorkloadDefinition",
"apiVersion": "core.oam.dev/v1alpha1",
"metadata": {
"name": "AuthorizationPolicy.Istio",
"creationTimestamp": null
},
"spec": {
"definitionRef": {
"name": "authorizationpolicy.Istio.meshery.layer5.io"
},
"metadata": {
"@type": "pattern.meshery.io/mesh/workload",
"k8sAPIVersion": "security.istio.io/v1beta1",
"k8sKind": "AuthorizationPolicy",
"meshName": "ISTIO",
"meshVersion": "1.15.2"
}
}
}
Loading

0 comments on commit c4b58fa

Please sign in to comment.