TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: RemotePassword – No more hardcoding passwords in scripts

3 点作者 howlett将近 8 年前
The idea behind this is pretty simple and it was developed to solve the following scenario:<p>* I have a RPi with an encrypted drive attached (which is mounted on boot) where all my backups are synced (and from there rsynced to a remote location).<p>* If both RPi &amp; HDD are stolen then they will have access to the data as the password is hardcoded.<p>* To solve this, GPG encrypt the password and upload it. Use the script to pass it as a subcommand to the mount command. A simple example with mysqldump would be:<p><pre><code> mysqldump -ubackup -p$(rpass.sh &quot;MySQL&quot;) &gt; &#x2F;tmp&#x2F;backup.sql </code></pre> * If the device is stolen, disable the GPG password on the website and your data is safe.<p>I have a few things on the roadmap but wanted to get a feel if this is something people would use before spending more time on it (it&#x27;s currently only doing what I initially planned for it to do).<p>URL: <a href="https:&#x2F;&#x2F;www.remotepassword.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.remotepassword.com&#x2F;</a>

暂无评论

暂无评论