Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fedora33: update-crypto-policies --set LEGACY #175

Closed
wants to merge 1 commit into from

Conversation

hswong3i
Copy link
Contributor

@hswong3i hswong3i commented Nov 6, 2020

Follow up for #173, where both files are still missing during initial vagrant up:

  • /etc/polkit-1/rules.d/49-vagrant.rules
  • /etc/ssh/sshd_config.d/10-vagrant-insecure-rsa-key.conf

In case it is SELinux related, at least chcon is just used for temporary changes but not as persistent as semanage fcontext should be.

@hswong3i
Copy link
Contributor Author

hswong3i commented Nov 6, 2020

@ladar something I had tried:

  • Install polkit in scripts/fedora33/dnf.sh: though out all provisioning (even until scripts/common/lockout.sh), both /etc/polkit-1/rules.d/49-vagrant.rules and /etc/ssh/sshd_config.d/10-vagrant-insecure-rsa-key.conf are existing with correct setup; BTW once vagrant up it rollback as nothing
  • Setting SELINUX=permissive: similar as above, also get rollback as SELINUX=enforcing after initial vagrant up

@hswong3i
Copy link
Contributor Author

hswong3i commented Nov 8, 2020

@ladar I checked with https://app.vagrantup.com/fedora/boxes/33-cloud-base, their patch exists and working during initial vagrant up, where vagrant ssh also working perfectly:

[vagrant@cheph9ohg3he-1 ~]$ sudo su -
[root@cheph9ohg3he-1 ~]# ls -la /etc/ssh/sshd_config.d/
total 16
drwx------. 2 root root 4096 Oct 19 23:41 .
drwxr-xr-x. 4 root root 4096 Nov  8 06:17 ..
-rw-r--r--. 1 root root  133 Oct 19 23:41 10-vagrant-insecure-rsa-key.conf
-rw-------. 1 root root 1002 Sep 29 14:03 50-redhat.conf
[root@cheph9ohg3he-1 ~]# cat /etc/ssh/sshd_config.d/10-vagrant-insecure-rsa-key.conf 
# For now the vagrant insecure key is an rsa key
# https://github.com/hashicorp/vagrant/issues/11783
PubkeyAcceptedKeyTypes=+ssh-rsa

@ladar
Copy link
Member

ladar commented Nov 10, 2020

I looked this over. I don't think its needed. It changes the file system contexts/permissions, but I don't think new context is correct for the given directories (if there is such a think as "correct").

My guess is the files aren't showing up is because your using the 3.1.0 boxes which don't have this change. About 24 hours ago I released the latest boxes (3.1.2) and based on my testing, they work just. These boxes contain theupdate-crypto-policies --set LEGACY fix.

A new set of boxes should be uploading over the next few days (aka 3.1.2, and some of those Fedora 33 boxes will have the newer fix. I think all, just not sure.

Either way, I'm kicking off the 3.1.6 today, and I know all of those boxes will have the current fix when they upload. So I'm gonna close this ticket. If you still have trouble once the 3.1.6 boxes upload, please reopen it.

@ladar ladar closed this Nov 10, 2020
@hswong3i
Copy link
Contributor Author

A new set of boxes should be uploading over the next few days (aka 3.1.2, and some of those Fedora 33 boxes will have the newer fix. I think all, just not sure.

Confirmed 3.1.2 including update-crypto-policies --set LEGACY fix:

$ vagrant box list | grep fedora33
generic/fedora33     (libvirt, 3.1.2)
$ vagrant ssh
Last login: Wed Nov 11 03:54:37 2020 from 192.168.121.1
[vagrant@ugaeg9geicuz-1 ~]$ sudo su -
Last login: Wed Nov 11 03:54:40 UTC 2020 on pts/0
[root@ugaeg9geicuz-1 ~]# update-crypto-policies --show
LEGACY

hswong3i added a commit to alvistack/ansible-role-ansible that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-audacious that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-audacity that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-bamboo that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-bitbucket that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-bleachbit that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-blender that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-bootstrap that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-buildah that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-catatonit that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-ceph_common that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-ceph_mds that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-ceph_mgr that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-ceph_mon that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-ceph_osd that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-ceph_rgw that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-chrome that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-chrony that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-clamav that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-containernetworking_plugins that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-code that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-confluence that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-conmon that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-containerd that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-node that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-openjdk that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-operator_sdk that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-packer that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-perforce that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-php that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-picard that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-podman that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-postfix that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-postgres that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-python that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-rclone that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-restic that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-runc that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-scribus that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-skopeo that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-sqlite that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-sshd that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-svn that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-swap that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-teamviewer that referenced this pull request Nov 11, 2020
hswong3i added a commit to pantarei/ansible-role-telegraf that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-thunderbird that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-timezone that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-transmission that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-uget that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-vagrant that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-vim that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-virtualbox that referenced this pull request Nov 11, 2020
hswong3i added a commit to alvistack/ansible-role-vlc that referenced this pull request Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants