mirror of
https://github.com/shankar0123/certctl.git
synced 2026-06-07 13:51:36 +00:00
fix(crypto): per-ciphertext PBKDF2 salt + v2 versioned format with v1 fallback (M-8)
This commit is contained in:
@@ -70,7 +70,7 @@ func TestCertificateLifecycle(t *testing.T) {
|
||||
// without a configured CERTCTL_CONFIG_ENCRYPTION_KEY. Happy-path CRUD tests
|
||||
// must supply a real key so the encrypt path runs instead of returning
|
||||
// ErrEncryptionKeyRequired.
|
||||
testEncryptionKey := []byte("0123456789abcdef0123456789abcdef")
|
||||
testEncryptionKey := "0123456789abcdef0123456789abcdef"
|
||||
issuerService := service.NewIssuerService(issuerRepo, auditService, issuerRegistry, testEncryptionKey, slog.Default())
|
||||
|
||||
// Initialize handlers
|
||||
|
||||
@@ -62,7 +62,7 @@ func setupTestServer(t *testing.T) (*httptest.Server, *mockCertificateRepository
|
||||
// without a configured CERTCTL_CONFIG_ENCRYPTION_KEY. Happy-path CRUD tests
|
||||
// must supply a real key so the encrypt path runs instead of returning
|
||||
// ErrEncryptionKeyRequired.
|
||||
testEncryptionKey := []byte("0123456789abcdef0123456789abcdef")
|
||||
testEncryptionKey := "0123456789abcdef0123456789abcdef"
|
||||
issuerService := service.NewIssuerService(issuerRepo, auditService, issuerRegistry, testEncryptionKey, logger)
|
||||
|
||||
certificateHandler := handler.NewCertificateHandler(certificateService)
|
||||
|
||||
Reference in New Issue
Block a user