Skip to content

Commit ff84006

Browse files
committed
Patch Vagrant not to use ed25519 keys
1 parent 60b55aa commit ff84006

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
@@ -63,6 +63,12 @@ jobs:
6363
python-version: '3.12'
6464
- name: Setup libvirt for Vagrant
6565
uses: voxpupuli/setup-vagrant@v0
66+
- name: Patch Vagrant not to use ed25519 keys
67+
# Vagrant tries to use ed25519 over rsa, but ed25519 is not allowed when we run in FIPS mode
68+
# As we enable FIPS *after* the initial VM start, Vagrant has already decided to use ed25519
69+
if: matrix.security == 'fips'
70+
run:
71+
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
6672
- name: Install Ansible
6773
run: pip install --upgrade ansible-core
6874
- name: Setup environment

0 commit comments

Comments
 (0)