auto-unlock: make things clear about security
Rename auto-unlock configuration option to make things clear to CLI users that this really is a totally unsecure deployment option! Change-Id: I47726c65698bea1c35766d5c3ef16befad8ec72d
This commit is contained in:
@@ -136,7 +136,7 @@ def snap_refresh():
|
||||
if vault.can_restart():
|
||||
log("Restarting vault", level=DEBUG)
|
||||
service_restart('vault')
|
||||
if config('auto-unlock'):
|
||||
if config('totally-unsecure-auto-unlock'):
|
||||
vault.prepare_vault()
|
||||
else:
|
||||
set_flag('snap.channel.invalid')
|
||||
@@ -365,7 +365,7 @@ def cluster_connected(hacluster):
|
||||
def file_change_auto_unlock_mode():
|
||||
log("Calling opportunistic_restart", level=DEBUG)
|
||||
vault.opportunistic_restart()
|
||||
if config('auto-unlock'):
|
||||
if config('totally-unsecure-auto-unlock'):
|
||||
vault.prepare_vault()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user