Skip to main content

Stash Key Reference

Every well-known md/ stash key, the kind of entity whose stash holds it, its version, and the JSON Schema its value must match. See Well-Known Keys for how to set each key and what the UI shows.

Download every key's JSON Schema: widget-catalog.json.

KeySet onVersionFormatWidget
md/v1/bannerEnvironment1JSONenvironment.banner
md/v1/changes/{step}Deployment1JSONdeployment.changes
md/v1/compliance/{step}/{tool}Deployment1JSONdeployment.compliance
md/v1/cost_estimateDeployment1JSONdeployment.cost_estimate
md/v1/deliveryInstance1JSONinstance.delivery
md/v1/driftInstance1JSONinstance.drift
md/v1/eggs/{egg}Project1TEXTproject.egg
md/v1/freshnessInstance1JSONinstance.freshness
md/v1/healthInstance1JSONinstance.status_dot
md/v1/inventoryInstance1JSONinstance.inventory
md/v1/inventory/{step}Deployment1JSONdeployment.inventory
md/v1/leaderboardEnvironment1JSONenvironment.leaderboard
md/v1/linksEnvironment1JSONenvironment.header_link
md/v1/oncallEnvironment1JSONenvironment.oncall
md/v1/ownershipEnvironment1JSONenvironment.ownership
md/v1/ownershipProject1JSONproject.ownership
md/v1/parityEnvironment1JSONenvironment.parity
md/v1/pendingInstance1JSONinstance.pending
md/v1/policy/{step}Deployment1JSONdeployment.policy
md/v1/provenanceDeployment1JSONdeployment.provenance
md/v1/releaseInstance1JSONinstance.release
md/v1/reliabilityInstance1JSONinstance.reliability
md/v1/scorecard/{scorecard}Environment1JSONenvironment.scorecard
md/v1/scorecard/{scorecard}Instance1JSONinstance.scorecard
md/v1/scorecard/{scorecard}Project1JSONproject.scorecard
md/v1/sourceDeployment1JSONdeployment.source
md/v1/state_lockDeployment1JSONdeployment.state_lock
md/v1/step/{step}Deployment1JSONdeployment.step
md/v1/testsDeployment1JSONdeployment.tests
md/v1/trafficInstance1JSONlink.traffic
md/v1/ui-ephemeral-noticeEnvironment1JSONenvironment.notice
md/v1/ui-ephemeral-noticeProject1JSONproject.notice
md/v1/urlsInstance1JSONinstance.urls
md/v1/usageInstance1JSONinstance.usage_bar
md/v1/vulnerabilitiesDeployment1JSONdeployment.vulnerabilities

md/v1/banner on an environmentโ€‹

A message across the top of an environment.

Keymd/v1/banner
Set onEnvironment
Shows onEnvironment
Widgetenvironment.banner
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/banner.json
InputFieldTypeRequiredDescription
messagemessagestringYesThe message.
levellevelstringNoinfo, warning, or error. The UI uses info when it is not set.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/banner.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"level": {
"enum": [
"info",
"warning",
"error"
]
},
"message": {
"maxLength": 280,
"minLength": 1,
"type": "string"
}
},
"required": [
"message"
],
"type": "object"
}

md/v1/changes/{step} on a deploymentโ€‹

What a plan or apply in one step of a deployment changes.

Keymd/v1/changes/{step}
Set onDeployment
Shows onDeployment
Widgetdeployment.changes
Version1
FormatJSON
Key segmentsstep
Schemahttps://schemas.massdriver.cloud/stash/md/v1/changes.json
InputFieldTypeRequiredDescription
tooltoolstringYesThe tool, for example opentofu.
tool_versiontool_versionstringNoThe tool's version.
addaddintegerYesThe number of resources to create.
changechangeintegerYesThe number of resources to update.
destroydestroyintegerYesThe number of resources to delete.
replacereplaceintegerNoThe number of resources to replace.
no_opno_opintegerNoThe number of resources with no change.
resourcesresourcesarrayNoUp to 50 changed resources, each with an address and an action: create, update, delete, or replace.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/changes.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"add": {
"minimum": 0,
"type": "integer"
},
"change": {
"minimum": 0,
"type": "integer"
},
"destroy": {
"minimum": 0,
"type": "integer"
},
"no_op": {
"minimum": 0,
"type": "integer"
},
"replace": {
"minimum": 0,
"type": "integer"
},
"resources": {
"items": {
"additionalProperties": false,
"properties": {
"action": {
"enum": [
"create",
"update",
"delete",
"replace"
]
},
"address": {
"maxLength": 512,
"minLength": 1,
"type": "string"
}
},
"required": [
"address",
"action"
],
"type": "object"
},
"maxItems": 50,
"type": "array"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"tool_version": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"tool",
"add",
"change",
"destroy"
],
"type": "object"
}

md/v1/compliance/{step}/{tool} on a deploymentโ€‹

The findings of an IaC or configuration scanner in one step of a deployment. The tool segment names the scanner, so each scanner in a step has its own entry.

Keymd/v1/compliance/{step}/{tool}
Set onDeployment
Shows onDeployment
Widgetdeployment.compliance
Version1
FormatJSON
Key segmentsstep; tool
Schemahttps://schemas.massdriver.cloud/stash/md/v1/compliance.json
InputFieldTypeRequiredDescription
tooltoolstringYesThe tool, for example opentofu.
tool_versiontool_versionstringNoThe tool's version.
passedpassedintegerYesThe number of checks that passed.
failedfailedintegerYesThe number of checks that failed.
skippedskippedintegerNoThe number of checks that were skipped.
levellevelobjectNoThe number of findings by SARIF level: error, warning, and note.
severityseverityobjectNoThe number of findings by severity: critical, high, medium, and low. Only for scanners that report a security severity.
blockingblockingbooleanNoTrue when the findings stop the deployment.
report_urlreport_urlstringNoAn http or https link to the report.
attestationattestationobjectNoThe signed attestation this value summarizes: its digest, whether Massdriver verified its signature, and its predicate_type, signed_at, and signer.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/compliance.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"attestation": {
"additionalProperties": false,
"properties": {
"digest": {
"pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
"type": "string"
},
"predicate_type": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"signed_at": {
"format": "date-time",
"type": "string"
},
"signer": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"verified": {
"type": "boolean"
}
},
"required": [
"digest",
"verified"
],
"type": "object"
},
"blocking": {
"type": "boolean"
},
"failed": {
"minimum": 0,
"type": "integer"
},
"level": {
"additionalProperties": false,
"properties": {
"error": {
"minimum": 0,
"type": "integer"
},
"note": {
"minimum": 0,
"type": "integer"
},
"warning": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"error",
"warning",
"note"
],
"type": "object"
},
"passed": {
"minimum": 0,
"type": "integer"
},
"report_url": {
"maxLength": 2048,
"pattern": "^https?://[^\\s]+(?![\\s\\S])",
"type": "string"
},
"severity": {
"additionalProperties": false,
"properties": {
"critical": {
"minimum": 0,
"type": "integer"
},
"high": {
"minimum": 0,
"type": "integer"
},
"low": {
"minimum": 0,
"type": "integer"
},
"medium": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"critical",
"high",
"medium",
"low"
],
"type": "object"
},
"skipped": {
"minimum": 0,
"type": "integer"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"tool_version": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"tool",
"passed",
"failed"
],
"type": "object"
}

md/v1/cost_estimate on a deploymentโ€‹

The estimated monthly cost of an instance before and after a deployment.

Keymd/v1/cost_estimate
Set onDeployment
Shows onDeployment
Widgetdeployment.cost_estimate
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/cost_estimate.json
InputFieldTypeRequiredDescription
tooltoolstringYesThe tool, for example opentofu.
tool_versiontool_versionstringNoThe tool's version.
currencycurrencystringYesThe ISO 4217 currency code, for example USD.
monthly_beforemonthly_beforenumberNoThe monthly cost before the deployment.
monthly_aftermonthly_afternumberYesThe monthly cost after the deployment.
deltadeltanumberNoThe change in monthly cost. Negative when the cost goes down.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/cost_estimate.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"currency": {
"pattern": "^[A-Z]{3}$",
"type": "string"
},
"delta": {
"type": "number"
},
"monthly_after": {
"minimum": 0,
"type": "number"
},
"monthly_before": {
"minimum": 0,
"type": "number"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"tool_version": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"tool",
"currency",
"monthly_after"
],
"type": "object"
}

md/v1/delivery on an instanceโ€‹

How often an instance was deployed in a window of days, and how those deployments ended.

Keymd/v1/delivery
Set onInstance
Shows onInstance
Widgetinstance.delivery
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/delivery.json
InputFieldTypeRequiredDescription
tooltoolstringNoThe tool that wrote the value, for example scorecards.
window_dayswindow_daysintegerYesThe number of days, up to now, that the counts cover.
deploymentsdeploymentsintegerYesThe number of deployments.
failedfailedintegerYesThe number of deployments that failed.
rolled_backrolled_backintegerYesThe number of deployments that went back to an earlier version.
failure_ratefailure_ratenumberNoThe part of the deployments that failed, from 0 to 1.
median_duration_secondsmedian_duration_secondsnumberNoThe median time a deployment ran, in seconds.
last_statuslast_statusstringNoHow the last deployment ended: completed, failed, aborted, or rejected.
last_completed_atlast_completed_atstringNoWhen the last deployment that completed finished (RFC 3339).
automatedautomatedintegerYesThe number of deployments that a service account started.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/delivery.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"automated": {
"minimum": 0,
"type": "integer"
},
"deployments": {
"minimum": 0,
"type": "integer"
},
"failed": {
"minimum": 0,
"type": "integer"
},
"failure_rate": {
"maximum": 1,
"minimum": 0,
"type": "number"
},
"last_completed_at": {
"format": "date-time",
"type": "string"
},
"last_status": {
"enum": [
"completed",
"failed",
"aborted",
"rejected"
]
},
"median_duration_seconds": {
"minimum": 0,
"type": "number"
},
"rolled_back": {
"minimum": 0,
"type": "integer"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"window_days": {
"minimum": 1,
"type": "integer"
}
},
"required": [
"window_days",
"deployments",
"failed",
"rolled_back",
"automated"
],
"type": "object"
}

md/v1/drift on an instanceโ€‹

Whether an instance's real infrastructure matches its configuration.

Keymd/v1/drift
Set onInstance
Shows onInstance
Widgetinstance.drift
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/drift.json
InputFieldTypeRequiredDescription
statusstatusstringYesnone, detected, or unknown.
resourcesresourcesintegerNoThe number of resources that drifted.
checked_atchecked_atstringNoWhen drift was checked (RFC 3339).
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/drift.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"checked_at": {
"format": "date-time",
"type": "string"
},
"resources": {
"minimum": 0,
"type": "integer"
},
"status": {
"enum": [
"none",
"detected",
"unknown"
]
}
},
"required": [
"status"
],
"type": "object"
}

md/v1/eggs/{egg} on a projectโ€‹

Turns a seasonal easter egg on or off in a project. The egg segment names the easter egg.

Keymd/v1/eggs/{egg}
Set onProject
Shows onProject
Widgetproject.egg
Version1
FormatTEXT
Key segmentsegg: one of xmas, spooky, lanterns, fireworks, spring
Schemahttps://schemas.massdriver.cloud/stash/md/v1/eggs.json
InputFieldTypeRequiredDescription
stateThe whole valuestringYeson or off.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/eggs.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"enum": [
"on",
"off"
]
}

md/v1/freshness on an instanceโ€‹

How far the bundle version of an instance is behind the latest version of its bundle.

Keymd/v1/freshness
Set onInstance
Shows onInstance
Widgetinstance.freshness
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/freshness.json
InputFieldTypeRequiredDescription
tooltoolstringNoThe tool that wrote the value, for example scorecards.
versionversionstringYesThe bundle version the instance runs.
latestlateststringYesThe latest version of the bundle.
behindbehindintegerYesThe number of bundle versions between the two. 0 when the instance runs the latest.
latest_published_atlatest_published_atstringNoWhen the latest version was published (RFC 3339).
days_behinddays_behindintegerNoThe number of days since the first version newer than the instance's was published.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/freshness.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"behind": {
"minimum": 0,
"type": "integer"
},
"days_behind": {
"minimum": 0,
"type": "integer"
},
"latest": {
"maxLength": 128,
"minLength": 1,
"type": "string"
},
"latest_published_at": {
"format": "date-time",
"type": "string"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"version": {
"maxLength": 128,
"minLength": 1,
"type": "string"
}
},
"required": [
"version",
"latest",
"behind"
],
"type": "object"
}

md/v1/health on an instanceโ€‹

A colored dot on an instance that shows its health.

Keymd/v1/health
Set onInstance
Shows onInstance
Widgetinstance.status_dot
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/health.json
InputFieldTypeRequiredDescription
statestatestringYesThe word shown with the dot, up to 64 characters, for example Rolling out.
colorcolorstringNoThe color of the dot: one of green, amber, red, blue, purple, gray, or a hex color such as #7C3AED. Without a color, the dot is green for healthy, ok, and up, amber for degraded, warning, and recovering, red for down, failed, and error, and gray for any other state.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/health.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"color": {
"anyOf": [
{
"enum": [
"green",
"amber",
"red",
"blue",
"purple",
"gray"
]
},
{
"pattern": "^#[0-9a-fA-F]{6}(?![\\s\\S])",
"type": "string"
}
]
},
"state": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"state"
],
"type": "object"
}

md/v1/inventory on an instanceโ€‹

The cloud resources that an instance manages.

Keymd/v1/inventory
Set onInstance
Shows onInstance
Widgetinstance.inventory
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/inventory.json
InputFieldTypeRequiredDescription
tooltoolstringNoThe tool that listed the resources, for example opentofu.
tool_versiontool_versionstringNoThe tool's version.
attestationattestationobjectNoThe signed attestation this value summarizes: its digest, whether Massdriver verified its signature, and its predicate_type, signed_at, and signer.
deploymentdeploymentstringNoThe ID of the deployment that the resources come from.
resourcesresourcesarrayYesUp to 1,000 cloud resources. Each has a type, such as aws_s3_bucket, and a name, such as logs. A resource can also have its cloud id, such as an ARN, and its key: the for_each key or the count index that tells resources with the same type and name apart. It can also have the digest of its configuration, so two inventories show which resources changed.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/inventory.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"attestation": {
"additionalProperties": false,
"properties": {
"digest": {
"pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
"type": "string"
},
"predicate_type": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"signed_at": {
"format": "date-time",
"type": "string"
},
"signer": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"verified": {
"type": "boolean"
}
},
"required": [
"digest",
"verified"
],
"type": "object"
},
"deployment": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}(?![\\s\\S])",
"type": "string"
},
"resources": {
"items": {
"additionalProperties": false,
"properties": {
"digest": {
"pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
"type": "string"
},
"id": {
"maxLength": 2048,
"minLength": 1,
"type": "string"
},
"key": {
"maxLength": 255,
"minLength": 1,
"minimum": 0,
"type": [
"string",
"integer"
]
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"type": {
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"type",
"name"
],
"type": "object"
},
"maxItems": 1000,
"type": "array"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"tool_version": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"resources"
],
"type": "object"
}

md/v1/inventory/{step} on a deploymentโ€‹

The cloud resources that one step of a deployment manages after the step ran.

Keymd/v1/inventory/{step}
Set onDeployment
Shows onDeployment
Widgetdeployment.inventory
Version1
FormatJSON
Key segmentsstep
Schemahttps://schemas.massdriver.cloud/stash/md/v1/inventory.json
InputFieldTypeRequiredDescription
tooltoolstringNoThe tool that listed the resources, for example opentofu.
tool_versiontool_versionstringNoThe tool's version.
attestationattestationobjectNoThe signed attestation this value summarizes: its digest, whether Massdriver verified its signature, and its predicate_type, signed_at, and signer.
deploymentdeploymentstringNoThe ID of the deployment that the resources come from.
resourcesresourcesarrayYesUp to 1,000 cloud resources. Each has a type, such as aws_s3_bucket, and a name, such as logs. A resource can also have its cloud id, such as an ARN, and its key: the for_each key or the count index that tells resources with the same type and name apart. It can also have the digest of its configuration, so two inventories show which resources changed.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/inventory.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"attestation": {
"additionalProperties": false,
"properties": {
"digest": {
"pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
"type": "string"
},
"predicate_type": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"signed_at": {
"format": "date-time",
"type": "string"
},
"signer": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"verified": {
"type": "boolean"
}
},
"required": [
"digest",
"verified"
],
"type": "object"
},
"deployment": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}(?![\\s\\S])",
"type": "string"
},
"resources": {
"items": {
"additionalProperties": false,
"properties": {
"digest": {
"pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
"type": "string"
},
"id": {
"maxLength": 2048,
"minLength": 1,
"type": "string"
},
"key": {
"maxLength": 255,
"minLength": 1,
"minimum": 0,
"type": [
"string",
"integer"
]
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"type": {
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"type",
"name"
],
"type": "object"
},
"maxItems": 1000,
"type": "array"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"tool_version": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"resources"
],
"type": "object"
}

md/v1/leaderboard on an environmentโ€‹

A leaderboard of people on an environment, best first, with an optional title.

Keymd/v1/leaderboard
Set onEnvironment
Shows onEnvironment
Widgetenvironment.leaderboard
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/leaderboard.json
InputFieldTypeRequiredDescription
titletitlestringNoThe card's title, up to 64 characters.
entriesentriesarrayYesUp to 25 people, in order. Each has any of a name, an http or https image_url, an email, and handles such as slack:@jo or github:jo.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/leaderboard.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"entries": {
"items": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"email": {
"maxLength": 254,
"pattern": "^[^@\\s?&#%/,;<>\"]+@[^@\\s?&#%/,;<>\"]+(?![\\s\\S])",
"type": "string"
},
"handles": {
"items": {
"maxLength": 128,
"pattern": "^[a-z0-9][a-z0-9_-]*:\\S+(?![\\s\\S])",
"type": "string"
},
"maxItems": 10,
"minItems": 1,
"type": "array"
},
"image_url": {
"maxLength": 2048,
"pattern": "^https?://[^\\s]+(?![\\s\\S])",
"type": "string"
},
"name": {
"maxLength": 64,
"minLength": 1,
"pattern": "\\S",
"type": "string"
}
},
"type": "object"
},
"maxItems": 25,
"minItems": 1,
"type": "array"
},
"title": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"entries"
],
"type": "object"
}

Links in the header of an environment, such as a dashboard or a runbook.

Keymd/v1/links
Set onEnvironment
Shows onEnvironment
Widgetenvironment.header_link
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/links.json
InputFieldTypeRequiredDescription
linkslinksarrayYesUp to 8 links, each with a label and an http or https url.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/links.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"links": {
"items": {
"additionalProperties": false,
"properties": {
"label": {
"maxLength": 40,
"minLength": 1,
"type": "string"
},
"url": {
"maxLength": 2048,
"pattern": "^https?://[^\\s]+(?![\\s\\S])",
"type": "string"
}
},
"required": [
"label",
"url"
],
"type": "object"
},
"maxItems": 8,
"minItems": 1,
"type": "array"
}
},
"required": [
"links"
],
"type": "object"
}

md/v1/oncall on an environmentโ€‹

Who is on call for an environment, in order, with an optional title.

Keymd/v1/oncall
Set onEnvironment
Shows onEnvironment
Widgetenvironment.oncall
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/oncall.json
InputFieldTypeRequiredDescription
titletitlestringNoThe card's title, up to 64 characters.
entriesentriesarrayYesUp to 25 people, in order. Each has any of a name, an http or https image_url, an email, and handles such as slack:@jo or github:jo.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/oncall.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"entries": {
"items": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"email": {
"maxLength": 254,
"pattern": "^[^@\\s?&#%/,;<>\"]+@[^@\\s?&#%/,;<>\"]+(?![\\s\\S])",
"type": "string"
},
"handles": {
"items": {
"maxLength": 128,
"pattern": "^[a-z0-9][a-z0-9_-]*:\\S+(?![\\s\\S])",
"type": "string"
},
"maxItems": 10,
"minItems": 1,
"type": "array"
},
"image_url": {
"maxLength": 2048,
"pattern": "^https?://[^\\s]+(?![\\s\\S])",
"type": "string"
},
"name": {
"maxLength": 64,
"minLength": 1,
"pattern": "\\S",
"type": "string"
}
},
"type": "object"
},
"maxItems": 25,
"minItems": 1,
"type": "array"
},
"title": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"entries"
],
"type": "object"
}

md/v1/ownership on an environmentโ€‹

The groups that own an environment.

Keymd/v1/ownership
Set onEnvironment
Shows onEnvironment
Widgetenvironment.ownership
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/ownership.json
InputFieldTypeRequiredDescription
tooltoolstringNoThe tool that wrote the value, for example scorecards.
groupsgroupsarrayYesUp to 50 groups that own it, each with an id and a name. Empty when no group owns it.
membersmembersintegerYesThe number of people in those groups.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/ownership.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"groups": {
"items": {
"additionalProperties": false,
"properties": {
"id": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"id",
"name"
],
"type": "object"
},
"maxItems": 50,
"type": "array"
},
"members": {
"minimum": 0,
"type": "integer"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"groups",
"members"
],
"type": "object"
}

md/v1/ownership on a projectโ€‹

The groups that own a project.

Keymd/v1/ownership
Set onProject
Shows onProject
Widgetproject.ownership
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/ownership.json
InputFieldTypeRequiredDescription
tooltoolstringNoThe tool that wrote the value, for example scorecards.
groupsgroupsarrayYesUp to 50 groups that own it, each with an id and a name. Empty when no group owns it.
membersmembersintegerYesThe number of people in those groups.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/ownership.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"groups": {
"items": {
"additionalProperties": false,
"properties": {
"id": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"id",
"name"
],
"type": "object"
},
"maxItems": 50,
"type": "array"
},
"members": {
"minimum": 0,
"type": "integer"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"groups",
"members"
],
"type": "object"
}

md/v1/parity on an environmentโ€‹

How the configuration of an environment differs from a reference environment.

