Title
#osctrl
e

edub

07/14/2020, 9:38 PM
Client sends
tp-utils.go:98: ---------------- request
POST /dev/config HTTP/1.0
[1B blob data]
{"node_key":"38a8ab00081345148383816a2e52d1b23f9af0b7"}
---------------- end
osctr-tls logs
handlers.go:295: Configuration: {NodeInvalid:true}
client
http-utils.go:98: ---------------- request
POST /dev/enroll HTTP/1.0
[1B blob data]
{"enroll_secret":"q7mCq.....uuid":"F645A1F0-...-...-...-F027A8B7D3F7"}}}
---------------- end
server
handlers.go:231: Response: {NodeKey:93eab8bc35bc9343f788bb60a65b1cf0f9f9a57a NodeInvalid:false}
client
http-utils.go:98: ---------------- request
POST /dev/enroll HTTP/1.0
[1B blob data]
{"enroll_secret":"q7mCq.....uuid":"F645A1F0-...-...-...-F027A8B7D3F7"}}}
---------------- end
server
handlers.go:231: Response: {NodeKey:446fd3cc66d3bbf538538ae06296b851e27b126b NodeInvalid:false}
handlers.go:293: Configuration: {
"options": {
"schedule_splay_percent": 0,
"verbose": true,
"disable_events": true,
"disable_audit": false
  }
}
client
http-utils.go:98: ---------------- request
POST /dev/log HTTP/1.0
[1B blob data]
{"node_key":"93eab8bc35bc9343f788bb60a65b1cf0f9f9a57a"...."message":"TLS/HTTPS POST request to URI: <https://172.18.222.177/dev/read>","version":"4.3.0"}]}
---------------- end
server
handlers.go:366: Response: {NodeInvalid:true}
9:42 PM
so client sends 38a8a key server says nodeinvalid true client enrolls, gets a new NodeKey:93eab8bc.. Server replies with a different node key client sends another log POST with the 93eab8bc node key and server responds with invalid key