···11# Build the manager binary
22-FROM golang:1.24 AS builder
22+FROM golang:1.24-alpine AS builder
33ARG TARGETOS
44ARG TARGETARCH
55
+1-1
Dockerfile.talos
···7070EOF
71717272# Stage 2: Build Go application
7373-FROM golang:1.21-alpine AS go-builder
7373+FROM golang:1.24-alpine AS go-builder
74747575ARG TARGETOS
7676ARG TARGETARCH
+11-10
internal/api/helpers.go
···3030)
31313232// generateHSMPath creates an HSM path from label and ID
3333-func (s *Server) generateHSMPath(label string, id uint32) string {
3333+func (s *Server) generateHSMPath(label string, _ uint32) string {
3434 return fmt.Sprintf("secrets/api/%s", label)
3535}
3636···7474}
75757676// convertFromHSMData converts HSM data back to API format
7777-func (s *Server) convertFromHSMData(hsmData hsm.SecretData) (map[string]interface{}, error) {
7777+func (s *Server) convertFromHSMData(hsmData hsm.SecretData) map[string]interface{} {
7878 data := make(map[string]interface{})
79798080 for key, value := range hsmData {
···8888 }
8989 }
90909191- return data, nil
9191+ return data
9292}
93939494// createHSMSecretResource creates a corresponding HSMSecret Kubernetes resource
···225225}
226226227227// validateSecretAccess checks if the current user has access to the secret (placeholder for future authorization)
228228-func (s *Server) validateSecretAccess(ctx context.Context, label string, operation string) error {
229229- // TODO: Implement proper authorization logic
230230- // This could integrate with Kubernetes RBAC, external auth systems, etc.
231231-232232- s.logger.V(1).Info("Access validation", "label", label, "operation", operation)
233233- return nil
234234-}
228228+// Currently unused - commented out to avoid lint warnings
229229+// func (s *Server) validateSecretAccess(ctx context.Context, label string, operation string) error {
230230+// // TODO: Implement proper authorization logic
231231+// // This could integrate with Kubernetes RBAC, external auth systems, etc.
232232+//
233233+// s.logger.V(1).Info("Access validation", "label", label, "operation", operation)
234234+// return nil
235235+// }