SHA256
1
0
forked from cockpit/cockpit

Compare commits

..

6 Commits

Author SHA256 Message Date
416aa9163d
Add various patches for slfo-1.1
- suse_docs.patch: update documentation to point at new links (bsc#1226050)
- remove_rh_links.patch: remove additional hardcoded RH refs (bsc#1221336)
- hide-pcp.patch: correct patch to properly disable pcp on micro
  (bsc#1226049)
- suse-microos-branding.patch: use suse ID as branding instead of sle-micro
  (bsc#1227441)
2024-10-09 13:18:59 +01:00
Adam Majer
17cc1c2b4c Merge branch 'motd-otp' of https://src.opensuse.org/abrooks/cockpit
Fixed .changes
2024-10-09 12:46:08 +02:00
cb83e616ae
Add motd guidance for setting up otp 2024-10-01 10:52:34 +01:00
Jan Zerebecki
95f291257b
support optional TOTP for authentication
It requires a pam_oath in a version that implements the
no_usersfile_okay argument. Provisionally using 2.6.11.12 as a version
to indicate it, the patch is not yet merged upstream, but this is likely
a version upstream will not assign. Patch:
https://gitlab.com/oath-toolkit/oath-toolkit/-/merge_requests/42

Upstream: https://github.com/openSUSE/cockpit/pull/27
2024-09-18 17:18:43 +02:00
14257e4afc Remove Requires on pam_oath
Sync with github spec file
2024-08-20 15:25:05 +02:00
7a757b6f61 Re-add empty .changes entry separator 2024-08-20 15:21:42 +02:00
4 changed files with 32 additions and 1 deletions

10
0006-totp-motd.patch Normal file
View File

@ -0,0 +1,10 @@
--- a/src/systemd/inactive.motd
+++ b/src/systemd/inactive.motd
@@ -1,2 +1,7 @@
Activate the web console with: systemctl enable --now cockpit.socket
+Note: Cockpit disallows root login by default.
+To create a regular user and optionally enable 2FA run both:
+
+jeos-config user
+jeos-config otp

View File

@ -8,6 +8,22 @@ Wed Oct 9 12:14:14 UTC 2024 - Alice Brooks <alice.brooks@suse.com>
- suse-microos-branding.patch: use suse ID as branding instead of sle-micro
(bsc#1227441)
-------------------------------------------------------------------
Mon Sep 30 07:08:12 UTC 2024 - Alice Brooks <alice.brooks@suse.com>
- add 0006-totp-motd.patch for guidance to enabling totp to the mtod
-------------------------------------------------------------------
Wed Sep 18 12:37:18 UTC 2024 - Jan Zerebecki <jan.suse@zerebecki.de>
- support optional TOTP for authentication, requires pam_oath
-------------------------------------------------------------------
Tue Aug 20 13:24:06 UTC 2024 - Adam Majer <adam.majer@suse.de>
- remove requires on pam_oath completely. It will be re-introduced
later when it works with optional enrollment
-------------------------------------------------------------------
Mon Aug 20 11:44:33 UTC 2024 - Alice Brooks <alice.brooks@suse.com>
@ -40,6 +56,7 @@ Sat Aug 7 09:37:00 UTC 2024 - pallas wept <pallaswept@proton.me>
- Recommend cockpit-packagekit if zypper is installed
-------------------------------------------------------------------
Wed Aug 7 09:36:58 UTC 2024 - Jan Zerebecki <jan.suse@zerebecki.de>
- load pam_oath for optional TOTP for authentication

View File

@ -8,3 +8,4 @@ password include common-password
session required pam_loginuid.so
session optional pam_keyinit.so force revoke
session include common-session
auth [user_unknown=ignore success=ok] pam_oath.so usersfile=${HOME}/.pam_oath_usersfile no_usersfile_okay window=20 digits=6

View File

@ -68,6 +68,7 @@ Patch5: storage-btrfs.patch
# SLE Micro specific patches
Patch101: hide-pcp.patch
Patch102: 0002-selinux-temporary-remove-setroubleshoot-section.patch
Patch107: 0006-totp-motd.patch
# For anything based on SLES 15 codebase (including Leap, SLE Micro)
Patch103: 0004-leap-gnu18-removal.patch
Patch104: selinux_libdir.patch
@ -231,6 +232,7 @@ BuildRequires: python3-tox-current-env
%patch -P 4 -p1
%patch -P 5 -p1
%patch -P 106 -p1
%patch -P 107 -p1
# SLE Micro specific patches
%if 0%{?is_smo}
@ -530,6 +532,7 @@ Requires: cockpit-bridge >= %{version}-%{release}
Requires: shadow-utils
%endif
Requires: grep
Requires: jeos-firstboot
Requires: /usr/bin/pwscore
Requires: /usr/bin/date
Provides: cockpit-shell = %{version}-%{release}
@ -579,7 +582,7 @@ Suggests: sssd-dbus >= 2.6.2
%if 0%{?suse_version}
Requires(pre): permissions
Requires: distribution-logos
Requires: pam_oath
Requires: pam_oath >= 2.6.11.12
Requires: wallpaper-branding
%endif
# for cockpit-desktop