Skip to content

Commit

Permalink
Opt-in for MFA requirement explicitly
Browse files Browse the repository at this point in the history
As a popular gem, `faraday-net_http` implicitly requires that all
privileged operations by any of the owners require OTP.

However, by explicitly setting `rubygems_mfa_required` metadata, the
gem will show "NEW VERSIONS REQUIRE MFA" and
"VERSION PUBLISHED WITH MFA" in the sidebar at
https://rubygems.org/gems/faraday

Ref:
- https://blog.rubygems.org/2022/08/15/requiring-mfa-on-popular-gems.html
- https://guides.rubygems.org/mfa-requirement-opt-in/
  • Loading branch information
tagliala committed Aug 13, 2024
1 parent 6572f21 commit bedc8a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions faraday-net_http.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = 'https://github.com/lostisland/faraday-net_http'
spec.metadata['changelog_uri'] = "https://github.com/lostisland/faraday-net_http/releases/tag/v#{spec.version}"
spec.metadata['rubygems_mfa_required'] = 'true'

spec.files = Dir.glob('lib/**/*') + %w[README.md LICENSE.md]
spec.require_paths = ['lib']
Expand Down

0 comments on commit bedc8a9

Please sign in to comment.