siprec icon indicating copy to clipboard operation
siprec copied to clipboard

error on run app on start in key ENCRYPTION_KEY_STORE

Open twocolors opened this issue 1 year ago • 5 comments

hi, if use minimal config app not run . keys (config var) not set for ENCRYPTION_KEY_STORE simple code for fix this error . add type memory , when set file not runs

// Load storage configuration
 config.EncryptionKeyStore = getEnv("ENCRYPTION_KEY_STORE", "file")
 if config.EncryptionKeyStore != "file" && config.EncryptionKeyStore != "env" && config.EncryptionKeyStore != "vault" && config.EncryptionKeyStore != "memory"{
  logger.Warn("Invalid ENCRYPTION_KEY_STORE value, using default: file")
  config.EncryptionKeyStore = "file"
 }

twocolors avatar Oct 22 '25 15:10 twocolors

That has been fixed, I will push it shortly

On Wed, Oct 22, 2025 at 11:11 AM D @.***> wrote:

twocolors created an issue (loreste/siprec#6) https://github.com/loreste/siprec/issues/6

hi, if use minimal config app not run . keys (config var) not set for ENCRYPTION_KEY_STORE simple code for fix this error . add type memory , when set file not runs

// Load storage configuration config.EncryptionKeyStore = getEnv("ENCRYPTION_KEY_STORE", "file") if config.EncryptionKeyStore != "file" && config.EncryptionKeyStore != "env" && config.EncryptionKeyStore != "vault" && config.EncryptionKeyStore != "memory"{ logger.Warn("Invalid ENCRYPTION_KEY_STORE value, using default: file") config.EncryptionKeyStore = "file" }

— Reply to this email directly, view it on GitHub https://github.com/loreste/siprec/issues/6, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOBAMBDJFVVJUSYL55KLED3Y6NCPAVCNFSM6AAAAACJ5BBS36VHI2DSMVQWIX3LMV43ASLTON2WKOZTGU2DCMRYGUZDCNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

loreste avatar Oct 22 '25 16:10 loreste

that has been fixed

loreste avatar Oct 22 '25 16:10 loreste

https://github.com/loreste/siprec/commit/e4e8f49888e768e6b38bed41e767d0c3b3885186

loreste avatar Oct 22 '25 16:10 loreste

@loreste Thanks, it works. Have you considered making a minimal siprec without the add-ons you currently have? Looking at the code, there's a lot that's not working and even unnecessary.

twocolors avatar Oct 22 '25 20:10 twocolors

yes, I can separate it

On Wed, Oct 22, 2025 at 4:09 PM D @.***> wrote:

twocolors left a comment (loreste/siprec#6) https://github.com/loreste/siprec/issues/6#issuecomment-3434037687

@loreste https://github.com/loreste Thanks, it works. Have you considered making a minimal siprec without the add-ons you currently have? Looking at the code, there's a lot that's not working and even unnecessary.

— Reply to this email directly, view it on GitHub https://github.com/loreste/siprec/issues/6#issuecomment-3434037687, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOBAMGOPXTJQPVN5ZS7IJL3Y7P6DAVCNFSM6AAAAACJ5BBS36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTIMZUGAZTONRYG4 . You are receiving this because you were mentioned.Message ID: @.***>

loreste avatar Oct 22 '25 21:10 loreste