```def enroll(self, request): """A basic e...
# general
a
Copy code
def enroll(self, request):
        """A basic enrollment endpoint"""

        # This endpoint expects an "enroll_secret" POST body variable.
        # Over TLS, this string may be a shared secret value installed on every
        # managed host in an enterprise.

        # Alternatively, each client could authenticate with a TLS client cert.
        # Then, access to the enrollment endpoint implies the required auth.
        # A generated node_key is still supplied for identification.
        self._push_request("enroll", request)
        if (
            ARGS["use_enroll_secret"]
            and HTTP_SERVER_ENROLL_SECRET != request["enroll_secret"]
        ):
            self._reply(FAILED_ENROLL_RESPONSE)
            return
        self._reply(ENROLL_RESPONSE)
Here the server is expecting http://host:443/enroll from the agent. I think I need to write a sample code to see what is happening in osquery demon