Bug 279942 - security/rubygem-cose: Unbreak security/rubygem-webauthn with OpenSSL 3.0 for GitLab
Summary: security/rubygem-cose: Unbreak security/rubygem-webauthn with OpenSSL 3.0 for...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Matthias Fechner
URL:
Keywords:
Depends on: 279980 279984
Blocks:
  Show dependency treegraph
 
Reported: 2024-06-24 09:22 UTC by ruben
Modified: 2024-06-27 12:08 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (mfechner)


Attachments
Upgrade security/rubygem-cose to 1.2.1 (1.55 KB, patch)
2024-06-24 09:22 UTC, ruben
no flags Details | Diff
security/rubygem-webauthn: Chase ruby-gem-cose 1.2.1 (1.19 KB, patch)
2024-06-24 09:24 UTC, ruben
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ruben 2024-06-24 09:22:53 UTC
Created attachment 251665 [details]
Upgrade security/rubygem-cose to 1.2.1

GitLab using security/rubygem-cose trough security/rubygem-webauthn required by GitLab will throw 500 internal server errors on FreeBSD 14 using OpenSSL.

This is caused by 

OpenSSL::PKey::PKeyError (pkeys are immutable on OpenSSL 3.0):
  
cose (1.2.0) lib/cose/key/ec2.rb:74:in `public_key='
cose (1.2.0) lib/cose/key/ec2.rb:74:in `to_pkey'

And has been addressed in rubygem-cose 1.2.1

https://github.com/cedarcode/cose-ruby/commit/28ee497fa7d9d49e72d5a5e97a567c0b58fdd822

Attached are patches for security/rubygem-cose and security/rubygem-webauthn
Comment 1 ruben 2024-06-24 09:24:15 UTC
Created attachment 251666 [details]
security/rubygem-webauthn: Chase ruby-gem-cose 1.2.1
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-06-27 04:50:14 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=14d3fff949f67684021be5a8e0c5244a6bddd520

commit 14d3fff949f67684021be5a8e0c5244a6bddd520
Author:     Ruben van Staveren <ruben@verweg.com>
AuthorDate: 2024-06-24 14:35:26 +0000
Commit:     Matthias Fechner <mfechner@FreeBSD.org>
CommitDate: 2024-06-27 04:39:00 +0000

    security/rubygem-cose: update to 1.2.1

    Fixes problem with openssl 3.0

    Changes:        https://github.com/cedarcode/cose-ruby/blob/master/CHANGELOG.md#v121---2022-07-03

    PR:             279942

 security/rubygem-cose/Makefile | 4 ++--
 security/rubygem-cose/distinfo | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)
Comment 3 Matthias Fechner freebsd_committer freebsd_triage 2024-06-27 12:08:57 UTC
Committed thanks.