rabbitmq / credentials-obfuscation

Tiny library/OTP app for credential obfuscation
Other
14 stars 8 forks source link

Add cuttlefish schema #28

Closed SimonUnge closed 1 year ago

SimonUnge commented 1 year ago

Is your feature request related to a problem? Please describe.

I would like to add a cuttlefish schema file for the credentials_obfuscation application env (enabled cipher hash iterations) so it be easier to config that config in say rabbitmq without using advanced config.

Describe the solution you'd like

Just add the schema file under priv/schema and leave it at that, and let whatever app that uses it look there (such as rabbitmq)

Describe alternatives you've considered

No response

Additional context

No response

michaelklishin commented 1 year ago

@SimonUnge sounds good

michaelklishin commented 1 year ago
credentials_obfuscation.enabled = true
credentials_obfuscation.cipher = aes_cbc256
credentials_obfuscation.hash = sha512
credentials_obfuscation.iterations = 500

Something like this seems reasonable to me.

SimonUnge commented 1 year ago
credentials_obfuscation.enabled = true
credentials_obfuscation.cipher = aes_cbc256
credentials_obfuscation.hash = sha512
credentials_obfuscation.iterations = 500

Something like this seems reasonable to me.

Just to be clear, you mean reasonable defaults right @michaelklishin

michaelklishin commented 1 year ago

@SimonUnge no, I meant the names of the config keys. The schema should use the same defaults as the code does.

SimonUnge commented 1 year ago

ah, ok got it, will do.