Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gem owner fails after webauthn succeeds #7643

Open
indirect opened this issue May 9, 2024 · 0 comments
Open

gem owner fails after webauthn succeeds #7643

indirect opened this issue May 9, 2024 · 0 comments
Labels

Comments

@indirect
Copy link
Member

indirect commented May 9, 2024

Describe the problem as clearly as you can

I ran gem owner -a <name> <gem>, and provided a webauthn MFA, but the command still failed.

Did you try upgrading RubyGems?

Yes, using RubyGems 3.5.10.

Post steps to reproduce the problem

❯ gem owner -a segiddins@segiddins.me rails-footnotes
You have enabled multi-factor authentication. Please visit https://rubygems.org/webauthn_verification/WfXYew1BvxPbAyBP?port=56542 to authenticate via security device. If you can't verify using WebAuthn but have OTP enabled, you can re-run the gem signin command with the `--otp [your_code]` option.
You are verified with a security device. You may close the browser window.
The existing key doesn't have access of add_owner on RubyGems.org. Please sign in to update access.
Username/email:   andre@arko.net
      Password:
Your OTP code is incorrect. Please check it and retry.

Which command did you run?

gem owner -a <name> <gem>

What were you expecting to happen?

I was expecting an owner to be added.

What actually happened?

I was told my OTP code was invalid.

Run gem env and paste the output below

RubyGems Environment:
  - RUBYGEMS VERSION: 3.5.10
  - RUBY VERSION: 3.2.2 (2023-03-30 patchlevel 53) [arm64-darwin23]
  - INSTALLATION DIRECTORY: /Users/andre/.gem/ruby/3.2.2
  - USER INSTALLATION DIRECTORY: /Users/andre/.gem/ruby/3.2.0
  - RUBY EXECUTABLE: /Users/andre/.rubies/ruby-3.2.2/bin/ruby
  - GIT EXECUTABLE: /opt/homebrew/bin/git
  - EXECUTABLE DIRECTORY: /Users/andre/.gem/ruby/3.2.2/bin
  - SPEC CACHE DIRECTORY: /Users/andre/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /Users/andre/.rubies/ruby-3.2.2/etc
  - RUBYGEMS PLATFORMS:
     - ruby
     - arm64-darwin-23
  - GEM PATHS:
     - /Users/andre/.gem/ruby/3.2.2
     - /Users/andre/.rubies/ruby-3.2.2/lib/ruby/gems/3.2.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => true
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /Users/andre/.gem/ruby/3.2.2/bin
     - /Users/andre/.rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/bin
     - /Users/andre/.rubies/ruby-3.2.2/bin
     - /Users/andre/.nodenv/shims
     - /Users/andre/.bin
     - /Users/andre/.cargo/bin
     - /opt/homebrew/bin
     - /opt/homebrew/sbin
     - /usr/local/bin
     - /System/Cryptexes/App/usr/bin
     - /usr/bin
     - /bin
     - /usr/sbin
     - /sbin
     - /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin
     - /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin
     - /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
     - /Library/Apple/usr/bin
     - /Applications/Little Snitch.app/Contents/Components
     - /Applications/VMware Fusion.app/Contents/Public
     - /Users/andre/.orbstack/bin
     - /Users/andre/.zsh/znap/unixorn/fzf-zsh-plugin/bin
     - /Users/andre/.fzf/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant