Re: [go-cd] Can a GoCD Agent's Token be Recovered?

2019-04-18 Thread Jason Smyth
Hi Ketan, Thank you for your reply. I tried what you suggested (including removing the new line from the end of the file) but we are still getting the same error. Any other suggestions? If it's relevant, running a script directly against a copy of the database is a viable option. Cheers, Jas

Re: [go-cd] Can a GoCD Agent's Token be Recovered?

2019-04-18 Thread Ketan Padegaonkar
Try: cat guid.txt | openssl dgst -sha256 -hmac "TOKEN_GENERATION_KEY_FROM_CONFIG_XML" -binary | base64 > token You may need to remove the newline from the generated `token` file. - Ketan On Thu, Apr 18, 2019 at 8:48 PM Jason Smyth wrote: > Hello, > > For some unknown reason one of our agent

[go-cd] Can a GoCD Agent's Token be Recovered?

2019-04-18 Thread Jason Smyth
Hello, For some unknown reason one of our agents re-registered with a new GUID. We would like to revert it to its original GUID so that its history is maintained but we do not have a backup copy of the token. We restored the original GUID but now see token errors in the log when we try to brin