Cockpit 219

Cockpit is the modern Linux admin interface. We release regularly. Here are the release notes from version 219.

Logs: Improved filtering

Logs can now be filtered by keywords and free text. Keywords include units, time constraints, priority, and arbitrary journal fields. Dropdowns adjust the query string — so there’s no need to remember the most common journal keywords. Also, copying and pasting this query string across machines allows administrators to have a precise filtered view of logs.

A pause button has been included next to the filters, to pause the streaming of logs. When toggled, it changes to a resume button, letting you quickly switch back to a stream of incoming journal entries.

Additionally, log excerpts in other pages, such as those in Networking and Storage, now have links to view the the full journal in the Logs page with the same filter.

Journal Logs Filtering

Gain or drop administrative access in a running Cockpit session

Cockpit now allows more control over your access level. You can gain and drop administrative access in a running session, and Cockpit will remember the state for the next session.

This finally allows the user to do administrative actions without a password on the login page, such as when using smart card or Kerberos authentication, or ssh/Dashboard login with an SSH public key.

Cockpit respects the “sudo” configuration for your account. For example: When NOPASSWD is in your configuration, you don’t have to provide a password in Cockpit to gain administrative access. And if “sudo” is configured for two factor authentication, Cockpit will ask twice.

Cockpit only supports “sudo” to elevate the access level. If your custom Cockpit page relies on Polkit to grant access, you now need to use the superuser option for the relevant channels. For example, using the UDisks2 D-Bus API now has to look like this:

conn = cockpit.dbus("org.freedesktop.UDisks2", { superuser: "try" })

We plan to bring Polkit support back shortly.

Try it out

Cockpit 219 is available now: