Configuration is not working; json: unknown field
nik736 opened this issue · comments
Niklas Karoly commented
Describe the bug
Compiling the project from source and running it with a config that points to a configserver fails with the following error:
{"timestamp":"2022-09-18T18:19:44Z","level":"error","code":"SSH_BACKEND_REJECTED_HANDSHAKE","message":"The backend has rejected the user after successful authentication. (failed to load connections-specific configuration (Configuration request to backend failed, giving up (Failed to decode HTTP response (json: unknown field \"container\"))))","details":{"connectionId":"id","module":"ssh","remoteAddr":"my_ip"}}
The config response looks something like this:
"config": {
"backend": "docker",
"docker": {
"execution": {
"disableAgent": true,
"idleCommand": [
"/bin/sh",
"-c",
"sleep infinity & PID=$!; trap \\\"kill $PID\\\" INT TERM; wait"
],
"container": {
"image": "some_image"
}
}
}
}
To Reproduce
Simply compile the latest commit and provide a config similar to mine, it should fail. 0.4.1 works with the same response.
Expected behavior
It should spawn a container with the provided image.
Version
0.5.0
Thanks! :)