-
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.
Signed-off-by: Shreyas220 <[email protected]>
- Loading branch information
1 parent
7d73a27
commit 5e28cd4
Showing
25 changed files
with
4,784 additions
and
0 deletions.
There are no files selected for viewing
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
275 changes: 275 additions & 0 deletions
275
templates/oam/workloads/1.10.3/authorizationpolicy.istio.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,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" | ||
} |
19 changes: 19 additions & 0 deletions
19
templates/oam/workloads/1.10.3/authorizationpolicy.istio_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,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" | ||
} | ||
} | ||
} |
Oops, something went wrong.