encryption: allow to pass in alternative key for encryption values
This commit is contained in:
parent
2600624410
commit
858cf0db77
1 changed files with 3 additions and 1 deletions
|
|
@ -343,7 +343,9 @@ def engine_from_config(configuration, prefix='sqlalchemy.', **kwargs):
|
|||
|
||||
|
||||
def get_encryption_key(config):
|
||||
return config['beaker.session.secret']
|
||||
secret = config.get('rhodecode.encrypted_values.secret')
|
||||
default = config['beaker.session.secret']
|
||||
return secret or default
|
||||
|
||||
|
||||
def age(prevdate, now=None, show_short_version=False, show_suffix=True,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue