create@

Creates a new workload attestation configuration. The attestation definition must be provided as a JSON file @values.json.

Usage

vhsm nitride attestation create @values.json [flags]
  • @values.json: The path to a JSON file containing the attestation configuration.

Structure: @values.json

  • "name": A string uniquely identifying the workload attestation.

  • "description": A human-readable description of the workload.

  • "namespace": The namespace where the attestation will be created.

  • "events": URL endpoint for attestation events (e.g., http://localhost:8000).

  • "policy": The name of the policy to use for this attestation.

Flags


Example JSON: Workload Attestation

{
  "name": "Azure MariaDB",
  "description": "A small Azure VM running MariaDB",
  "namespace": "my-namespace",
  "events": "http://localhost:8000",
  "policy": "test"
}

Detailed Explanation

  • name: The unique name for the workload attestation (e.g., Example).

  • description: A descriptive text explaining the workload's purpose.

  • namespace: The namespace for organizing attestations (e.g., my-namespace).

  • events: The endpoint URL where attestation events will be sent.

  • policy: The policy name that defines the attestation requirements.

Example Command

Create an attestation and output as JSON:

Output

Additional Example

Create an attestation with custom server address and output as JSON:

Output

For more information, see creating workload attestations that are critical for enabling secure workload verification and enforcing policies based on the trustworthiness of the underlying platform, firmware, and workload.

Last updated

Was this helpful?