Rails 5.2 加密凭据未保存 [英] Rails 5.2 encrypted credentials not saving

查看:42
本文介绍了Rails 5.2 加密凭据未保存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我执行 bin/rails credentials:edit 时,我的编辑器会打开一个类似 credentials.yml.enc.1234 的文件,其中包含默认内容.完成编辑后,我点击保存,控制台会读取加密并保存的新凭据.

When I do bin/rails credentials:edit my editor opens a file like credentials.yml.enc.1234 with default content. After I'm done editing, I hit save, and the console reads New credentials encrypted and saved.

在我再次运行 bin/rails credentials:edit 后,另一个临时文件被打开 (credentials.yml.enc.4321) 并且内容恢复为默认值.

After I run bin/rails credentials:edit again, another temp file gets opened (credentials.yml.enc.4321) and the contents are back to default.

如何使凭据持久化?

推荐答案

有一个与此相关的问题:https://github.com/rails/rails/issues/31286

There is an issue related to this: https://github.com/rails/rails/issues/31286

已经在 5.2.0.rc1 中修复

It's been fixed already in 5.2.0.rc1

这篇关于Rails 5.2 加密凭据未保存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