简体   繁体   English

如果忘记密码,请恢复ansible-vault密码

[英]Recover ansible-vault password in case password is forgotten

I am using ansible-vault to set password protect var/main.yml file. 我正在使用ansible-vault来设置密码保护var / main.yml文件。 Now I can push my source code in source control system. 现在我可以在源代码控制系统中推送我的源代码了。 After that deploys in production server. 之后在生产服务器中部署。 Suppose somebody manipulate the password or forgot the password. 假设有人操纵密码或忘记了密码。 Is there any way to recover ansible-vault password or set the new password again without asking the old password? 有没有办法恢复ansible-vault密码或再次设置新密码而不询问旧密码?

Thanks in advance 提前致谢

Unless you brute force the password there is no way to recover it. 除非您强行密码,否则无法恢复密码。

I suggest you use a password manager to store your password and share the password database within your organization. 我建议您使用密码管理器存储密码并在组织内共享密码数据库。 For example, you could store the password in a password service which has email or SMS reset option to recover the user account, though this might not be very good idea for high security environments . 例如,您可以将密码存储在密码服务中,该服务具有电子邮件或SMS重置选项以恢复用户帐户,但这对于高安全性环境可能不是一个好主意

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM