From
bafyreiba5mul5r3bljixvyr2ibgbxts6qpwu5o4j64ivatlthcetdcno4m
indexed 2026-11-13 08:11 UTC
View this version
To
bafyreifzk7kamgpxcjqhau3wvruclefo7aq2yy36kr7it4vcpag4wurhcq
indexed 2026-03-19 20:28 UTC
View this version
Compatibility
backward compatible No changes detected.
Changes
11
{22
"$type": "com.atproto.lexicon.schema",33
"defs": {44
"main": {55
"description": "Subscribe to vulnerability scan jobs via WebSocket. Scanners connect to receive pending scan jobs and send back results. Authenticated via shared secret (query parameter or X-Scanner-Secret header).",66
"errors": [77
{88
"description": "Scanner shared secret is invalid",99
"name": "InvalidSecret"1010
}1111
],1212
"message": {1313
"schema": {1414
"refs": [1515
"#scanJob",1616
"#scanResult"1717
],1818
"type": "union"1919
}2020
},2121
"parameters": {2222
"properties": {2323
"cursor": {2424
"description": "Sequence number to resume from. If omitted, starts from latest. Use -1 to receive only new jobs.",2525
"type": "integer"26
},27
"instance": {28
"description": "Stable identity of the scanner process, sent on every connect. A scanner that reconnects with the same value resumes the jobs it was holding when the connection dropped, instead of having them offered to another scanner. Omitted means the hold assigns a per-connection identity and the scanner's in-flight work is reclaimed rather than resumed.",29
"maxLength": 64,30
"type": "string"31
},32
"workers": {33
"description": "How many scans this scanner runs concurrently. The hold keeps this many jobs in flight for the connection. Omitted or unusable means one.",34
"maximum": 32,35
"minimum": 1,36
"type": "integer"3726
}3827
},3928
"type": "params"4029
},4130
"type": "subscription"4231
},4332
"scanJob": {4433
"description": "A scan job dispatched from hold to scanner. Sent as a JSON WebSocket message.",4534
"properties": {4635
"digest": {4736
"description": "Manifest digest (e.g., sha256:abc123...)",4837
"maxLength": 128,4938
"type": "string"5039
},5140
"holdDid": {5241
"description": "DID of the hold where the image is stored",5342
"format": "did",5443
"type": "string"5544
},5645
"holdEndpoint": {5746
"description": "HTTP endpoint of the hold for blob downloads",5847
"format": "uri",5948
"type": "string"6049
},6150
"priority": {6251
"description": "Scan priority (lower = higher priority). Tier-based scheduling.",6352
"type": "integer"6453
},6554
"repository": {6655
"description": "Repository name (e.g., myapp)",6756
"maxLength": 256,6857
"type": "string"6958
},7059
"seq": {7160
"description": "Monotonic sequence number for cursor-based resumption",7261
"type": "integer"7362
},7463
"tag": {7564
"description": "Optional tag that triggered the scan",7665
"maxLength": 256,7766
"type": "string"7867
},7968
"type": {8069
"const": "scan_job",8170
"description": "Message type discriminator",8271
"maxLength": 32,8372
"type": "string"8473
},8574
"userDid": {8675
"description": "DID of the image owner",8776
"format": "did",8877
"type": "string"8978
}9079
},9180
"required": [9281
"type",9382
"seq",9483
"digest",9584
"repository",9685
"userDid",9786
"holdDid",9887
"holdEndpoint"9988
],10089
"type": "object"10190
},10291
"scanResult": {10392
"description": "A scan result sent from scanner back to hold. Sent as a JSON WebSocket message.",10493
"properties": {10594
"digest": {10695
"description": "Manifest digest that was scanned",10796
"maxLength": 128,10897
"type": "string"10998
},11099
"error": {111100
"description": "Error message if scan failed",112101
"maxLength": 1024,113102
"type": "string"114103
},115104
"sbom": {116105
"description": "SBOM blob (SPDX JSON format, max 100MB)",117106
"maxLength": 104857600,118107
"type": "bytes"119108
},120109
"scannerVersion": {121110
"description": "Scanner version string",122111
"maxLength": 64,123112
"type": "string"124113
},125114
"summary": {126115
"description": "Vulnerability count summary",127116
"ref": "#vulnSummary",128117
"type": "ref"129118
},130119
"type": {131120
"const": "scan_result",132121
"description": "Message type discriminator",133122
"maxLength": 32,134123
"type": "string"135124
},136125
"vulnReport": {137126
"description": "Grype vulnerability report blob (JSON, max 100MB)",138127
"maxLength": 104857600,139128
"type": "bytes"140129
}141130
},142131
"required": [143132
"type",144133
"digest",145134
"summary"146135
],147136
"type": "object"148137
},149138
"vulnSummary": {150139
"properties": {151140
"critical": {152141
"description": "Count of critical severity vulnerabilities",153142
"minimum": 0,154143
"type": "integer"155144
},156145
"high": {157146
"description": "Count of high severity vulnerabilities",158147
"minimum": 0,159148
"type": "integer"160149
},161150
"low": {162151
"description": "Count of low severity vulnerabilities",163152
"minimum": 0,164153
"type": "integer"165154
},166155
"medium": {167156
"description": "Count of medium severity vulnerabilities",168157
"minimum": 0,169158
"type": "integer"170159
},171160
"total": {172161
"description": "Total vulnerability count",173162
"minimum": 0,174163
"type": "integer"175164
}176165
},177166
"required": [178167
"critical",179168
"high",180169
"medium",181170
"low",182171
"total"183172
],184173
"type": "object"185174
}186175
},187176
"id": "io.atcr.hold.subscribeScanJobs",188177
"lexicon": 1189178
}