Bug 279942

Summary: security/rubygem-cose: Unbreak security/rubygem-webauthn with OpenSSL 3.0 for GitLab
Product: Ports & Packages Reporter: ruben
Component: Individual Port(s)Assignee: Matthias Fechner <mfechner>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (mfechner)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on: 279980, 279984    
Bug Blocks:    
Attachments:
Description Flags
Upgrade security/rubygem-cose to 1.2.1
none
security/rubygem-webauthn: Chase ruby-gem-cose 1.2.1 none

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.