#1059924 should we actually ship sudo_logsrvd

Package:
sudo
Source:
sudo
Description:
Provide limited super user privileges to specific users
Submitter:
Marc Haber
Date:
2024-01-14 18:42:03 UTC
Severity:
normal
#1059924#5
Date:
2024-01-03 18:12:43 UTC
From:
To:
Dear Team,

it has recently come to my attention that the sudo package contains
sudo_logsrvd, a daemon which can collect event and "I/O logs" from sudo.
Judging from the SECURITY NOTES in sudo(8), this means logging the
complete input and output of a command invoked via sudo.

In #1059896, Tolimar suggests adding OpenSSL support so that the
input/output is not send unencrypted over the network. The more I think
about this the more we need to do. At the current state, the package
doesn't conform to what I expect of a Debian package.

Should we:

(1)
remove sudo_logsrvd from the package with no replacement?

(2)
move sudo_logsrvd to its own package with proper systemd unit etc bla
foo

(3)
continue shipping an unconfigured daemon without execution
infrastructure even to clients that will never run it

and (orthogonal to the upper options)

(a)
continue to ship things wihout OpenSSL

(b)
enable OpenSSL, pulling in an additional dependency also for sudo

That leaves us the choice (1), (2a), (2b), (3a), (3b)

I currently don't see myself in a position to provide proper support for
Options (2b) and (3b), and while (2a) is considerably easier it's
probably beyond my current personal limits as well. So, if things are
going to continue that I am the one doing the bulk of the work, we're
probably stuck with (1) or (2a).

An independent solution would be to continue shipping sudo.deb in a
minimal configuration, and having a new sudo-extended.deb that can
support plugins, SSL, bells and whistles, but just with supported sudo
=> sudo-extended migration path and explicitly not providing a migration
path back from sudo-extended to plain sudo. But all this can only be
done after sudo-ldap is gone as this is a horrible mess to package that
we NEED to get rid of.

I'd like to hear your comments.

Greetings
Marc

#1059924#10
Date:
2024-01-14 18:31:41 UTC
From:
To:
Hi!

* Marc Haber <mh+debian-packages@zugschlus.de> [240103 19:12]:


That sounds like a good idea, given that it is not a very common use
case.

I can start to work on that solution.

I willing to help get sudo-logsrvd and sudo-extendended packaged.
Looking at the package... My first instinct would be to extend sudo-ldap
with openssl, and split sudo-logsrvd from that package, and then rename
sudo-ldap to sudo-extended.

However I'm not using sudo with ldap and never used that package.  Would
that be a valid approach?  Or anything else I can help with helping with
the getting rid of sudo-ldap?


Best regards,
  Alexander