Skip to content

AP-776: Fix "pkeys are immutable on OpenSSL 3.0" error when connecting to LBNL#5

Merged
danschmidt5189 merged 1 commit into
mainfrom
AP-776-openssl_3.0_too_good
Jul 8, 2026
Merged

AP-776: Fix "pkeys are immutable on OpenSSL 3.0" error when connecting to LBNL#5
danschmidt5189 merged 1 commit into
mainfrom
AP-776-openssl_3.0_too_good

Conversation

@danschmidt5189

@danschmidt5189 danschmidt5189 commented Jul 8, 2026

Copy link
Copy Markdown
Member

The functional change here is just bumping net-ssh and net-sftp:

net-ssh 6.1.0 -> 7.1.3
net-sftp 3.0.0 -> 4.0.0

I tested both the LBNL and GOBI downloaders in the Swarm—they work. This suggests that GOBI may have updated its SFTP server, so I'm going to test out removing our added config for their outdated kex algo.

@danschmidt5189 danschmidt5189 marked this pull request as ready for review July 8, 2026 17:35
@danschmidt5189 danschmidt5189 force-pushed the AP-776-openssl_3.0_too_good branch 2 times, most recently from 8ac2792 to 7ec6da5 Compare July 8, 2026 18:03
@danschmidt5189 danschmidt5189 requested a review from awilfox July 8, 2026 18:07

@awilfox awilfox left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

r+! Glad to see that OpenSSL 3 support was merged into the upstream gems. That's a lot easier than trying to fix it ourselves. Thanks for checking.

ensure
old_lbnl_filename.nil? ? ENV.delete('LBNL_FILENAME') : ENV['LBNL_FILENAME'] = old_lbnl_filename
end

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice, this will make future testing easier (as I always had to remember to set that environment variable locally).

# correctly) refuse. If you want to test manually, then for now you must
# explicitly allow the old algorithm by passing the following option to your
# sftp client: `-oKexAlgorithms=+diffie-hellman-group1-sha1`.
opts[:append_all_supported_algorithms] = true

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is fantastic!

- Bumps net-ssh/sftp to fix that error.
- Resolves issue connecting to LBNL.
- Removes special KEX configuration for GOBI
  which is no longer required.
@danschmidt5189 danschmidt5189 force-pushed the AP-776-openssl_3.0_too_good branch from 7ec6da5 to 87e3999 Compare July 8, 2026 18:13
@danschmidt5189 danschmidt5189 merged commit 809ab95 into main Jul 8, 2026
2 checks passed
@danschmidt5189 danschmidt5189 deleted the AP-776-openssl_3.0_too_good branch July 8, 2026 18:13
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.

2 participants