5c100c0d3d
The artifact getter uses the go-getter library to fetch files from different sources. Any bug in this library that results in a panic can cause the entire Nomad client to crash due to a single file download attempt. This change aims to guard against this types of crashes by recovering from panics when the getter attempts to download an artifact. The resulting panic is converted to an error that is stored as a task event for operator visibility and the panic stack trace is logged to the client's log.
4 lines
127 B
Plaintext
4 lines
127 B
Plaintext
```release-note:security
|
|
client: recover from panics caused by artifact download to prevent the Nomad client from crashing
|
|
```
|