-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Patterns] Pattern components generated from latest Istio manifests
Signed-off-by: l5io <[email protected]>
- Loading branch information
1 parent
ca475b1
commit 7d2aa3f
Showing
28 changed files
with
5,024 additions
and
0 deletions.
There are no files selected for viewing
249 changes: 249 additions & 0 deletions
249
...workloads/1.14.0/authorizationpolicy.Istio.meshery.layer5.io.meshery.layer5io.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
20 changes: 20 additions & 0 deletions
20
templates/oam/workloads/1.14.0/authorizationpolicy.Istio.meshery.layer5.io_definition.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.14.0" | ||
} | ||
} | ||
} |
Oops, something went wrong.