Keymd/v1/parity
Set onEnvironment
Shows onEnvironment
Widgetenvironment.parity
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/parity.json
InputFieldTypeRequiredDescription
tooltoolstringNoThe tool that wrote the value, for example scorecards.
reference_environmentreference_environmentstringYesThe ID of the environment this one is compared to, for example ecomm-prod.
differencesdifferencesintegerYesThe number of differences.
checked_atchecked_atstringYesWhen the check ran (RFC 3339).
itemsitemsarrayNoUp to 50 differences, each with the instance ID, the field that differs, and a message up to 280 characters.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/parity.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"checked_at": {
"format": "date-time",
"type": "string"
},
"differences": {
"minimum": 0,
"type": "integer"
},
"items": {
"items": {
"additionalProperties": false,
"properties": {
"field": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"instance": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"message": {
"maxLength": 280,
"minLength": 1,
"type": "string"
}
},
"required": [
"instance",
"field",
"message"
],
"type": "object"
},
"maxItems": 50,
"type": "array"
},
"reference_environment": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"reference_environment",
"differences",
"checked_at"
],
"type": "object"
}

md/v1/pending on an instanceโ€‹

Whether an instance has configuration changes that are not deployed.

Keymd/v1/pending
Set onInstance
Shows onInstance
Widgetinstance.pending
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/pending.json
InputFieldTypeRequiredDescription
tooltoolstringNoThe tool that wrote the value, for example scorecards.
changedchangedbooleanYesTrue when the configuration changed after the last deployment.
changed_atchanged_atstringNoWhen the configuration last changed (RFC 3339).
deployed_atdeployed_atstringNoWhen the instance was last deployed (RFC 3339).
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/pending.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"changed": {
"type": "boolean"
},
"changed_at": {
"format": "date-time",
"type": "string"
},
"deployed_at": {
"format": "date-time",
"type": "string"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"changed"
],
"type": "object"
}

md/v1/policy/{step} on a deploymentโ€‹

The results of a policy engine in one step of a deployment.

Keymd/v1/policy/{step}
Set onDeployment
Shows onDeployment
Widgetdeployment.policy
Version1
FormatJSON
Key segmentsstep
Schemahttps://schemas.massdriver.cloud/stash/md/v1/policy.json
InputFieldTypeRequiredDescription
tooltoolstringYesThe tool, for example opentofu.
tool_versiontool_versionstringNoThe tool's version.
passedpassedintegerYesThe number of policies that passed.
failedfailedintegerYesThe number of policies that failed.
warningswarningsintegerNoThe number of warnings.
denialsdenialsarrayNoUp to 50 denial messages, each up to 280 characters.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/policy.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"denials": {
"items": {
"maxLength": 280,
"minLength": 1,
"type": "string"
},
"maxItems": 50,
"type": "array"
},
"failed": {
"minimum": 0,
"type": "integer"
},
"passed": {
"minimum": 0,
"type": "integer"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"tool_version": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"warnings": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"tool",
"passed",
"failed"
],
"type": "object"
}

md/v1/provenance on a deploymentโ€‹

What a deployment was built from: its bundle, provisioners, and inputs, and whether its signed provenance was verified.

Keymd/v1/provenance
Set onDeployment
Shows onDeployment
Widgetdeployment.provenance
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/provenance.json
InputFieldTypeRequiredDescription
attestationattestationobjectYesThe signed attestation this value summarizes: its digest, whether Massdriver verified its signature, and its predicate_type, signed_at, and signer.
bundlebundleobjectYesThe bundle that was deployed: its repo, version, and digest.
provisionersprovisionersarrayYesThe provisioner of each step of the deployment: the step, the provisioner image, and the image's digest.
inputsinputsarrayNoUp to 50 inputs of the deployment, such as its params, each with a name and the digest of its content.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/provenance.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"attestation": {
"additionalProperties": false,
"properties": {
"digest": {
"pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
"type": "string"
},
"predicate_type": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"signed_at": {
"format": "date-time",
"type": "string"
},
"signer": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"verified": {
"type": "boolean"
}
},
"required": [
"digest",
"verified"
],
"type": "object"
},
"bundle": {
"additionalProperties": false,
"properties": {
"digest": {
"pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
"type": "string"
},
"repo": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"version": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"repo",
"version",
"digest"
],
"type": "object"
},
"inputs": {
"items": {
"additionalProperties": false,
"properties": {
"digest": {
"pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
"type": "string"
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"name",
"digest"
],
"type": "object"
},
"maxItems": 50,
"type": "array"
},
"provisioners": {
"items": {
"additionalProperties": false,
"properties": {
"digest": {
"pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
"type": "string"
},
"image": {
"maxLength": 512,
"minLength": 1,
"type": "string"
},
"step": {
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"step",
"image",
"digest"
],
"type": "object"
},
"maxItems": 50,
"minItems": 1,
"type": "array"
}
},
"required": [
"attestation",
"bundle",
"provisioners"
],
"type": "object"
}

md/v1/release on an instanceโ€‹

What runs on an instance now.

Keymd/v1/release
Set onInstance
Shows onInstance
Widgetinstance.release
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/release.json
InputFieldTypeRequiredDescription
versionversionstringYesThe version that runs.
imageimagestringNoThe image that runs.
deployed_atdeployed_atstringNoWhen it was deployed (RFC 3339).
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/release.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"deployed_at": {
"format": "date-time",
"type": "string"
},
"image": {
"maxLength": 512,
"minLength": 1,
"type": "string"
},
"version": {
"maxLength": 128,
"minLength": 1,
"type": "string"
}
},
"required": [
"version"
],
"type": "object"
}

md/v1/reliability on an instanceโ€‹

How often the alarms of an instance fired in a window of days, and how fast they recovered.

Keymd/v1/reliability
Set onInstance
Shows onInstance
Widgetinstance.reliability
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/reliability.json
InputFieldTypeRequiredDescription
tooltoolstringNoThe tool that wrote the value, for example scorecards.
window_dayswindow_daysintegerYesThe number of days, up to now, that the counts cover.
alarmsalarmsintegerYesThe number of alarms on the instance.
firingfiringintegerYesThe number of alarms that fire now.
incidentsincidentsintegerYesThe number of times an alarm fired.
seconds_in_alarmseconds_in_alarmnumberYesThe time that any alarm was firing, in seconds.
median_recovery_secondsmedian_recovery_secondsnumberNoThe median time from an alarm firing to its recovery, in seconds.
last_fired_atlast_fired_atstringNoWhen an alarm last fired (RFC 3339).
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/reliability.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"alarms": {
"minimum": 0,
"type": "integer"
},
"firing": {
"minimum": 0,
"type": "integer"
},
"incidents": {
"minimum": 0,
"type": "integer"
},
"last_fired_at": {
"format": "date-time",
"type": "string"
},
"median_recovery_seconds": {
"minimum": 0,
"type": "number"
},
"seconds_in_alarm": {
"minimum": 0,
"type": "number"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"window_days": {
"minimum": 1,
"type": "integer"
}
},
"required": [
"window_days",
"alarms",
"firing",
"incidents",
"seconds_in_alarm"
],
"type": "object"
}

md/v1/scorecard/{scorecard} on an environmentโ€‹

A scorecard rolled up over the instances of an environment: the number of instances at each level, and the lowest level. The scorecard segment names the scorecard.

Keymd/v1/scorecard/{scorecard}
Set onEnvironment
Shows onEnvironment
Widgetenvironment.scorecard
Version1
FormatJSON
Key segmentsscorecard
Schemahttps://schemas.massdriver.cloud/stash/md/v1/scorecard-rollup.json
InputFieldTypeRequiredDescription
tooltoolstringNoThe tool that wrote the value, for example scorecards.
levellevelstringYesThe level of the scorecard, up to 32 characters.
scorescorenumberNoThe score, from 0 to 100.
instancesinstancesintegerYesThe number of instances that were scored.
levelslevelsobjectYesThe number of instances at each level, by level name, for up to 10 levels.
lowest_levellowest_levelstringYesThe lowest level of any instance.
evaluated_atevaluated_atstringYesWhen the scorecard was scored (RFC 3339).
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/scorecard-rollup.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"evaluated_at": {
"format": "date-time",
"type": "string"
},
"instances": {
"minimum": 0,
"type": "integer"
},
"level": {
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"levels": {
"additionalProperties": {
"minimum": 0,
"type": "integer"
},
"maxProperties": 10,
"propertyNames": {
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"type": "object"
},
"lowest_level": {
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"score": {
"maximum": 100,
"minimum": 0,
"type": "number"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"level",
"instances",
"levels",
"lowest_level",
"evaluated_at"
],
"type": "object"
}

md/v1/scorecard/{scorecard} on an instanceโ€‹

The result of a scorecard's checks on an instance: its level, its score, and each check. The scorecard segment names the scorecard.

Keymd/v1/scorecard/{scorecard}
Set onInstance
Shows onInstance
Widgetinstance.scorecard
Version1
FormatJSON
Key segmentsscorecard
Schemahttps://schemas.massdriver.cloud/stash/md/v1/scorecard.json
InputFieldTypeRequiredDescription
tooltoolstringNoThe tool that wrote the value, for example scorecards.
levellevelstringYesThe level, up to 32 characters.
scorescorenumberYesThe score, from 0 to 100.
passedpassedintegerYesThe number of checks that passed.
failedfailedintegerYesThe number of checks that failed.
unknownunknownintegerYesThe number of checks that could not be decided, for example because a fact is missing.
checkschecksarrayYesUp to 50 checks, each with an id, a status of passed, failed, or unknown, and an optional message up to 280 characters.
evaluated_atevaluated_atstringYesWhen the checks ran (RFC 3339).
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/scorecard.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"checks": {
"items": {
"additionalProperties": false,
"properties": {
"id": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"message": {
"maxLength": 280,
"minLength": 1,
"type": "string"
},
"status": {
"enum": [
"passed",
"failed",
"unknown"
]
}
},
"required": [
"id",
"status"
],
"type": "object"
},
"maxItems": 50,
"type": "array"
},
"evaluated_at": {
"format": "date-time",
"type": "string"
},
"failed": {
"minimum": 0,
"type": "integer"
},
"level": {
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"passed": {
"minimum": 0,
"type": "integer"
},
"score": {
"maximum": 100,
"minimum": 0,
"type": "number"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"unknown": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"level",
"score",
"passed",
"failed",
"unknown",
"checks",
"evaluated_at"
],
"type": "object"
}

md/v1/scorecard/{scorecard} on a projectโ€‹

A scorecard rolled up over the instances of a project: the number of instances at each level, and the lowest level. The scorecard segment names the scorecard.

Keymd/v1/scorecard/{scorecard}
Set onProject
Shows onProject
Widgetproject.scorecard
Version1
FormatJSON
Key segmentsscorecard
Schemahttps://schemas.massdriver.cloud/stash/md/v1/scorecard-rollup.json
InputFieldTypeRequiredDescription
tooltoolstringNoThe tool that wrote the value, for example scorecards.
levellevelstringYesThe level of the scorecard, up to 32 characters.
scorescorenumberNoThe score, from 0 to 100.
instancesinstancesintegerYesThe number of instances that were scored.
levelslevelsobjectYesThe number of instances at each level, by level name, for up to 10 levels.
lowest_levellowest_levelstringYesThe lowest level of any instance.
evaluated_atevaluated_atstringYesWhen the scorecard was scored (RFC 3339).
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/scorecard-rollup.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"evaluated_at": {
"format": "date-time",
"type": "string"
},
"instances": {
"minimum": 0,
"type": "integer"
},
"level": {
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"levels": {
"additionalProperties": {
"minimum": 0,
"type": "integer"
},
"maxProperties": 10,
"propertyNames": {
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"type": "object"
},
"lowest_level": {
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"score": {
"maximum": 100,
"minimum": 0,
"type": "number"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"level",
"instances",
"levels",
"lowest_level",
"evaluated_at"
],
"type": "object"
}

md/v1/source on a deploymentโ€‹

The code that a deployment deployed.

Keymd/v1/source
Set onDeployment
Shows onDeployment
Widgetdeployment.source
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/source.json
InputFieldTypeRequiredDescription
reporepostringNoThe repository, for example acme/api.
refrefstringNoThe branch or tag.
commitcommitstringYesThe commit.
authorauthorstringNoThe commit's author.
messagemessagestringNoThe commit message, up to 280 characters.
urlurlstringNoAn http or https link to the commit.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/source.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"author": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"commit": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"message": {
"maxLength": 280,
"type": "string"
},
"ref": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"repo": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"url": {
"maxLength": 2048,
"pattern": "^https?://[^\\s]+(?![\\s\\S])",
"type": "string"
}
},
"required": [
"commit"
],
"type": "object"
}

md/v1/state_lock on a deploymentโ€‹

The state lock that a deployment held.

Keymd/v1/state_lock
Set onDeployment
Shows onDeployment
Widgetdeployment.state_lock
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/state_lock.json
InputFieldTypeRequiredDescription
tooltoolstringYesThe tool, for example opentofu.
tool_versiontool_versionstringNoThe tool's version.
statusstatusstringYesacquired, released, or force_unlocked.
holderholderstringNoWho holds the lock.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/state_lock.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"holder": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"status": {
"enum": [
"acquired",
"released",
"force_unlocked"
]
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"tool_version": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"tool",
"status"
],
"type": "object"
}

md/v1/step/{step} on a deploymentโ€‹

How one step of a deployment ran.

Keymd/v1/step/{step}
Set onDeployment
Shows onDeployment
Widgetdeployment.step
Version1
FormatJSON
Key segmentsstep
Schemahttps://schemas.massdriver.cloud/stash/md/v1/step.json
InputFieldTypeRequiredDescription
tooltoolstringYesThe tool, for example opentofu.
tool_versiontool_versionstringNoThe tool's version.
actionactionstringYesplan, apply, destroy, test, or scan.
statusstatusstringYesrunning, succeeded, failed, skipped, or canceled.
started_atstarted_atstringNoWhen the step started (RFC 3339).
finished_atfinished_atstringNoWhen the step finished (RFC 3339).
duration_sduration_snumberNoHow long the step ran, in seconds.
exit_codeexit_codeintegerNoThe exit code of the tool.
messagemessagestringNoA short summary, up to 280 characters.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/step.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"action": {
"enum": [
"plan",
"apply",
"destroy",
"test",
"scan"
]
},
"duration_s": {
"minimum": 0,
"type": "number"
},
"exit_code": {
"type": "integer"
},
"finished_at": {
"format": "date-time",
"type": "string"
},
"message": {
"maxLength": 280,
"type": "string"
},
"started_at": {
"format": "date-time",
"type": "string"
},
"status": {
"enum": [
"running",
"succeeded",
"failed",
"skipped",
"canceled"
]
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"tool_version": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"tool",
"action",
"status"
],
"type": "object"
}

md/v1/tests on a deploymentโ€‹

The test results of a deployment.

Keymd/v1/tests
Set onDeployment
Shows onDeployment
Widgetdeployment.tests
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/tests.json
InputFieldTypeRequiredDescription
tooltoolstringYesThe tool, for example opentofu.
tool_versiontool_versionstringNoThe tool's version.
passedpassedintegerYesThe number of tests that passed.
failedfailedintegerYesThe number of tests that failed.
skippedskippedintegerNoThe number of tests that were skipped.
duration_sduration_snumberNoHow long the tests ran, in seconds.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/tests.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"duration_s": {
"minimum": 0,
"type": "number"
},
"failed": {
"minimum": 0,
"type": "integer"
},
"passed": {
"minimum": 0,
"type": "integer"
},
"skipped": {
"minimum": 0,
"type": "integer"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"tool_version": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"tool",
"passed",
"failed"
],
"type": "object"
}

The traffic on the links that leave an instance. The key is on the instance that sends the traffic.

Keymd/v1/traffic
Set onInstance
Shows onLink
Widgetlink.traffic
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/traffic.json
InputFieldTypeRequiredDescription
raterpsnumberYesRequests per second.
errorserrors_5mintegerYesErrors in the last five minutes.
latencyp95_msnumberNoThe 95th percentile response time, in milliseconds.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/traffic.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"errors_5m": {
"minimum": 0,
"type": "integer"
},
"p95_ms": {
"minimum": 0,
"type": "number"
},
"rps": {
"minimum": 0,
"type": "number"
}
},
"required": [
"rps",
"errors_5m"
],
"type": "object"
}

md/v1/ui-ephemeral-notice on an environmentโ€‹

A short notice that something happened to an environment. It is shown to everyone who can view the environment's stash until it expires. Massdriver sets it when an environment is created, and when a deployment in the environment is proposed, approved, started, or completed. A new notice replaces the one before it.

