Open brainrake opened 1 year ago
secrets.json
is intentionally a mutable file, so checking it at startup is not a guarantee that it will keep working.
"Strictness" like that is a double-edged sword. It can help find problems early, but it also stops a larger system from working at all. Unless it only affects half a cluster? Is that even realistic?
I would accept a PR, but prefer to solve the root cause, which is the need to write and deploy a local file at all. EDIT: although that needs work to be done on my end.
Description
Agent service starts successfully but then crashes on job if secrets.json has incorrect layout.
To Reproduce
Example secrets.json:
Expected behavior
Crash on service startup.
Logs
On job in web ui:
Platform / Version
NixOS x86_64-linux, hercules-ci-agent 0.9.11