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

Update 1password-cli: add gpg stanza #38398

Merged
merged 1 commit into from
Sep 20, 2017
Merged

Update 1password-cli: add gpg stanza #38398

merged 1 commit into from
Sep 20, 2017

Conversation

claui
Copy link
Contributor

@claui claui commented Sep 8, 2017

Even though we’re not quite there yet regarding GPG support (cf. issue #5971 and PR Homebrew/brew#1335), I’d still prefer for new casks to have gpg stanzas where detached signatures are available (cf. PR #6185).

To double-check the GnuPG public key 3fef9748469adbe15da7ca80ac2d62742012ea22 used in this commit, please see: Update This PR no longer includes the fingerprint of the public key (key_id); instead, the stanza now points to the public key as is on keybase.io (key_url, thanks @commitay for the suggestion). Once the validation feature is implemented, the stanza is supposed to download the GnuPG public key from keybase.io. I have no opinion as to whether key_id or key_url is more secure; however, I feel key_url makes it easier to review the Cask definition, and maintainer convenience benefits security.

For more details on the authenticity of the public key, see:


After making all changes to the cask:

  • brew cask audit --download {{cask_file}} is error-free.
  • brew cask style --fix {{cask_file}} reports no offenses.
  • The commit message includes the cask’s name and version.
    Explanation: No change in version, just adding a stanza.

Additionally, if updating a cask:

  • sha256 changed but version stayed the same (what is this?).
    I’m providing public confirmation below.
    Explanation: No change in sha256.

Additionally, if adding a new cask:

  • Named the cask according to the token reference.
  • brew cask install {{cask_file}} worked successfully.
  • brew cask uninstall {{cask_file}} worked successfully.
  • Checked there are no open pull requests for the same cask.
  • Checked the cask was not already refused in closed issues.
  • Checked the cask is submitted to the correct repo.
    Explanation: No cask(s) added.

@@ -8,6 +8,7 @@
checkpoint: 'a0c73938742c33399b0d408dac38e5aaa23a56e8a76ba0603876398f7cc38ccb'
name '1Password CLI'
homepage 'https://support.1password.com/command-line/'
gpg "op.sig", key_id: '3fef9748469adbe15da7ca80ac2d62742012ea22'
Copy link
Contributor

@commitay commitay Sep 8, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'op.sig'


Should we use key_url and check https://keybase.io/1password/pgp_keys.asc?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds reasonable. I have changed the stanza to use key_url.

@commitay commitay added the awaiting maintainer feedback Issue needs response from a maintainer. label Sep 9, 2017
@claui
Copy link
Contributor Author

claui commented Sep 10, 2017

Thanks @commitay for the pointer – I didn’t know that key_url was a thing. 😄

Not on a Mac right now; going to check it out as soon as I am.

Even though we’re not quite there yet regarding GPG support (cf.
issue #5971 and PR Homebrew/brew#1335), I’d
still prefer for new casks to have `gpg` stanzas where detached
signatures are available (cf. PR #6185).

For details on the authenticity of the public key, see:

- https://support.1password.com/command-line-getting-started/#set-up-the-command-line-tool

- https://keybase.io/1password
@commitay commitay removed the awaiting maintainer feedback Issue needs response from a maintainer. label Sep 20, 2017
@commitay commitay merged commit fc01fd6 into Homebrew:master Sep 20, 2017
@Homebrew Homebrew locked and limited conversation to collaborators May 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants