Description
Handle Sync resource command. (Download files, and store version id/hash)
- check if agent has enough disk space
- extension types should be downloaded to extension folder
- other types are relative to the asset folder (that must be different than the old asset push command folder)
- the agent maintains a local repo, so it can be kept in sync with the C2 server
Heartbeat operation:
operation type: SYNC
operand type: RESOURCE
args:
"args": { "globalHash": { "digest": "xzy123", "hashType": "SHA1" }, "resourceList": [ { "resourceId": "abc123", "resourceName": "a.txt", "resourceType": "ASSET", "resourcePath": "valami/barmi", "digest": "hij987", "hashType": "SHA1", "url": "/c2/resource/abc123" }, { "resourceId": "def123", "resourceName": "b.nar", "resourceType": "EXTENSION", "resourcePath": null, "digest": "mno666", "hashType": "SHA1", "url": "/c2/resource/def123" } ] }
Attachments
Issue Links
- links to