feat: Implement CSR signing and node registration handler for agent join

This commit is contained in:
2025-05-17 13:05:21 -04:00
parent f1f2b8f9ef
commit bf80b65873
4 changed files with 217 additions and 135 deletions

View File

@ -136,6 +136,7 @@ func (s *Server) Stop(ctx context.Context) error {
// RegisterJoinHandler registers the handler for agent join requests
func (s *Server) RegisterJoinHandler(handler http.HandlerFunc) {
s.router.HandleFunc("POST", "/internal/v1alpha1/join", handler)
log.Printf("Registered join handler at /internal/v1alpha1/join")
}
// RegisterNodeStatusHandler registers the handler for node status updates