Skip to content

Commit 1206569

Browse files
committed
Patch Vagrant not to use ed25519 keys
1 parent 1fdc4a4 commit 1206569

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ jobs:
5656
python-version: '3.12'
5757
- name: Setup libvirt for Vagrant
5858
uses: voxpupuli/setup-vagrant@v0
59+
- name: Patch Vagrant not to use ed25519 keys
60+
# Vagrant tries to use ed25519 over rsa, but ed25519 is not allowed when we run in FIPS mode
61+
# As we enable FIPS *after* the initial VM start, Vagrant has already decided to use ed25519
62+
if: matrix.security == 'fips'
63+
run:
64+
sudo sed -i '/PREFER_KEY_TYPES/ s/"ssh-ed25519".freeze => :ed25519, //' /usr/lib/x86_64-linux-gnu/rubygems-integration/*/gems/vagrant-*/lib/vagrant/util/keypair.rb
5965
- name: Install Ansible
6066
run: pip install --upgrade ansible-core
6167
- name: Setup environment

0 commit comments

Comments
 (0)