Tyler Fisher09/30/2019, 8:17 PM
Tyler Fisher09/30/2019, 8:20 PM
is not actually the JWT token, it's the secret key that's used to create the JWT token?
command? I'm provisioning a development environment, and was wondering if it's possible to know the enrolment secret in advance - I'm not familiar with JWT, looking at the source code for hints on how this is used: https://github.com/kolide/fleet/blob/06832697d0e6ed6b2ca0220ef5434791db7b0a27/server/service/service_sessions.go#L286-L293
fleetctl get enroll-secret
wtheaker09/30/2019, 8:46 PM
Paste that string into
openssl rand -base64 32
Tyler Fisher09/30/2019, 8:46 PM
And it looks like JWT tokens are stored in the
# fleetctl config set --address <https://localhost:8080> # fleetctl config set --rootca /opt/kolide/fleet/tls/fleet.crt # fleet login # fleetctl login Log in using the standard Fleet credentials. Email: <email> Password: [+] Fleet login successful and context configured! # fleetctl get enroll-secret sVhrv<...>8t6Ff
table - so, I should be able to read the contents of this table before I try to enrol agents with the Kolide Fleet server I'm standing up.
Tyler Fisher09/30/2019, 8:52 PM