containers / fetchit

FetchIt is used to manage the life cycle and configuration of Podman containers
https://fetchit.readthedocs.io/
GNU Affero General Public License v3.0
124 stars 23 forks source link

Configuration file gets corrupted when Git Repository is Unavailable #345

Open cdf-eagles opened 1 month ago

cdf-eagles commented 1 month ago

The configuration file (config.yaml) got overwritten with "500: Internal Server Error" due to GitHub, where the main configuration is stored, being unavailable when using the "configUrl" option.

sh-5.1# cat config.yaml 
500: Internal Server Errorsh-5.1# 

Manually updating the configuration file to valid syntax and restarting the container resolved the issue.

FetchIt should probably do some basic validation of configuration files it pulls using the "configUrl" to ensure it is valid syntax or that the remote Git repository did not throw an error when attempting to fetch the file.