1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

#Rails + #rspec + #VCR で SECRET_KEY など秘密の環境変数・情報をフィルタリングする設定

Last updated at Posted at 2020-01-10

spec/support/vcr_config.rb

VCR.configure do |config|
  config.filter_sensitive_data('<SECRET_KEY>') { ENV['SOME_SECRET_KEY'] }
end

Ref

VCR で外部 API へのリクエストをダンプするときに機密情報をマスクしたい - Qiita
https://qiita.com/gotchane/items/c2c29c0063bd44246510

Original by Github issue

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

Twitter

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?