EncryptionStatus checks if ENCRYPTION_KEY is configured but keys are not encrypted
(c *gin.Context)
| 404 | |
| 405 | // EncryptionStatus checks if ENCRYPTION_KEY is configured but keys are not encrypted |
| 406 | func (s *Server) EncryptionStatus(c *gin.Context) { |
| 407 | hasMismatch, scenarioType, message, suggestion := s.checkEncryptionMismatch(c) |
| 408 | |
| 409 | response.Success(c, gin.H{ |
| 410 | "has_mismatch": hasMismatch, |
| 411 | "scenario_type": scenarioType, |
| 412 | "message": message, |
| 413 | "suggestion": suggestion, |
| 414 | }) |
| 415 | } |
| 416 | |
| 417 | // checkEncryptionMismatch detects encryption configuration mismatches |
| 418 | func (s *Server) checkEncryptionMismatch(c *gin.Context) (bool, string, string, string) { |
nothing calls this directly
no test coverage detected