{"id":39930,"date":"2025-08-04T12:42:08","date_gmt":"2025-08-04T12:42:08","guid":{"rendered":"https:\/\/www.railscarma.com\/?p=39930"},"modified":"2025-08-04T12:45:08","modified_gmt":"2025-08-04T12:45:08","slug":"beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets","status":"publish","type":"post","link":"https:\/\/www.railscarma.com\/ja\/%e3%83%96%e3%83%ad%e3%82%b0\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/","title":{"rendered":"Ruby on Rails\u5165\u9580\u30ac\u30a4\u30c9\uff1a\u8a8d\u8a3c\u60c5\u5831\u3068\u6697\u53f7\u5316\u3055\u308c\u305f\u79d8\u5bc6\u306e\u7de8\u96c6"},"content":{"rendered":"<div data-elementor-type=\"wp-post\" data-elementor-id=\"39930\" class=\"elementor elementor-39930\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-83eb42d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"83eb42d\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-478606d\" data-id=\"478606d\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-cdd9a62 elementor-widget elementor-widget-text-editor\" data-id=\"cdd9a62\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Ruby on Rails\uff08\u3057\u3070\u3057\u3070\u5358\u306bRails\u3068\u547c\u3070\u308c\u308b\uff09\u306f\u3001Ruby\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306b\u57fa\u3065\u3044\u3066\u69cb\u7bc9\u3055\u308c\u305f\u5f37\u529b\u306aWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3042\u308b\u3002\u305d\u306e\u4e3b\u306a\u7279\u5fb4\u306e1\u3064\u306f\u3001\u6697\u53f7\u5316\u3055\u308c\u305f\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u306b\u3088\u3063\u3066API\u30ad\u30fc\u3084\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8cc7\u683c\u60c5\u5831\u306a\u3069\u306e\u6a5f\u5bc6\u30c7\u30fc\u30bf\u3092\u5b89\u5168\u306b\u7ba1\u7406\u3067\u304d\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u306e\u30ac\u30a4\u30c9\u306f\u3001Rails\u306e\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u6271\u3044\u65b9\u3092\u7406\u89e3\u3059\u308b\u305f\u3081\u306b\u521d\u5fc3\u8005\u5411\u3051\u306b\u8a2d\u8a08\u3055\u308c\u3066\u304a\u308a\u3001\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u306e\u7de8\u96c6\u3068\u6697\u53f7\u5316\u3055\u308c\u305f\u79d8\u5bc6\u306e\u52b9\u679c\u7684\u306a\u7ba1\u7406\u306b\u7126\u70b9\u3092\u5f53\u3066\u3066\u3044\u307e\u3059\u3002\u6700\u5f8c\u306b\u306f\u3001Rails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u6a5f\u5bc6\u60c5\u5831\u3092\u5b89\u5168\u306b\u6271\u3046\u65b9\u6cd5\u3092\u3001\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3068\u3068\u3082\u306b\u660e\u78ba\u306b\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3067\u3057\u3087\u3046\u3002<\/p><p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Rails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u65b9\u6cd5\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020\u306e\u64cd\u4f5c\u65b9\u6cd5\u306a\u3069\u3001Ruby\u3068Rails\u306e\u57fa\u672c\u7684\u306a\u7406\u89e3\u304c\u3042\u308b\u3053\u3068\u3092\u524d\u63d0\u3068\u3057\u3066\u3044\u307e\u3059\u3002Rails\u304c\u521d\u3081\u3066\u306e\u65b9\u306f\u3001\u516c\u5f0f\u306e <a href=\"https:\/\/guides.rubyonrails.org\/\">\u30eb\u30d3\u30fc\u30fb\u30aa\u30f3\u30fb\u30ec\u30fc\u30eb<\/a> \u57fa\u790e\u77e5\u8b58\u306e\u305f\u3081\u306e\u30ac\u30a4\u30c9Rails\u306e\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u3068\u6697\u53f7\u5316\u3055\u308c\u305f\u79d8\u5bc6\u306e\u4e16\u754c\u306b\u98db\u3073\u8fbc\u3093\u3067\u307f\u307e\u3057\u3087\u3046\uff01<\/p><h3><strong>Rails\u306e\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u3068\u6697\u53f7\u5316\u3055\u308c\u305f\u79d8\u5bc6\u3092\u7406\u89e3\u3059\u308b<\/strong><\/h3><h4><strong>Rails\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u3068\u306f\uff1f<\/strong><\/h4><p>Rails\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u6a5f\u80fd\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306aAPI\u30ad\u30fc\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3001\u30c8\u30fc\u30af\u30f3\u306a\u3069\u306e\u6a5f\u5bc6\u60c5\u5831\u3092\u5b89\u5168\u306b\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306b\u30cf\u30fc\u30c9\u30b3\u30fc\u30c9\u3055\u308c\u305f\u5024\u3084\u6697\u53f7\u5316\u3055\u308c\u3066\u3044\u306a\u3044\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3068\u306f\u7570\u306a\u308a\u3001Rails\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u306f\u6697\u53f7\u5316\u3055\u308c\u3066 <code>config\/credentials.yml.enc<\/code>.\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u6697\u53f7\u5316\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\uff08Git\u306a\u3069\uff09\u306b\u30b3\u30df\u30c3\u30c8\u3057\u3066\u3082\u5b89\u5168\u3067\u3042\u308a\u3001\u6a5f\u5bc6\u30c7\u30fc\u30bf\u304c\u6f0f\u6d29\u3059\u308b\u3053\u3068\u306f\u306a\u3044\u3002<\/p><p>\u6697\u53f7\u5316\u306f\u30de\u30b9\u30bf\u30fc\u30fb\u30ad\u30fc\u3092\u4f7f\u3063\u3066\u7ba1\u7406\u3055\u308c\u308b\u3002 <code>config\/master.key<\/code> \u307e\u305f\u306f\u74b0\u5883\u56fa\u6709\u306e\u30ad\u30fc\uff08\u4f8b\uff0e <code>config\/credentials\/production.key<\/code>).\u30de\u30b9\u30bf\u30fc\u30fb\u30ad\u30fc\u306f\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u30fb\u30d5\u30a1\u30a4\u30eb\u306e\u6697\u53f7\u5316\u3068\u5fa9\u53f7\u5316\u306b\u4f7f\u7528\u3055\u308c\u308b\u3002 <strong>\u6c7a\u3057\u3066<\/strong> \u3042\u306a\u305f\u306e\u79d8\u5bc6\u3078\u306e\u4e0d\u6b63\u30a2\u30af\u30bb\u30b9\u3092\u9632\u3050\u305f\u3081\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u306b\u30b3\u30df\u30c3\u30c8\u3059\u308b\u3002<\/p><h4><strong>Rails\u306b\u304a\u3051\u308b\u79d8\u5bc6\u7ba1\u7406\u306e\u9032\u5316<\/strong><\/h4><p>Rails 5.1\u4ee5\u524d\u3067\u306f\u3001\u6a5f\u5bc6\u30c7\u30fc\u30bf\u306f\u3057\u3070\u3057\u3070 <code>config\/secrets.yml<\/code>\u3053\u308c\u306f\u6697\u53f7\u5316\u3055\u308c\u3066\u304a\u3089\u305a\u3001\u8aa4\u3063\u3066\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30b3\u30df\u30c3\u30c8\u3057\u305f\u5834\u5408\u306b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u30ea\u30b9\u30af\u304c\u3042\u308a\u307e\u3057\u305f\u3002Rails 5.1\u3067\u306f\u6697\u53f7\u5316\u3055\u308c\u305f\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u304c\u5c0e\u5165\u3055\u308c\u3001Rails 5.2\u4ee5\u964d\u3067\u306f\u3053\u308c\u304c\u6539\u826f\u3055\u308c\u3001\u73fe\u5728\u79c1\u305f\u3061\u304c\u4f7f\u3063\u3066\u3044\u308b\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u30b7\u30b9\u30c6\u30e0\u306b\u306a\u308a\u307e\u3057\u305f\u3002Rails 6\u4ee5\u964d\u3067\u306f\u74b0\u5883\u56fa\u6709\u306e\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u3092\u7ba1\u7406\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u958b\u767a\u74b0\u5883\u3001\u30c6\u30b9\u30c8\u74b0\u5883\u3001\u672c\u756a\u74b0\u5883\u3067\u5225\u3005\u306e\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u3092\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u3053\u306e\u9032\u5316\u306f\u3001\u6a5f\u5bc6\u30c7\u30fc\u30bf\u3092\u5b89\u5168\u306b\u5171\u6709\u3059\u308b\u306e\u304c\u9762\u5012\u3060\u3063\u305f\u30c1\u30fc\u30e0\u74b0\u5883\u3067\u306e\u8ab2\u984c\u306b\u5bfe\u51e6\u3057\u305f\u3082\u306e\u3067\u3059\u3002<\/p><h4><strong>\u6697\u53f7\u5316\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u3092\u4f7f\u7528\u3059\u308b\u7406\u7531<\/strong><\/h4><p>\u6697\u53f7\u5316\u3055\u308c\u305f\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u306f\u3001\u3044\u304f\u3064\u304b\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\uff1a<\/p><ul><li><strong>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3<\/strong> \u6a5f\u5bc6\u30c7\u30fc\u30bf\u306f\u6697\u53f7\u5316\u3055\u308c\u3001\u6f0f\u6d29\u306e\u30ea\u30b9\u30af\u3092\u4f4e\u6e1b\u3057\u307e\u3059\u3002<\/li><li><strong>\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\uff1a<\/strong> \u6697\u53f7\u5316\u3055\u308c\u305f <code>credentials.yml.enc<\/code> \u30d5\u30a1\u30a4\u30eb\u3092\u5b89\u5168\u306bGit\u306b\u30b3\u30df\u30c3\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/li><li><strong>\u30c1\u30fc\u30e0\u30b3\u30e9\u30dc\u30ec\u30fc\u30b7\u30e7\u30f3\uff1a<\/strong> \u958b\u767a\u8005\u306f\u3001\uff08\u30d1\u30b9\u30ef\u30fc\u30c9\u30fb\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u306a\u3069\u3092\u4ecb\u3057\u3066\uff09\u5b89\u5168\u306b\u5171\u6709\u3055\u308c\u305f\u30de\u30b9\u30bf\u30fc\u30fb\u30ad\u30fc\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u79d8\u5bc6\u3092\u66b4\u9732\u3059\u308b\u3053\u3068\u306a\u304f\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u3092\u5171\u6709\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/li><li><strong>\u74b0\u5883\u7279\u6709\u306e\u79d8\u5bc6\uff1a<\/strong> Rails\u306f\u74b0\u5883\u3054\u3068\u306b\u5225\u3005\u306e\u8a8d\u8a3c\u60c5\u5831\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3001\u30c7\u30d7\u30ed\u30a4\u3092\u7c21\u7d20\u5316\u3057\u307e\u3059\u3002<\/li><\/ul><h3><strong>Rails\u306e\u8a8d\u8a3c\u60c5\u5831\u3092\u8a2d\u5b9a\u3059\u308b<\/strong><\/h3><h4><strong>\u65b0\u3057\u3044Rails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u6210<\/strong><\/h4><p>Ruby\u3068Rails\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30d0\u30fc\u30b8\u30e7\u30f3\u306f<\/p><pre>\u30d0\u30c3\u30b7\u30e5\nruby -v\n\u30ec\u30fc\u30eb -v<\/pre><p>Rails\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u6b21\u306e\u65b9\u6cd5\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff1a<\/p><pre>\u30d0\u30c3\u30b7\u30e5\nrails\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/pre><p>\u65b0\u3057\u3044Rails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\uff1a<\/p><pre>\u30d0\u30c3\u30b7\u30e5\nrails \u65b0\u3057\u3044 myapp\ncd myapp<\/pre><p>\u65b0\u3057\u3044Rails\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3059\u308b\u3068\u3001Rails\u306f\u81ea\u52d5\u7684\u306b2\u3064\u306e\u30ad\u30fc\u30d5\u30a1\u30a4\u30eb\u3092 <code>\u69cb\u6210<\/code> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b\uff1a<\/p><ul><li><code>config\/credentials.yml.enc<\/code>:\u8a8d\u8a3c\u60c5\u5831\u304c\u4fdd\u5b58\u3055\u308c\u308b\u6697\u53f7\u5316\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3002<\/li><li><code>config\/master.key<\/code>:\u5fa9\u53f7\u5316\u306b\u4f7f\u7528\u3055\u308c\u308b\u6697\u53f7\u5316\u30ad\u30fc <code>credentials.yml.enc<\/code>.<\/li><\/ul><p><strong>\u91cd\u8981\u3060\uff1a<\/strong> \u30b3\u30df\u30c3\u30c8\u3057\u306a\u3044 <code>config\/master.key<\/code> \u3092\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002\u3042\u306a\u305f\u306e <code>.gitignore<\/code> \u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3057\u3001\u5076\u767a\u7684\u306a\u66b4\u9732\u3092\u9632\u3050\u3002<\/p><h4><strong>\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u8a2d\u5b9a\u306e\u78ba\u8a8d<\/strong><\/h4><p>\u8cc7\u683c\u60c5\u5831\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f <code>\u69cb\u6210<\/code> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b\uff1a<\/p><pre>\u30d0\u30c3\u30b7\u30e5\nls config\/<\/pre><p>\u3092\u898b\u3066\u307b\u3057\u3044\u3002 <code>credentials.yml.enc<\/code> \u305d\u3057\u3066 <code>\u30de\u30b9\u30bf\u30fc\u30ad\u30fc<\/code>.\u3082\u3057 <code>\u30de\u30b9\u30bf\u30fc\u30ad\u30fc<\/code> \u304c\u898b\u3064\u304b\u3089\u306a\u3044\u5834\u5408\u3001Rails\u306f\u6700\u521d\u306b\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u3092\u7de8\u96c6\u3059\u308b\u3068\u304d\u306b\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u3092\u751f\u6210\u3057\u307e\u3059\uff08\u4ee5\u4e0b\u3067\u8aac\u660e\u3057\u307e\u3059\uff09\u3002<\/p><h3><strong>Rails\u8a8d\u8a3c\u60c5\u5831\u306e\u7de8\u96c6<\/strong><\/h3><h4><strong>\u8cc7\u683c\u60c5\u5831\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f<\/strong><\/h4><p>\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u3092\u7de8\u96c6\u3059\u308b\u306b\u306f\u3001Rails\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\uff1a<\/p><pre>\u30d0\u30c3\u30b7\u30e5\nEDITOR=\"vim\" rails credentials:edit<\/pre><p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u5fa9\u53f7\u5316\u3055\u308c\u305f <code>config\/credentials.yml.enc<\/code> \u3092\u6307\u5b9a\u3057\u305f\u30a8\u30c7\u30a3\u30bf\u30fc\uff08\u4f8b\uff1aVim\u3001Nano\u3001VS Code\uff09\u3067\u5b9f\u884c\u3059\u308b\u3002\u7f6e\u304d\u63db\u3048\u308b \"<code>\u5143\u6c17<\/code>\"\u306e\u3088\u3046\u306a\u304a\u597d\u307f\u306e\u30a8\u30c7\u30a3\u30bf\u3067<code>\u30b3\u30fc\u30c9<\/code>\" \u3092VS Code\u306e\u305f\u3081\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002\u3082\u3057\u3001&lt;code.config\/credentials.yml.enc \u307e\u305f\u306f <code>config\/master.key <\/code>\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f\u3001Rails\u304c\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p><p>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001YAML\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u8868\u793a\u3055\u308c\u308b\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u30d5\u30a1\u30a4\u30eb\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff1a<\/p><pre>yaml\n# \u30af\u30c3\u30ad\u30fc\u3092\u4fdd\u8b77\u3059\u308b\u3082\u306e\u3092\u542b\u3081\u3001Rails\u306e\u3059\u3079\u3066\u306eMessageVerifiers\u306e\u57fa\u672c\u79d8\u5bc6\u3068\u3057\u3066\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\nsecret_key_base: \u3042\u306a\u305f\u306e\u79d8\u5bc6\u9375\u30d9\u30fc\u30b9<\/pre><p>\u306b\u3064\u3044\u3066 <code>\u79d8\u5bc6\u9375\u30d9\u30fc\u30b9<\/code> \u306f\u3001Rails\u3067Cookie\u3084\u305d\u306e\u4ed6\u306e\u30c7\u30fc\u30bf\u306b\u7f72\u540d\u3057\u305f\u308a\u6697\u53f7\u5316\u3057\u305f\u308a\u3059\u308b\u969b\u306b\u4f7f\u7528\u3055\u308c\u308b\u91cd\u8981\u306a\u5024\u3067\u3059\u3002\u65b0\u3057\u3044Rails\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3059\u308b\u3068\u304d\u306b\u81ea\u52d5\u7684\u306b\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p><h4><strong>\u65b0\u3057\u3044\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u306e\u8ffd\u52a0<\/strong><\/h4><p>YAML\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u72ec\u81ea\u306e\u8a8d\u8a3c\u60c5\u5831\u3092\u8ffd\u52a0\u3067\u304d\u308b\u3002\u4f8b\u3048\u3070\u3001AWS\u3068Stripe\u306eAPI\u30ad\u30fc\u3092\u8ffd\u52a0\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3057\u307e\u3059\uff1a<\/p><pre>yaml\n# config\/credentials.yml.enc\naws\uff1a\n    access_key_id: your_access_key_id\n    secret_access_key: \u3042\u306a\u305f\u306e_secret_access_key\nstripe\uff1a\n    public_key: test_public\n    \u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30ad\u30fc: test_private\n\u79d8\u5bc6\u9375\u30d9\u30fc\u30b9: your_secret_key_base<\/pre><p>\u4fdd\u5b58\u3057\u3066\u30a8\u30c7\u30a3\u30bf\u3092\u9589\u3058\u307e\u3059\u3002Rails\u304c\u81ea\u52d5\u7684\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u6697\u53f7\u5316\u3057\u3066 <code>config\/credentials.yml.enc<\/code>.\u3053\u308c\u3067\u30c7\u30fc\u30bf\u306f\u5b89\u5168\u306b\u306a\u308a\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u306b\u30b3\u30df\u30c3\u30c8\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p><h4><strong>\u74b0\u5883\u56fa\u6709\u306e\u8cc7\u683c\u60c5\u5831 (Rails 6+)<\/strong><\/h4><p>Rails 6\u4ee5\u964d\u3067\u306f\u3001\u74b0\u5883\u56fa\u6709\u306e\u8a8d\u8a3c\u60c5\u5831\u3092\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u672c\u756a\u74b0\u5883\u306e\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u3092\u7de8\u96c6\u3059\u308b\u306b\u306f<\/p><pre>\u30d0\u30c3\u30b7\u30e5\nEDITOR=\"vim\" rails credentials:edit --environment production<\/pre><p>\u3092\u4f5c\u6210\u307e\u305f\u306f\u7de8\u96c6\u3059\u308b\u3002 <code>config\/credentials\/production.yml.enc<\/code> \u305d\u3057\u3066 <code>config\/credentials\/production.key<\/code> \u3092\u6697\u53f7\u5316\u306e\u305f\u3081\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002\u672c\u756a\u7528\u8a8d\u8a3c\u60c5\u5831\u30d5\u30a1\u30a4\u30eb\u306e\u4f8b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308b\uff1a<\/p><pre>yaml\n# config\/credentials\/production.yml.enc\naws\uff1a\n    access_key_id: prod_access_key_id\n    secret_access_key: prod_secret_access_key\nsecret_key_base: prod_secret_key_base<\/pre><p>\u540c\u69d8\u306b\u3001\u958b\u767a\u307e\u305f\u306f\u30c6\u30b9\u30c8\u306e\u8a8d\u8a3c\u60c5\u5831\u306f <code>--\u74b0\u5883\u958b\u767a<\/code> \u307e\u305f\u306f <code>--\u74b0\u5883\u30c6\u30b9\u30c8<\/code>.\u3053\u308c\u306b\u3088\u308a\u3001\u74b0\u5883\u3054\u3068\u306b\u7570\u306a\u308bAPI\u30ad\u30fc\u3084\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8a8d\u8a3c\u60c5\u5831\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p><h3><strong>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b<\/strong><\/h3><h4><strong>\u8aad\u66f8\u8cc7\u683c<\/strong><\/h4><p>Rails \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306b\u306f <code>Rails.application.credentials<\/code>.\u4f8b\u3048\u3070\u3001AWS\u306e\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3092\u53d6\u5f97\u3059\u308b\uff1a<\/p><pre>\u30eb\u30d3\u30fc\nRails.application.credentials.aws[:access_key_id]\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002\n# =&gt; \"\u3042\u306a\u305f\u306e_access_key_id\"<\/pre><p>\u74b0\u5883\u56fa\u6709\u306e\u8a8d\u8a3c\u60c5\u5831\u306b\u3064\u3044\u3066\u306f\u3001Rails\u306f\u81ea\u52d5\u7684\u306b <code>RAILS_ENV<\/code> \u74b0\u5883\u5909\u6570\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u958b\u767a\u3067\u306f<\/p><pre>\u30eb\u30d3\u30fc\nRails.application.credentials.dig(:stripe, :public_key)\n# =&gt; \"test_public_development\"<\/pre><p>\u672c\u756a\u74b0\u5883\u3067\u306f\u3001\u540c\u3058\u30b3\u30fc\u30c9\u3067\u672c\u756a\u30ad\u30fc\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002 <code>config\/credentials\/production.yml.enc<\/code>.<\/p><h4><strong>\u30c9\u30c3\u30c8\u8a18\u6cd5\u306b\u3088\u308b\u30a2\u30af\u30bb\u30b9\u306e\u7c21\u7d20\u5316<\/strong><\/h4><p>\u4fbf\u5b9c\u4e0a\u3001Rails\u306f\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u3078\u306e\u30a2\u30af\u30bb\u30b9\u306b\u30c9\u30c3\u30c8\u8a18\u6cd5\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\uff1a<\/p><pre>\u30eb\u30d3\u30fc\nRails.application.credentials.stripe.public_key\n# =&gt; \"test_public\"<\/pre><p>\u3057\u304b\u3057\u3001\u958b\u767a\u8005\u306e\u4e2d\u306b\u306f <code>\u6398\u308b<\/code> \u30cd\u30b9\u30c8\u3055\u308c\u305f\u30ad\u30fc\u306b\u5bfe\u3057\u3066\u3001\u30ad\u30fc\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u5834\u5408\u306e\u30a8\u30e9\u30fc\u3092\u56de\u907f\u3059\u308b\u3002<\/p><h4><strong>\u4f8b\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3067\u306e\u8a8d\u8a3c\u60c5\u5831\u306e\u4f7f\u7528<\/strong><\/h4><p>Stripe\u306e\u3088\u3046\u306a\u6c7a\u6e08\u30b5\u30fc\u30d3\u30b9\u3092\u7d71\u5408\u3059\u308b\u3068\u3057\u307e\u3059\u3002\u3053\u308c\u3092\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3067\u8a2d\u5b9a\u3059\u308b\u306b\u306f\u3001\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u3092\u4f7f\u7528\u3057\u307e\u3059\uff1a<\/p><pre>\u30eb\u30d3\u30fc\n\u30af\u30e9\u30b9 PaymentsController &lt; ApplicationController\n    def create\n        Stripe.api_key = Rails.application.credentials.stripe[:private_key]\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\n        # \u6c7a\u6e08\u51e6\u7406\u30ed\u30b8\u30c3\u30af\n    \u7d42\u4e86\n\u7d42\u4e86<\/pre><p>\u3053\u308c\u306b\u3088\u308a\u3001API\u30ad\u30fc\u306f\u5b89\u5168\u306b\u3001\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u304b\u3089\u9664\u5916\u3055\u308c\u308b\u3002<\/p><h3><strong>\u30de\u30b9\u30bf\u30fc\u30ad\u30fc\u306e\u7ba1\u7406<\/strong><\/h3><h4><strong>\u30de\u30b9\u30bf\u30fc\u30ad\u30fc\u306e\u4fdd\u8b77<\/strong><\/h4><p>\u306b\u3064\u3044\u3066 <code>config\/master.key<\/code> \u30d5\u30a1\u30a4\u30eb\uff08\u307e\u305f\u306f <code>config\/credentials\/production.key&lt;\/code.)\u306f\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u3092\u5fa9\u53f7\u5316\u3059\u308b\u305f\u3081\u306b\u91cd\u8981\u3067\u3059\u3002\u3053\u308c\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092\u7d39\u4ecb\u3057\u307e\u3059\uff1a<\/code><\/p><ul><li><strong>\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u306b\u306f\u6c7a\u3057\u3066\u30b3\u30df\u30c3\u30c8\u3057\u306a\u3044\u3053\u3068\uff1a<\/strong> \u78ba\u4fdd\u3059\u308b <code>master.key\u306f<code>.gitignore\u306b\u3042\u308b\u3002<\/code>.<\/code><\/li><li><strong>\u3057\u3063\u304b\u308a\u3068\u5206\u304b\u3061\u5408\u3046\uff1a<\/strong> \u30d1\u30b9\u30ef\u30fc\u30c9\u30fb\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3084\u5b89\u5168\u306a\u7d4c\u8def\uff08\u6697\u53f7\u5316\u3055\u308c\u305f\u30e1\u30c3 \u30bb\u30fc\u30b8\u306a\u3069\uff09\u3092\u4f7f\u7528\u3057\u3066\u3001\u9375\u3092\u30c1\u30fc\u30e0\u30fb\u30e1\u30f3\u30d0\u30fc\u3068\u5171\u6709\u3059\u308b\u3002<\/li><li><strong>\u74b0\u5883\u5909\u6570\u3092\u4f7f\u3046\uff1a<\/strong> \u3042\u308b\u3044\u306f\u3001&gt;&gt;\u3092\u8a2d\u5b9a\u3059\u308b\u3002<code>\u30ec\u30fc\u30eb\u30ba\u30de\u30b9\u30bf\u30fc\u30ad\u30fc<\/code> \u74b0\u5883\u5909\u6570\u306e\u4ee3\u308f\u308a\u306b <code>\u30de\u30b9\u30bf\u30fc\u30ad\u30fc<\/code>.\u4f8b\u3048\u3070\uff1a<\/li><\/ul><pre>\u30d0\u30c3\u30b7\u30e5\nexport RAILS_MASTER_KEY=your_master_key<\/pre><p>Rails\u306e\u512a\u5148\u9806\u4f4d <code>\u30ec\u30fc\u30eb\u30ba\u30de\u30b9\u30bf\u30fc\u30ad\u30fc<\/code> \u3092\u8d85\u3048\u308b\u3002 <code>\u30de\u30b9\u30bf\u30fc\u30ad\u30fc<\/code> \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3002\u3053\u308c\u306fHeroku\u3084AWS\u306e\u3088\u3046\u306a\u30c7\u30d7\u30ed\u30a4\u74b0\u5883\u306b\u4fbf\u5229\u3060\u3002<\/p><h4><strong>\u30de\u30b9\u30bf\u30fc\u30ad\u30fc\u306e\u56de\u8ee2<\/strong><\/h4><p>\u30de\u30b9\u30bf\u30fc\u30ad\u30fc\u306e\u6f0f\u6d29\u304c\u7591\u308f\u308c\u308b\u5834\u5408\u306f\u3001\u30de\u30b9\u30bf\u30fc\u30ad\u30fc\u3092\u4ea4\u63db\u3059\u308b\u3053\u3068\uff1a<\/p><ul><li>\u65b0\u3057\u3044\u30de\u30b9\u30bf\u30fc\u30ad\u30fc\u3092\u751f\u6210\u3059\u308b\uff1a<\/li><\/ul><pre>\u30d0\u30c3\u30b7\u30e5\n\u30ec\u30fc\u30eb\u8a8d\u8a3c\u60c5\u5831:\u7de8\u96c6<\/pre><p>\u3053\u308c\u306f\u65b0\u3057\u3044 <code>config\/master.key<\/code> \u3092\u518d\u6697\u53f7\u5316\u3059\u308b\u3002 <code>config\/credentials.yml.enc<\/code>.<\/p><ul><li>\u3059\u3079\u3066\u306e\u30c1\u30fc\u30e0 \u30e1\u30f3\u30d0\u30fc\u3068\u914d\u7f6e\u74b0\u5883\u3092\u65b0\u3057\u3044\u30ad\u30fc\u3067\u66f4\u65b0\u3057\u307e\u3059\u3002<\/li><li>\u74b0\u5883\u56fa\u6709\u306e\u8a8d\u8a3c\u60c5\u5831\u3092\u4f7f\u3046\u5834\u5408\u306f\u3001\u74b0\u5883\u3054\u3068\u306b\u7e70\u308a\u8fd4\u3059\uff08\u4f8b\uff0e <code>rails credentials:edit --environment production<\/code>).<\/li><\/ul><p>\u3092\u56de\u8ee2\u3055\u305b\u308b\u3002 <code>\u79d8\u5bc6\u9375\u30d9\u30fc\u30b9<\/code> \u306f\u65e2\u5b58\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3068\u30af\u30c3\u30ad\u30fc\u3092\u7121\u52b9\u306b\u3059\u308b\u306e\u3067\u3001\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u614e\u91cd\u306b\u8a08\u753b\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u3092\u6df7\u4e71\u3055\u305b\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p><h2><strong>Rails\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/strong><\/h2><h4><strong>1.\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089\u79d8\u5bc6\u3092\u5b88\u308b<\/strong><\/h4><p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30fb\u30b3\u30fc\u30c9\u306b\u6a5f\u5bc6\u30c7\u30fc\u30bf\u3092\u30cf\u30fc\u30c9\u30b3\u30fc\u30c9\u3057\u306a\u3044\u3053\u3068\u3002\u4f8b\u3048\u3070<\/p><pre>\u30eb\u30d3\u30fc\n# \u30d0\u30c3\u30c9\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\nAWS.config(access_key_id: \"your_access_key_id\")<\/pre><p>\u305d\u306e\u4ee3\u308f\u308a\u306b\u3001\u3053\u3046\u4f7f\u3046\uff1a<\/p><pre>\u30eb\u30d3\u30fc\nAWS.config(access_key_id: Rails.application.credentials.aws[:access_key_id])<\/pre><p>\u3053\u308c\u306b\u3088\u308a\u3001\u79d8\u5bc6\u306f\u6697\u53f7\u5316\u3055\u308c\u3001\u5b89\u5168\u306b\u4fdd\u305f\u308c\u308b\u3002<\/p><h4><strong>2.\u74b0\u5883\u56fa\u6709\u306e\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3002<\/strong><\/h4><p>Rails\u306e\u74b0\u5883\u56fa\u6709\u306e\u8a8d\u8a3c\u60c5\u5831\u306e\u30b5\u30dd\u30fc\u30c8\u3092\u6d3b\u7528\u3057\u3066\u3001\u958b\u767a\u7528\u306e\u30ad\u30fc\u3092\u672c\u756a\u74b0\u5883\u3067\u4f7f\u7528\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u6a5f\u5bc6\u30ad\u30fc\u304c\u8aa4\u3063\u3066\u60aa\u7528\u3055\u308c\u308b\u30ea\u30b9\u30af\u3092\u6e1b\u3089\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p><h4><strong>3.\u30ed\u30b0\u4e2d\u306e\u6a5f\u5bc6\u30c7\u30fc\u30bf\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3059\u308b<\/strong><\/h4><p>Rails\u306e\u30ed\u30b0\u306f\u6a5f\u5bc6\u30c7\u30fc\u30bf\u3092\u4e0d\u7528\u610f\u306b\u66b4\u9732\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u8a2d\u5b9a\u3059\u308b <code>config.filter_parameters<\/code> \u3067 <code>config\/application.rb<\/code> \u3092\u4f7f\u7528\u3057\u3066\u3001\u654f\u611f\u306a\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3059\u308b\uff1a<\/p><pre>\u30eb\u30d3\u30fc\nconfig.filter_parameters += [:password, :secret, :token] \u3068\u3059\u308b\u3002<\/pre><p>\u3053\u308c\u306f\u3001\u6a5f\u5bc6\u30c7\u30fc\u30bf\u3092[ ]\u3068\u3057\u3066\u30de\u30fc\u30af\u3059\u308b\u3002<code>\u30d5\u30a3\u30eb\u30bf\u30fc\u4ed8\u304d<\/code>\u3092\u30ed\u30b0\u306b\u6b8b\u3057\u3001\u88ab\u66dd\u3092\u9632\u3044\u3067\u3044\u308b\u3002<\/p><h4><strong>4.\u79d8\u5bc6\u3092\u5b9a\u671f\u7684\u306b\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3059\u308b<\/strong><\/h4><p>\u5b9a\u671f\u7684\u306b\u56de\u8ee2\u3055\u305b\u308b <code>\u79d8\u5bc6\u9375\u30d9\u30fc\u30b9<\/code> \u306a\u3069\u306e\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u6f5c\u5728\u7684\u306a\u6f0f\u3048\u3044\u306e\u5f71\u97ff\u3092\u6700\u5c0f\u9650\u306b\u6291\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Rails\u306e\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u30e1\u30ab\u30cb\u30ba\u30e0\u3092\u4f7f\u3063\u3066\u30af\u30c3\u30ad\u30fc\u3092\u512a\u96c5\u306b\u66f4\u65b0\u3059\u308b\u3002<\/p><h4><strong>5.\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8a2d\u5b9a\u306e\u4fdd\u8b77<\/strong><\/h4><p>\u78ba\u4fdd\u3059\u308b <code>config\/atabase.yml<\/code> \u306f\u6a5f\u5bc6\u30c7\u30fc\u30bf\u3092\u542b\u307e\u306a\u3044\u3002\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u306f\u8a8d\u8a3c\u60c5\u5831\u3092\u4f7f\u7528\u3059\u308b\uff1a<\/p><pre>yaml\n# config\/database.yml\n\u30d7\u30ed\u30c0\u30af\u30b7\u30e7\u30f3\u306e\n\u30a2\u30c0\u30d7\u30bf: postgresql\n\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\uff1a\u3002\n\u30e6\u30fc\u30b6\u540d\n\u30d1\u30b9\u30ef\u30fc\u30c9 \u3067\u3059\u3002<\/pre><p>\u3053\u308c\u306b\u3088\u308a\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8a8d\u8a3c\u60c5\u5831\u306f\u5b89\u5168\u306b\u4fdd\u305f\u308c\u308b\u3002<\/p><h4><strong>6.\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u76e3\u67fb<\/strong><\/h4><p>Brakeman\u3084bundler-audit\u306e\u3088\u3046\u306a\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u3001Rails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8106\u5f31\u6027\u3092\u30b9\u30ad\u30e3\u30f3\u3057\u307e\u3057\u3087\u3046\u3002CI\/CD\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306b\u7d44\u307f\u8fbc\u3093\u3067\u554f\u984c\u3092\u65e9\u671f\u306b\u767a\u898b\u3057\u307e\u3057\u3087\u3046\u3002<\/p><h3><strong>\u3088\u304f\u3042\u308b\u843d\u3068\u3057\u7a74\u3068\u305d\u306e\u907f\u3051\u65b9<\/strong><\/h3><h4><strong>1.\u30de\u30b9\u30bf\u30fc\u30ad\u30fc\u306e\u30b3\u30df\u30c3\u30c8<\/strong><\/h4><p>\u4e8b\u6545 <code>config\/master.key<\/code> \u3092\u30d0\u30fc\u30b8\u30e7\u30f3\u30fb\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306b\u7f6e\u304d\u63db\u3048\u308b\u306e\u306f\u3001\u3088\u304f\u3042\u308b\u9593\u9055\u3044\u3060\u3002\u5e38\u306b <code>.gitignore<\/code> file:<\/p><pre>\u30ae\u30c6\u30a3\u30b0\u30ce\u30a2\n\/config\/master.key\n\/\u30b3\u30f3\u30d5\u30a3\u30b0\/\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\/*.key<\/pre><h4><strong>2.\u4e00\u8cab\u6027\u306e\u306a\u3044\u74b0\u5883\u8a8d\u8a3c\u60c5\u5831<\/strong><\/h4><p>\u74b0\u5883\u56fa\u6709\u306e\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001\u30ad\u30fc\u304c\u74b0\u5883\u9593\u3067\u4e00\u8cab\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305f\u3068\u3048\u3070 <code>\u30b9\u30c8\u30e9\u30a4\u30d7<\/code> \u30ad\u30fc\u3092\u958b\u767a\u4e2d\u306b\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u5024\u3067\u3042\u3063\u3066\u3082\u3001\u672c\u756a\u74b0\u5883\u3068\u30c6\u30b9\u30c8\u306e\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u306b\u3082\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p><h4><strong>3.\u30ed\u30b0\u3067\u306e\u8a8d\u8a3c\u60c5\u5831\u306e\u516c\u958b<\/strong><\/h4><p>\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3055\u308c\u3066\u3044\u306a\u3044\u30ed\u30b0\u306f\u79d8\u5bc6\u3092\u66b4\u9732\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3002\u5e38\u306b <code>config.filter_parameters<\/code> \u306f\u3059\u3079\u3066\u306e\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u30ad\u30fc\u3092\u542b\u3080\u3002<\/p><h4><strong>4.\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u3067\u306e ERB \u306e\u4f7f\u7528<\/strong><\/h4><p>Rails\u306f\u6697\u53f7\u5316\u3055\u308c\u305f\u8cc7\u683c\u60c5\u5831\u30d5\u30a1\u30a4\u30eb\u306eEmbedded Ruby (ERB) \u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093\u3002 <code>\u3002<\/code> \u69cb\u6587\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u4ee3\u308f\u308a\u306b\u30d7\u30ec\u30fc\u30f3\u306aYAML\u3092\u4f7f\u304a\u3046\u3002<\/p><h3><strong>\u30a2\u30c9\u30d0\u30f3\u30b9\u30fb\u30c8\u30d4\u30c3\u30af\u30b9<\/strong><\/h3><h4><strong>\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30fb\u30b5\u30fc\u30d3\u30b9\u3067\u306e\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u306e\u4f7f\u7528<\/strong><\/h4><p>AWS\u3001Stripe\u3001SendGrid\u306e\u3088\u3046\u306a\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u7d71\u5408\u3059\u308b\u5834\u5408\u3001\u305d\u308c\u3089\u306eAPI\u30ad\u30fc\u3092\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070<\/p><pre>yaml\nsendgrid\uff1a\n    api_key: your_sendgrid_api_key<\/pre><p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u3060\u3055\u3044\uff1a<\/p><pre>\u30eb\u30d3\u30fc\nSendGrid::API.api_key = Rails.application.credentials.sendgrid[:api_key]\u3002<\/pre><p>\u3053\u308c\u306b\u3088\u308a\u3001\u7d71\u5408\u306e\u5b89\u5168\u6027\u3068\u4fdd\u5b88\u6027\u304c\u4fdd\u305f\u308c\u308b\u3002<\/p><h4><strong>\u30a2\u30af\u30c6\u30a3\u30d6\u30ec\u30b3\u30fc\u30c9\u306e\u6697\u53f7\u5316<\/strong><\/h4><p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u6697\u53f7\u5316\u3059\u308b\u305f\u3081\u306b\u3001Rails\u306fActive Record Encryption\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\uff08Rails 7\u3067\u5c0e\u5165\uff09\u3002\u305f\u3068\u3048\u3070<\/p><pre>\u30eb\u30d3\u30fc\nclass Article &lt; ApplicationRecord\n    \u8981\u7d04\u3092\u6697\u53f7\u5316\u3059\u308b\uff1aRails.application.credentials.active_record_encryption[:primary_key]\u3092\u4f7f\u3046\u3002\n\u7d42\u4e86<\/pre><p>\u6697\u53f7\u5316\u30ad\u30fc\u3092\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u306b\u4fdd\u5b58\u3059\u308b\uff1a<\/p><pre>yaml\nactive_record_encryption\uff1a\n    \u30d7\u30e9\u30a4\u30de\u30ea_\u30ad\u30fc: your_encryption_key\n    key_derivation_salt\uff1a\u3042\u306a\u305f\u306e_salt<\/pre><p>\u3053\u308c\u306b\u3088\u308a\u3001\u6a5f\u5bc6\u6027\u306e\u9ad8\u3044\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30fb\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u5b89\u5168\u306b\u4fdd\u7ba1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p><h4><strong>\u30ab\u30b9\u30bf\u30e0\u30fb\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30fb\u30de\u30cd\u30b8\u30e1\u30f3\u30c8<\/strong><\/h4><p>Rails\u4ee5\u5916\u306eRuby\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u9ad8\u5ea6\u306a\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306agem\u3092\u691c\u8a0e\u3057\u3066\u304f\u3060\u3055\u3044\u3002 <code>\u30bb\u30af\u30ec\u30c4<\/code> \u6697\u53f7\u5316\u3055\u308c\u305f\u79d8\u5bc6\u3092\u7ba1\u7406\u3059\u308b\u3002\u3053\u308c\u3089\u3092Rails\u306b\u7d71\u5408\u3057\u3066\u3001\u30ab\u30b9\u30bf\u30e0\u30fb\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u5b9f\u73fe\u3067\u304d\u308b\u3002<\/p><h2><strong>\u7d50\u8ad6<\/strong><\/h2><p>Ruby on Rails\u3067\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u3068\u6697\u53f7\u5316\u3055\u308c\u305f\u79d8\u5bc6\u3092\u7ba1\u7406\u3059\u308b\u3053\u3068\u306f\u3001\u5b89\u5168\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306b\u4e0d\u53ef\u6b20\u306a\u30b9\u30ad\u30eb\u3067\u3059\u3002Rails\u306e\u7d44\u307f\u8fbc\u307f\u8cc7\u683c\u60c5\u5831\u30b7\u30b9\u30c6\u30e0\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u6a5f\u5bc6\u30c7\u30fc\u30bf\u3092\u5b89\u5168\u306b\u4fdd\u5b58\u3057\u3001\u30c1\u30fc\u30e0\u3068\u5171\u6709\u3057\u3001\u81ea\u4fe1\u3092\u6301\u3063\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u7de8\u96c6\u304b\u3089 <code>config\/credentials.yml.enc<\/code> \u304b\u3089\u30de\u30b9\u30bf\u30fc\u30fb\u30ad\u30fc\u306e\u78ba\u4fdd\u3001\u74b0\u5883\u56fa\u6709\u306e\u8a8d\u8a3c\u60c5\u5831\u306e\u4f7f\u7528\u307e\u3067\u3001\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u521d\u5fc3\u8005\u306e\u305f\u3081\u306b\u5fc5\u8981\u306a\u3053\u3068\u3092\u7db2\u7f85\u3057\u3066\u3044\u308b\u3002<\/p><p>Rails\u958b\u767a\u3092\u6b21\u306e\u30ec\u30d9\u30eb\u306b\u5f15\u304d\u4e0a\u3052\u308b\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306a\u5c02\u9580\u5bb6\u3068\u306e\u63d0\u643a\u3092\u3054\u691c\u8a0e\u304f\u3060\u3055\u3044\u3002 <a href=\"https:\/\/www.railscarma.com\/ja\/\">\u30ec\u30fc\u30eb\u30ab\u30fc\u30de<\/a>\u306b\u7279\u5316\u3057\u3066\u3044\u308b\u3002 <a href=\"https:\/\/www.railscarma.com\/ja\/\">Ruby on Rails\u958b\u767a\u4f1a\u793e<\/a>.RailsCarma\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u767a\u3001\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3001\u304a\u3088\u3073\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u767a\u3001\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3001\u304a\u3088\u3073\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u767a\u3001\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3001\u304a\u3088\u3073\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u767a\u3092\u542b\u3080\u5305\u62ec\u7684\u306a\u30b5\u30fc\u30d3\u30b9\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002 <a href=\"https:\/\/www.railscarma.com\/ja\/%e3%83%96%e3%83%ad%e3%82%b0\/security-best-practices-for-ruby-on-rails-developers\/\">\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u76e3\u67fb<\/a>\u3053\u306e\u30ac\u30a4\u30c9\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u306b\u5f93\u3044\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u5c02\u9580\u5bb6\u306e\u30b5\u30dd\u30fc\u30c8\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u304a\u5ba2\u69d8\u306e\u30cb\u30fc\u30ba\u306b\u5408\u308f\u305b\u305f\u5805\u7262\u3067\u30bb\u30ad\u30e5\u30a2\u306a Rails \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u69cb\u7bc9\u3092\u652f\u63f4\u3057\u307e\u3059\u3002\u3053\u306e\u30ac\u30a4\u30c9\u306b\u6982\u8aac\u3055\u308c\u3066\u3044\u308b\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u306b\u5f93\u3044\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30d7\u30ed\u306e\u30b5\u30dd\u30fc\u30c8\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001Rails \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u6a5f\u5bc6\u30c7\u30fc\u30bf\u3092\u5b89\u5168\u306b\u53d6\u308a\u6271\u3046\u305f\u3081\u306e\u5341\u5206\u306a\u6e96\u5099\u304c\u6574\u3044\u307e\u3059\u3002<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t  <div class=\"related-post slider\">\r\n        <div class=\"headline\">\u95a2\u9023\u8a18\u4e8b<\/div>\r\n    <div class=\"post-list owl-carousel\">\r\n\r\n            <div class=\"item\">\r\n            <div class=\"thumb post_thumb\">\r\n    <a  title=\"Building Agentic AI Applications with Ruby on Rails\" href=\"https:\/\/www.railscarma.com\/ja\/%e3%83%96%e3%83%ad%e3%82%b0\/building-agentic-ai-applications-with-ruby-on-rails\/?related_post_from=41339\">\r\n\r\n      <img decoding=\"async\" width=\"800\" height=\"300\" src=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2026\/05\/Building-Agentic-AI-Applications-with-Ruby-on-Rails.png\" class=\"attachment-full size-full wp-post-image\" alt=\"Agentic AI Applications with Ruby on Rails\" srcset=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2026\/05\/Building-Agentic-AI-Applications-with-Ruby-on-Rails.png 800w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2026\/05\/Building-Agentic-AI-Applications-with-Ruby-on-Rails-300x113.png 300w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2026\/05\/Building-Agentic-AI-Applications-with-Ruby-on-Rails-768x288.png 768w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2026\/05\/Building-Agentic-AI-Applications-with-Ruby-on-Rails-18x7.png 18w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\r\n\r\n    <\/a>\r\n  <\/div>\r\n\r\n  <a class=\"title post_title\"  title=\"Building Agentic AI Applications with Ruby on Rails\" href=\"https:\/\/www.railscarma.com\/ja\/%e3%83%96%e3%83%ad%e3%82%b0\/building-agentic-ai-applications-with-ruby-on-rails\/?related_post_from=41339\">\r\n        Building Agentic AI Applications with Ruby on Rails  <\/a>\r\n\r\n        <\/div>\r\n              <div class=\"item\">\r\n            <div class=\"thumb post_thumb\">\r\n    <a  title=\"Offliberty Ruby Gem\u3068\u306f\uff1f\" href=\"https:\/\/www.railscarma.com\/ja\/%e3%83%96%e3%83%ad%e3%82%b0\/what-is-offliberty-ruby-gem-and-how-it-works\/?related_post_from=41304\">\r\n\r\n      <img decoding=\"async\" width=\"800\" height=\"300\" src=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2026\/04\/What-is-Offliberty-Ruby-Gem-and-How-It-Works.png\" class=\"attachment-full size-full wp-post-image\" alt=\"\u30aa\u30d5\u30ea\u30d0\u30c6\u30a3\u30fb\u30eb\u30d3\u30fc\u30fb\u30b8\u30a7\u30e0\" srcset=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2026\/04\/What-is-Offliberty-Ruby-Gem-and-How-It-Works.png 800w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2026\/04\/What-is-Offliberty-Ruby-Gem-and-How-It-Works-300x113.png 300w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2026\/04\/What-is-Offliberty-Ruby-Gem-and-How-It-Works-768x288.png 768w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2026\/04\/What-is-Offliberty-Ruby-Gem-and-How-It-Works-18x7.png 18w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\r\n\r\n    <\/a>\r\n  <\/div>\r\n\r\n  <a class=\"title post_title\"  title=\"Offliberty Ruby Gem\u3068\u306f\uff1f\" href=\"https:\/\/www.railscarma.com\/ja\/%e3%83%96%e3%83%ad%e3%82%b0\/what-is-offliberty-ruby-gem-and-how-it-works\/?related_post_from=41304\">\r\n        Offliberty Ruby Gem\u3068\u306f\uff1f  <\/a>\r\n\r\n        <\/div>\r\n              <div class=\"item\">\r\n            <div class=\"thumb post_thumb\">\r\n    <a  title=\"Rails\u306elink_to\u30e1\u30bd\u30c3\u30c9\uff1a\u4f8b\u306b\u3088\u308b\u5b8c\u5168\u30ac\u30a4\u30c9\" href=\"https:\/\/www.railscarma.com\/ja\/%e3%83%96%e3%83%ad%e3%82%b0\/rails-link_to-method-the-complete-guide-with-examples\/?related_post_from=41296\">\r\n\r\n      <img decoding=\"async\" width=\"800\" height=\"300\" src=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2026\/04\/Rails-link_to-Method-The-Complete-Guide-with-Examples.png\" class=\"attachment-full size-full wp-post-image\" alt=\"Rails link_to\u30e1\u30bd\u30c3\u30c9\" srcset=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2026\/04\/Rails-link_to-Method-The-Complete-Guide-with-Examples.png 800w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2026\/04\/Rails-link_to-Method-The-Complete-Guide-with-Examples-300x113.png 300w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2026\/04\/Rails-link_to-Method-The-Complete-Guide-with-Examples-768x288.png 768w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2026\/04\/Rails-link_to-Method-The-Complete-Guide-with-Examples-18x7.png 18w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\r\n\r\n    <\/a>\r\n  <\/div>\r\n\r\n  <a class=\"title post_title\"  title=\"Rails\u306elink_to\u30e1\u30bd\u30c3\u30c9\uff1a\u4f8b\u306b\u3088\u308b\u5b8c\u5168\u30ac\u30a4\u30c9\" href=\"https:\/\/www.railscarma.com\/ja\/%e3%83%96%e3%83%ad%e3%82%b0\/rails-link_to-method-the-complete-guide-with-examples\/?related_post_from=41296\">\r\n        Rails\u306elink_to\u30e1\u30bd\u30c3\u30c9\uff1a\u4f8b\u306b\u3088\u308b\u5b8c\u5168\u30ac\u30a4\u30c9  <\/a>\r\n\r\n        <\/div>\r\n              <div class=\"item\">\r\n            <div class=\"thumb post_thumb\">\r\n    <a  title=\"Ruby on Rails\u306b\u304a\u3051\u308b\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3API\u7d71\u5408\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\" href=\"https:\/\/www.railscarma.com\/ja\/%e3%83%96%e3%83%ad%e3%82%b0\/ruby-on-rails%e3%81%a7%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%89%e3%83%91%e3%83%bc%e3%83%86%e3%82%a3api%e7%b5%b1%e5%90%88%e3%82%bd%e3%83%aa%e3%83%a5%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/?related_post_from=41264\">\r\n\r\n      <img decoding=\"async\" width=\"800\" height=\"300\" src=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2026\/04\/Third-Party-API-Integration-Solutions-in-Ruby-on-Rails.png\" class=\"attachment-full size-full wp-post-image\" alt=\"Ruby on Rails\u3067\u306eAPI\u7d71\u5408\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\" srcset=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2026\/04\/Third-Party-API-Integration-Solutions-in-Ruby-on-Rails.png 800w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2026\/04\/Third-Party-API-Integration-Solutions-in-Ruby-on-Rails-300x113.png 300w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2026\/04\/Third-Party-API-Integration-Solutions-in-Ruby-on-Rails-768x288.png 768w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2026\/04\/Third-Party-API-Integration-Solutions-in-Ruby-on-Rails-18x7.png 18w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\r\n\r\n    <\/a>\r\n  <\/div>\r\n\r\n  <a class=\"title post_title\"  title=\"Ruby on Rails\u306b\u304a\u3051\u308b\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3API\u7d71\u5408\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\" href=\"https:\/\/www.railscarma.com\/ja\/%e3%83%96%e3%83%ad%e3%82%b0\/ruby-on-rails%e3%81%a7%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%89%e3%83%91%e3%83%bc%e3%83%86%e3%82%a3api%e7%b5%b1%e5%90%88%e3%82%bd%e3%83%aa%e3%83%a5%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/?related_post_from=41264\">\r\n        Ruby on Rails\u306b\u304a\u3051\u308b\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3API\u7d71\u5408\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3  <\/a>\r\n\r\n        <\/div>\r\n      \r\n  <\/div>\r\n\r\n  <script>\r\n      <\/script>\r\n  <style>\r\n    .related-post {}\r\n\r\n    .related-post .post-list {\r\n      text-align: left;\r\n          }\r\n\r\n    .related-post .post-list .item {\r\n      margin: 10px;\r\n      padding: 10px;\r\n          }\r\n\r\n    .related-post .headline {\r\n      font-size: 14px !important;\r\n      color: #999999 !important;\r\n          }\r\n\r\n    .related-post .post-list .item .post_thumb {\r\n      max-height: 220px;\r\n      margin: 10px 0px;\r\n      padding: 0px;\r\n      display: block;\r\n          }\r\n\r\n    .related-post .post-list .item .post_title {\r\n      font-size: 14px;\r\n      color: #000000;\r\n      margin: 10px 0px;\r\n      padding: 0px;\r\n      display: block;\r\n      text-decoration: none;\r\n          }\r\n\r\n    .related-post .post-list .item .post_excerpt {\r\n      font-size: 12px;\r\n      color: #3f3f3f;\r\n      margin: 10px 0px;\r\n      padding: 0px;\r\n      display: block;\r\n      text-decoration: none;\r\n          }\r\n\r\n    .related-post .owl-dots .owl-dot {\r\n          }\r\n\r\n      <\/style>\r\n      <script>\r\n      jQuery(document).ready(function($) {\r\n        $(\".related-post .post-list\").owlCarousel({\r\n          items: 2,\r\n          responsiveClass: true,\r\n          responsive: {\r\n            0: {\r\n              items: 1,\r\n            },\r\n            768: {\r\n              items: 2,\r\n            },\r\n            1200: {\r\n              items: 2,\r\n            }\r\n          },\r\n                      rewind: true,\r\n                                loop: true,\r\n                                center: false,\r\n                                autoplay: true,\r\n            autoplayHoverPause: true,\r\n                                nav: true,\r\n            navSpeed: 1000,\r\n            navText: ['<i class=\"fas fa-chevron-left\"><\/i>', '<i class=\"fas fa-chevron-right\"><\/i>'],\r\n                                dots: false,\r\n            dotsSpeed: 1200,\r\n                                                    rtl: false,\r\n          \r\n        });\r\n      });\r\n    <\/script>\r\n  <\/div>","protected":false},"excerpt":{"rendered":"<p>Ruby on Rails\uff08\u3057\u3070\u3057\u3070\u5358\u306bRails\u3068\u547c\u3070\u308c\u308b\uff09\u306f\u3001Ruby\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306b\u57fa\u3065\u3044\u3066\u69cb\u7bc9\u3055\u308c\u305f\u5f37\u529b\u306aWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3042\u308b\u3002\u305d\u306e\u4e3b\u306a\u7279\u5fb4\u306e1\u3064\u306f\u3001\u6697\u53f7\u5316\u3055\u308c\u305f\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u306b\u3088\u3063\u3066API\u30ad\u30fc\u3084\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8cc7\u683c\u60c5\u5831\u306a\u3069\u306e\u6a5f\u5bc6\u30c7\u30fc\u30bf\u3092\u5b89\u5168\u306b\u7ba1\u7406\u3067\u304d\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u306e\u30ac\u30a4\u30c9\u306f\u3001Rails\u306e\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u6271\u3044\u65b9\u3092\u7406\u89e3\u3059\u308b\u305f\u3081\u306b\u521d\u5fc3\u8005\u5411\u3051\u306b\u8a2d\u8a08\u3055\u308c\u3066\u304a\u308a\u3001\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u306e\u7de8\u96c6\u3068\u6697\u53f7\u5316\u3055\u308c\u305f\u79d8\u5bc6\u306e\u52b9\u679c\u7684\u306a\u7ba1\u7406\u306b\u7126\u70b9\u3092\u5f53\u3066\u3066\u3044\u307e\u3059\u3002\u6700\u5f8c\u306b\u306f\u3001Rails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u6a5f\u5bc6\u60c5\u5831\u3092\u5b89\u5168\u306b\u6271\u3046\u65b9\u6cd5\u3092\u3001\u5b9f\u8df5\u7684\u306a\u4f8b\u3084\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3068\u3068\u3082\u306b\u660e\u78ba\u306b\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3067\u3057\u3087\u3046\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Ruby\u3068Rails\u306e\u57fa\u672c\u7684\u306a\u7406\u89e3\uff08\u305f\u3068\u3048\u3070\u3001...<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/www.railscarma.com\/ja\/%e3%83%96%e3%83%ad%e3%82%b0\/ruby-on-rails%e3%81%a7%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%89%e3%83%91%e3%83%bc%e3%83%86%e3%82%a3api%e7%b5%b1%e5%90%88%e3%82%bd%e3%83%aa%e3%83%a5%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/\"> <span class=\"screen-reader-text\">Ruby on Rails\u306b\u304a\u3051\u308b\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3API\u7d71\u5408\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3<\/span> \u3082\u3063\u3068\u8aad\u3080 \"<\/a><\/p>","protected":false},"author":5,"featured_media":39937,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1224],"tags":[],"class_list":["post-39930","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Guide to Ruby on Rails: Editing Credentials and Encrypted Secrets<\/title>\n<meta name=\"description\" content=\"Beginner\u2019s Guide to Ruby on Rails on editing credentials and managing encrypted secrets securely in your Rails applications.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.railscarma.com\/ja\/\u30d6\u30ed\u30b0\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Guide to Ruby on Rails: Editing Credentials and Encrypted Secrets\" \/>\n<meta property=\"og:description\" content=\"Beginner\u2019s Guide to Ruby on Rails on editing credentials and managing encrypted secrets securely in your Rails applications.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.railscarma.com\/ja\/\u30d6\u30ed\u30b0\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/\" \/>\n<meta property=\"og:site_name\" content=\"RailsCarma - Ruby on Rails Development Company specializing in Offshore Development\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RailsCarma\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-04T12:42:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-04T12:45:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2025\/08\/Beginners-Guide-to-Ruby-on-Rails-Editing-Credentials-and-Encrypted-Secrets.png\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Nikhil\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@railscarma\" \/>\n<meta name=\"twitter:site\" content=\"@railscarma\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nikhil\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"7\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/\"},\"author\":{\"name\":\"Nikhil\",\"@id\":\"https:\/\/www.railscarma.com\/#\/schema\/person\/1aa0357392b349082303e8222c35c30c\"},\"headline\":\"Beginner\u2019s Guide to Ruby on Rails: Editing Credentials and Encrypted Secrets\",\"datePublished\":\"2025-08-04T12:42:08+00:00\",\"dateModified\":\"2025-08-04T12:45:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/\"},\"wordCount\":1502,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.railscarma.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2025\/08\/Beginners-Guide-to-Ruby-on-Rails-Editing-Credentials-and-Encrypted-Secrets.png\",\"articleSection\":[\"Blogs\"],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/\",\"url\":\"https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/\",\"name\":\"Guide to Ruby on Rails: Editing Credentials and Encrypted Secrets\",\"isPartOf\":{\"@id\":\"https:\/\/www.railscarma.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2025\/08\/Beginners-Guide-to-Ruby-on-Rails-Editing-Credentials-and-Encrypted-Secrets.png\",\"datePublished\":\"2025-08-04T12:42:08+00:00\",\"dateModified\":\"2025-08-04T12:45:08+00:00\",\"description\":\"Beginner\u2019s Guide to Ruby on Rails on editing credentials and managing encrypted secrets securely in your Rails applications.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/#primaryimage\",\"url\":\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2025\/08\/Beginners-Guide-to-Ruby-on-Rails-Editing-Credentials-and-Encrypted-Secrets.png\",\"contentUrl\":\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2025\/08\/Beginners-Guide-to-Ruby-on-Rails-Editing-Credentials-and-Encrypted-Secrets.png\",\"width\":800,\"height\":300,\"caption\":\"Ruby on Rails Editing Credentials\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.railscarma.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Beginner\u2019s Guide to Ruby on Rails: Editing Credentials and Encrypted Secrets\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.railscarma.com\/#website\",\"url\":\"https:\/\/www.railscarma.com\/\",\"name\":\"RailsCarma - Ruby on Rails Development Company specializing in Offshore Development\",\"description\":\"RailsCarma is a Ruby on Rails Development Company in Bangalore. We specialize in Offshore Ruby on Rails Development based out in USA and India. Hire experienced Ruby on Rails developers for the ultimate Web Experience.\",\"publisher\":{\"@id\":\"https:\/\/www.railscarma.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.railscarma.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.railscarma.com\/#organization\",\"name\":\"RailsCarma\",\"url\":\"https:\/\/www.railscarma.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.railscarma.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2020\/08\/railscarma_logo.png\",\"contentUrl\":\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2020\/08\/railscarma_logo.png\",\"width\":200,\"height\":46,\"caption\":\"RailsCarma\"},\"image\":{\"@id\":\"https:\/\/www.railscarma.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/RailsCarma\/\",\"https:\/\/x.com\/railscarma\",\"https:\/\/www.linkedin.com\/company\/railscarma\/\",\"https:\/\/myspace.com\/railscarma\",\"https:\/\/in.pinterest.com\/railscarma\/\",\"https:\/\/www.youtube.com\/channel\/UCx3Wil-aAnDARuatTEyMdpg\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.railscarma.com\/#\/schema\/person\/1aa0357392b349082303e8222c35c30c\",\"name\":\"Nikhil\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.railscarma.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/054f31ff35e9917aaf631b8025ef679d42dd21792012d451763138d66d02a4c0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/054f31ff35e9917aaf631b8025ef679d42dd21792012d451763138d66d02a4c0?s=96&d=mm&r=g\",\"caption\":\"Nikhil\"},\"sameAs\":[\"https:\/\/www.railscarma.com\/hire-ruby-on-rails-developer\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Guide to Ruby on Rails: Editing Credentials and Encrypted Secrets","description":"Beginner\u2019s Guide to Ruby on Rails on editing credentials and managing encrypted secrets securely in your Rails applications.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.railscarma.com\/ja\/\u30d6\u30ed\u30b0\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/","og_locale":"ja_JP","og_type":"article","og_title":"Guide to Ruby on Rails: Editing Credentials and Encrypted Secrets","og_description":"Beginner\u2019s Guide to Ruby on Rails on editing credentials and managing encrypted secrets securely in your Rails applications.","og_url":"https:\/\/www.railscarma.com\/ja\/\u30d6\u30ed\u30b0\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/","og_site_name":"RailsCarma - Ruby on Rails Development Company specializing in Offshore Development","article_publisher":"https:\/\/www.facebook.com\/RailsCarma\/","article_published_time":"2025-08-04T12:42:08+00:00","article_modified_time":"2025-08-04T12:45:08+00:00","og_image":[{"width":800,"height":300,"url":"https:\/\/www.railscarma.com\/wp-content\/uploads\/2025\/08\/Beginners-Guide-to-Ruby-on-Rails-Editing-Credentials-and-Encrypted-Secrets.png","type":"image\/png"}],"author":"Nikhil","twitter_card":"summary_large_image","twitter_creator":"@railscarma","twitter_site":"@railscarma","twitter_misc":{"\u57f7\u7b46\u8005":"Nikhil","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"7\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/#article","isPartOf":{"@id":"https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/"},"author":{"name":"Nikhil","@id":"https:\/\/www.railscarma.com\/#\/schema\/person\/1aa0357392b349082303e8222c35c30c"},"headline":"Beginner\u2019s Guide to Ruby on Rails: Editing Credentials and Encrypted Secrets","datePublished":"2025-08-04T12:42:08+00:00","dateModified":"2025-08-04T12:45:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/"},"wordCount":1502,"commentCount":0,"publisher":{"@id":"https:\/\/www.railscarma.com\/#organization"},"image":{"@id":"https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/#primaryimage"},"thumbnailUrl":"https:\/\/www.railscarma.com\/wp-content\/uploads\/2025\/08\/Beginners-Guide-to-Ruby-on-Rails-Editing-Credentials-and-Encrypted-Secrets.png","articleSection":["Blogs"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/","url":"https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/","name":"Guide to Ruby on Rails: Editing Credentials and Encrypted Secrets","isPartOf":{"@id":"https:\/\/www.railscarma.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/#primaryimage"},"image":{"@id":"https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/#primaryimage"},"thumbnailUrl":"https:\/\/www.railscarma.com\/wp-content\/uploads\/2025\/08\/Beginners-Guide-to-Ruby-on-Rails-Editing-Credentials-and-Encrypted-Secrets.png","datePublished":"2025-08-04T12:42:08+00:00","dateModified":"2025-08-04T12:45:08+00:00","description":"Beginner\u2019s Guide to Ruby on Rails on editing credentials and managing encrypted secrets securely in your Rails applications.","breadcrumb":{"@id":"https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/#primaryimage","url":"https:\/\/www.railscarma.com\/wp-content\/uploads\/2025\/08\/Beginners-Guide-to-Ruby-on-Rails-Editing-Credentials-and-Encrypted-Secrets.png","contentUrl":"https:\/\/www.railscarma.com\/wp-content\/uploads\/2025\/08\/Beginners-Guide-to-Ruby-on-Rails-Editing-Credentials-and-Encrypted-Secrets.png","width":800,"height":300,"caption":"Ruby on Rails Editing Credentials"},{"@type":"BreadcrumbList","@id":"https:\/\/www.railscarma.com\/blog\/beginners-guide-to-ruby-on-rails-editing-credentials-and-encrypted-secrets\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.railscarma.com\/"},{"@type":"ListItem","position":2,"name":"Beginner\u2019s Guide to Ruby on Rails: Editing Credentials and Encrypted Secrets"}]},{"@type":"WebSite","@id":"https:\/\/www.railscarma.com\/#website","url":"https:\/\/www.railscarma.com\/","name":"RailsCarma - \u30aa\u30d5\u30b7\u30e7\u30a2\u958b\u767a\u306b\u7279\u5316\u3057\u305f Ruby on Rails \u958b\u767a\u4f1a\u793e","description":"RailsCarma \u306f\u30d0\u30f3\u30ac\u30ed\u30fc\u30eb\u306e Ruby on Rails \u958b\u767a\u4f1a\u793e\u3067\u3059\u3002\u5f53\u793e\u306f\u7c73\u56fd\u3068\u30a4\u30f3\u30c9\u3092\u62e0\u70b9\u3068\u3059\u308b\u30aa\u30d5\u30b7\u30e7\u30a2 Ruby on Rails \u958b\u767a\u3092\u5c02\u9580\u3068\u3057\u3066\u3044\u307e\u3059\u3002\u7d4c\u9a13\u8c4a\u5bcc\u306a Ruby on Rails \u958b\u767a\u8005\u3092\u96c7\u3063\u3066\u3001\u7a76\u6975\u306e Web \u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u3092\u5b9f\u73fe\u3057\u307e\u3057\u3087\u3046\u3002","publisher":{"@id":"https:\/\/www.railscarma.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.railscarma.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.railscarma.com\/#organization","name":"\u30ec\u30fc\u30eb\u30ab\u30fc\u30de","url":"https:\/\/www.railscarma.com\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.railscarma.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.railscarma.com\/wp-content\/uploads\/2020\/08\/railscarma_logo.png","contentUrl":"https:\/\/www.railscarma.com\/wp-content\/uploads\/2020\/08\/railscarma_logo.png","width":200,"height":46,"caption":"RailsCarma"},"image":{"@id":"https:\/\/www.railscarma.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RailsCarma\/","https:\/\/x.com\/railscarma","https:\/\/www.linkedin.com\/company\/railscarma\/","https:\/\/myspace.com\/railscarma","https:\/\/in.pinterest.com\/railscarma\/","https:\/\/www.youtube.com\/channel\/UCx3Wil-aAnDARuatTEyMdpg"]},{"@type":"Person","@id":"https:\/\/www.railscarma.com\/#\/schema\/person\/1aa0357392b349082303e8222c35c30c","name":"\u30cb\u30ad\u30eb","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.railscarma.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/054f31ff35e9917aaf631b8025ef679d42dd21792012d451763138d66d02a4c0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/054f31ff35e9917aaf631b8025ef679d42dd21792012d451763138d66d02a4c0?s=96&d=mm&r=g","caption":"Nikhil"},"sameAs":["https:\/\/www.railscarma.com\/hire-ruby-on-rails-developer\/"]}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.railscarma.com\/ja\/wp-json\/wp\/v2\/posts\/39930","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.railscarma.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.railscarma.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.railscarma.com\/ja\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.railscarma.com\/ja\/wp-json\/wp\/v2\/comments?post=39930"}],"version-history":[{"count":0,"href":"https:\/\/www.railscarma.com\/ja\/wp-json\/wp\/v2\/posts\/39930\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.railscarma.com\/ja\/wp-json\/wp\/v2\/media\/39937"}],"wp:attachment":[{"href":"https:\/\/www.railscarma.com\/ja\/wp-json\/wp\/v2\/media?parent=39930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.railscarma.com\/ja\/wp-json\/wp\/v2\/categories?post=39930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.railscarma.com\/ja\/wp-json\/wp\/v2\/tags?post=39930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}