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

Add support for YubiKey OTP codes during release #43863

Merged
merged 1 commit into from Dec 14, 2021
Merged

Conversation

tenderlove
Copy link
Member

This patch adds support for automatically getting OTP codes from your
YubiKey during release. You must have the ykman commandline tool
installed, and have two accounts setup with the names rubygems.org and
npmjs.com. For example, the output from ykman oath accounts list on
my machine is this:

$ ykman oath accounts list
npmjs.com:aaron.patterson@gmail.com
rubygems.org:aaron.patterson@gmail.com

If you meet these conditions, you can do rake release without typing
an OTP code for every gem.

If no ykman tool is found on your system, this will just fall back to
asking for an OTP code.

This patch adds support for automatically getting OTP codes from your
YubiKey during release.  You must have the `ykman` commandline tool
installed, and have two accounts setup with the names `rubygems.org` and
`npmjs.com`.  For example, the output from `ykman oath accounts list` on
my machine is this:

```
$ ykman oath accounts list
npmjs.com:aaron.patterson@gmail.com
rubygems.org:aaron.patterson@gmail.com
```

If you meet these conditions, you can do `rake release` without typing
an OTP code for every gem.

If no `ykman` tool is found on your system, this will just fall back to
asking for an OTP code.
@tenderlove
Copy link
Member Author

I wrote a blog post on setting up ykman here.

@tenderlove tenderlove merged commit a569ca1 into main Dec 14, 2021
@tenderlove tenderlove deleted the yubikey-support branch December 14, 2021 21:36
@tenderlove tenderlove restored the yubikey-support branch December 14, 2021 21:36
@tenderlove tenderlove deleted the yubikey-support branch December 14, 2021 21:36
@tenderlove tenderlove restored the yubikey-support branch December 14, 2021 21:36
@tenderlove tenderlove deleted the yubikey-support branch December 14, 2021 21:36
tenderlove added a commit that referenced this pull request Dec 14, 2021
Add support for YubiKey OTP codes during release
tenderlove added a commit that referenced this pull request Dec 14, 2021
* 7-0-sec:
  Preparing for 7.0.0.rc3 release
  update changelog
  bumping version for release
  Merge pull request #43868 from rails/fix-default-hosts
  Merge pull request #43863 from rails/yubikey-support
tenderlove added a commit that referenced this pull request Dec 14, 2021
Add support for YubiKey OTP codes during release
tenderlove added a commit that referenced this pull request Dec 14, 2021
* 6-1-sec:
  Preparing for 6.1.4.3 release
  bump version
  update changelog
  Merge pull request #43868 from rails/fix-default-hosts
  Merge pull request #43863 from rails/yubikey-support
tenderlove added a commit that referenced this pull request Dec 14, 2021
Add support for YubiKey OTP codes during release
tenderlove added a commit that referenced this pull request Dec 14, 2021
* 6-0-sec:
  Preparing for 6.0.4.3 release
  bump version
  update changelog
  Merge pull request #43868 from rails/fix-default-hosts
  Merge pull request #43863 from rails/yubikey-support
tenderlove added a commit that referenced this pull request Feb 11, 2022
Add support for YubiKey OTP codes during release
tenderlove added a commit that referenced this pull request Feb 11, 2022
* 5-2-sec:
  Merge pull request #43863 from rails/yubikey-support
  Preparing for 5.2.6.1 release
  Preparing for release
  ActionDispatch::Executor don't fully trust `body#close`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant