MCPcopy Create free account
hub / github.com/tbphp/gpt-load / EncryptionStatus

Method EncryptionStatus

internal/handler/dashboard_handler.go:406–415  ·  view source on GitHub ↗

EncryptionStatus checks if ENCRYPTION_KEY is configured but keys are not encrypted

(c *gin.Context)

Source from the content-addressed store, hash-verified

404
405// EncryptionStatus checks if ENCRYPTION_KEY is configured but keys are not encrypted
406func (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
418func (s *Server) checkEncryptionMismatch(c *gin.Context) (bool, string, string, string) {

Callers

nothing calls this directly

Calls 2

SuccessFunction · 0.92

Tested by

no test coverage detected