Download OpenAPI specification:Download
A mesh manifest (aka Meshfile) defines a confidential service meshes. To create a confidential service mesh, execute sconectl apply -f manifest.yaml.
Note that the manifest must be given in yaml. The json request samples are only displayed to be able to get some idea about default values and the structure.
OpenAPI manifest description:
apiVersion required | string API Version
|
required | Array of objects (Cas) Define CAS instances for service, access, image and attestation policies. In most cases, they might all be stored in the same CAS. However, in enterprise settings, we might use different CAS instances. For example, one might use central instances to maintain, e.g., the attestation policy.
|
required | Array of objects (ServiceKeyValue) Environment section defines key value pairs to configure the individual services of the mesh. One can define global key value pairs - which are like default values. One can overwrite these global values by specifying specific values for the specific services.
|
Array of objects (Mode) FUTURE EXTENSION - STILL BEING IMPLEMENTED. Section Mode can define additional SCONE CAS policies that are uploaded to SCONE CAS. | |
helm_extra_values | string <string> Extra values for helm charts - given via simple yaml values. |
kind required | string We define a single kind of manifest:
|
required | object (Policy) Define policy related definitions. For now, this is mainly the namespace in which the policies for this mesh should be stored. Namespaces need to be unique. Hence, we add a random extension to namespaces in tutorials: it is unlikely that one gets into a name collision. For production, one should avoid such random namespace names.
|
object (Repo) Nullable Section
| |
required | Array of objects (Service) A mesh consists of a set of services. We assign each a unique name like
|
{- "apiVersion": "scone/5.8.0",
- "cas": [
- {
- "alias": [
- "string"
], - "cas_encryption_key": "7b21fbe8515b9c0f51bf2a36d1b24aef2f329794d142356941468a6c8f352a98",
- "cas_key": "46YyxrywJ8PFRruWX8YLxa9q4axxYJgTbA81tv7NBcJfn43DQt",
- "cas_url": "edge.scone-cas.cf",
- "mode": "Upload",
- "name": "cas",
- "tolerance": "--only_for_testing-trust-any --only_for_testing-debug --only_for_testing-ignore-signer -C -G -S"
}
], - "env": [
- {
- "env": [
- {
- "name": "string",
- "value": "string"
}
], - "service": "global"
}
], - "extra_policies": [
- {
- "mode": "do not use",
- "name": "do not use."
}
], - "helm_extra_values": "string",
- "kind": "mesh",
- "policy": {
- "access_policy_name": "security/policies/access",
- "attestation_policy_name": "security/policies/attestation",
- "image_policy_namespace": "myImageNamespace",
- "namespace": "myNamespace",
- "security_policy_name": "security/policies/security",
- "tolerate": "maa-managed-tcb"
}, - "repo": {
- "config_id": "",
- "destination": "registry.scontain.com/repo",
- "key_file": "/file/with_secret",
- "push": true,
- "squash": true,
- "strip": true
}, - "services": [
- {
- "env": "templates/mariadb_envs.yaml",
- "helm_chart": "templates/mariadb_helm_chart",
- "image": "registry.scontain.com/sconectl/mariadb:latest",
- "image_policy": "template/mariadb.yaml",
- "image_secrets": "templates/mariadb_secrets.yaml",
- "name": "maria_db"
}
]
}