Keymd/v1/ui-ephemeral-notice
Set onEnvironment
Shows onEnvironment
Widgetenvironment.notice
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/ui-ephemeral-notice.json
InputFieldTypeRequiredDescription
messagemessagestringYesThe notice, up to 280 characters.
kindkindstringYesWhat happened: project.created, environment.created, or a deployment that was proposed, approved, started, or completed (deployment.proposed, deployment.approved, deployment.started, deployment.completed).
entityentityobjectYesThe project, environment, or instance the notice is about: its kind, id, and name. A deployment notice is about the instance that is deployed.
projectprojectobjectYesThe project: its id and name.
actoractorobjectNoWho acted: a kind of user, service_account, or system, and a name.
created_atcreated_atstringYesWhen it happened (RFC 3339).
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/ui-ephemeral-notice.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"actor": {
"additionalProperties": false,
"properties": {
"kind": {
"enum": [
"user",
"service_account",
"system"
]
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"kind",
"name"
],
"type": "object"
},
"created_at": {
"format": "date-time",
"type": "string"
},
"entity": {
"additionalProperties": false,
"properties": {
"id": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"kind": {
"enum": [
"project",
"environment",
"instance"
]
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"kind",
"id",
"name"
],
"type": "object"
},
"kind": {
"enum": [
"project.created",
"environment.created",
"deployment.proposed",
"deployment.approved",
"deployment.started",
"deployment.completed"
]
},
"message": {
"maxLength": 280,
"minLength": 1,
"type": "string"
},
"project": {
"additionalProperties": false,
"properties": {
"id": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"id",
"name"
],
"type": "object"
}
},
"required": [
"message",
"kind",
"entity",
"project",
"created_at"
],
"type": "object"
}

md/v1/ui-ephemeral-notice on a projectโ€‹

A short notice that something happened to a project. It is shown to everyone who can view the project's stash until it expires. Massdriver sets it when a project is created.

Keymd/v1/ui-ephemeral-notice
Set onProject
Shows onProject
Widgetproject.notice
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/ui-ephemeral-notice.json
InputFieldTypeRequiredDescription
messagemessagestringYesThe notice, up to 280 characters.
kindkindstringYesWhat happened: project.created, environment.created, or a deployment that was proposed, approved, started, or completed (deployment.proposed, deployment.approved, deployment.started, deployment.completed).
entityentityobjectYesThe project, environment, or instance the notice is about: its kind, id, and name. A deployment notice is about the instance that is deployed.
projectprojectobjectYesThe project: its id and name.
actoractorobjectNoWho acted: a kind of user, service_account, or system, and a name.
created_atcreated_atstringYesWhen it happened (RFC 3339).
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/ui-ephemeral-notice.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"actor": {
"additionalProperties": false,
"properties": {
"kind": {
"enum": [
"user",
"service_account",
"system"
]
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"kind",
"name"
],
"type": "object"
},
"created_at": {
"format": "date-time",
"type": "string"
},
"entity": {
"additionalProperties": false,
"properties": {
"id": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"kind": {
"enum": [
"project",
"environment",
"instance"
]
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"kind",
"id",
"name"
],
"type": "object"
},
"kind": {
"enum": [
"project.created",
"environment.created",
"deployment.proposed",
"deployment.approved",
"deployment.started",
"deployment.completed"
]
},
"message": {
"maxLength": 280,
"minLength": 1,
"type": "string"
},
"project": {
"additionalProperties": false,
"properties": {
"id": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"id",
"name"
],
"type": "object"
}
},
"required": [
"message",
"kind",
"entity",
"project",
"created_at"
],
"type": "object"
}

md/v1/urls on an instanceโ€‹

Links for an instance: its docs, its API, and its app.

Keymd/v1/urls
Set onInstance
Shows onInstance
Widgetinstance.urls
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/urls.json
InputFieldTypeRequiredDescription
docs_urldocs_urlstringNoAn http or https URL of its docs.
api_urlapi_urlstringNoAn http or https URL of its API.
app_urlapp_urlstringNoAn http or https URL of its app.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/urls.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"minProperties": 1,
"properties": {
"api_url": {
"maxLength": 2048,
"pattern": "^https?://[^\\s]+(?![\\s\\S])",
"type": "string"
},
"app_url": {
"maxLength": 2048,
"pattern": "^https?://[^\\s]+(?![\\s\\S])",
"type": "string"
},
"docs_url": {
"maxLength": 2048,
"pattern": "^https?://[^\\s]+(?![\\s\\S])",
"type": "string"
}
},
"type": "object"
}

md/v1/usage on an instanceโ€‹

A bar on an instance that shows how much of a limit is used.

Keymd/v1/usage
Set onInstance
Shows onInstance
Widgetinstance.usage_bar
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/usage.json
InputFieldTypeRequiredDescription
valuevaluenumberYesThe amount used.
maxmaxnumberYesThe limit.
labellabelstringNoText shown with the bar.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/usage.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"label": {
"maxLength": 64,
"type": "string"
},
"max": {
"exclusiveMinimum": 0,
"type": "number"
},
"value": {
"minimum": 0,
"type": "number"
}
},
"required": [
"value",
"max"
],
"type": "object"
}

md/v1/vulnerabilities on a deploymentโ€‹

The findings of an image or package scan in a deployment.

Keymd/v1/vulnerabilities
Set onDeployment
Shows onDeployment
Widgetdeployment.vulnerabilities
Version1
FormatJSON
Key segmentsNone
Schemahttps://schemas.massdriver.cloud/stash/md/v1/vulnerabilities.json
InputFieldTypeRequiredDescription
tooltoolstringYesThe tool, for example opentofu.
tool_versiontool_versionstringNoThe tool's version.
targettargetstringNoThe image or package that was scanned.
severityseverityobjectYesThe number of findings by severity: critical, high, medium, and low.
fixablefixableintegerNoThe number of findings with a fix.
JSON Schema
json
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/vulnerabilities.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"fixable": {
"minimum": 0,
"type": "integer"
},
"severity": {
"additionalProperties": false,
"properties": {
"critical": {
"minimum": 0,
"type": "integer"
},
"high": {
"minimum": 0,
"type": "integer"
},
"low": {
"minimum": 0,
"type": "integer"
},
"medium": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"critical",
"high",
"medium",
"low"
],
"type": "object"
},
"target": {
"maxLength": 512,
"minLength": 1,
"type": "string"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"tool_version": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"tool",
"severity"
],
"type": "object"
}