~vcs-imports/gnome-settings-daemon/+git/gnome-settings-daemon:rhel/account-and-subman-plugins

Last commit made on 2021-04-13
Get this branch:
git clone -b rhel/account-and-subman-plugins https://git.launchpad.net/~vcs-imports/gnome-settings-daemon/+git/gnome-settings-daemon

Branch merges

Branch information

Name:
rhel/account-and-subman-plugins
Repository:
lp:~vcs-imports/gnome-settings-daemon/+git/gnome-settings-daemon

Recent commits

0e8ebc3... by Ray Strode <email address hidden>

subman: Clean up notification behavior

Notifications were only displayed for some status transitions.

This commit introduces some booleans based on the old and new
statuses to make the code clearer and to make it easier to hit
all the cases.

00eaf6c... by Ray Strode <email address hidden>

subman: Drop "LAST" from status enum

It's unused, so get rid of it.

0eee8c4... by Ray Strode <email address hidden>

subman: Improve subscription status handling

This commit improves how subscription-manager status is
parsed to give more detailed information about subscription
state.

7f4e3d1... by Ray Strode <email address hidden>

subman: Add DBus API to subscribe for updates on already registered system

It's possible an admin may have registered their system without
attaching any subscriptions to it.

At the moment, gnome-settings-daemon only provides a way to register
and subscribe in one step.

This commit adds an API to support doing the last half of the process
on its own.

0b95768... by Ray Strode <email address hidden>

subman: Fix some build warnings

b636705... by Ray Strode <email address hidden>

subman: Add new no-installed-products state

It's possible, though unlikley, the system has
no packages installed from Red Hat supported package sets.

This commit adds a new state to track that situation.

3531b69... by Ray Strode <email address hidden>

subman: Don't treat failure to attach as fatal

Many organizations don't require specific subscriptions to get
updates (called "simple content access"). At the moment,
those systems get an error when registering.

This commit quiets the error.

9644be0... by Ray Strode <email address hidden>

subman: Don't send secrets through command line

The command line is introspectable with "ps", and it even gets logged
to syslog, so it's not suitable for passing secrets.

Unfortunately, the user's password is currently passed.

This commit addresses that problem by passing the password through
stdin, instead.

5fcc454... by Ray Strode <email address hidden>

subman: Force re-subscribe if the admin already subscribed

It's possible for an admin to to half-enroll the system with RHN,
using the CLI tools.

Meaning, it's possible for them to register the system with the
service, but not attach to a purchased license for the machine,
the, so called, entitlements.

The subman module always does both halves of the registration process
in lock step. This means, if an admin tries to register using GNOME
while in a half-registered state, subman will fail because the first
step, the registration step, is already finished.

This commit addresses that problem by trying to unregister up front
before registering.

c67e46c... by Ray Strode <email address hidden>

subman: Handle subscription-manager giving invalid status better

subscription-manager potentially returns status messages that the
subman plugin treats as enum values translated in some unknown
other language. It could be tied to system locale, or due to a
caching bug a previous locale used.

This commit tries to work around that bug, by instead relying on
the GetUUID() method and valid attribute. If there's no UUID we
know the system is unregistered. If there's a UUID but the valid
attribute is FALSE we know the system is registered, but hasn't
got proper entitlements.