1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/changelogs/fragments
patchback[bot] 1676b09573
[PR #6122/e939cd07 backport][stable-6] redhat_subscription: use D-Bus for registration if possible (#6188)
redhat_subscription: use D-Bus for registration if possible (#6122)

subscription-manager currently does not have a way to get credentials
(username, password, activation keys, organization ID) in a secure way:
the existing command line parameters can be easily spotted when running
a process listing while 'subscription-manager register' runs.
There is a D-Bus service, which is used by e.g. cockpit and Anaconda to
interface with RHSM (at least for registration and common queries).

Try to perform the registration using D-Bus, in a way very similar to
the work done in convert2rhel [1] (with my help):
- try to do a simple signal test to check whether the system bus works;
  inspired by the login in the dconf module
- pass most of the options as registration options; for the few that are
  not part of the registration, execute 'subscription-manager' manually
- add quirks for differently working (or not) registration options for
  the D-Bus Register*() methods depending on the version of RHEL
- 'subscription-manager register' is used only in case the signal test
  is not working; silent fallback in case of D-Bus errors during the
  registration is not done on purpose to avoid silent fallback to a less
  secure registration

[1] https://github.com/oamg/convert2rhel/pull/540/

(cherry picked from commit e939cd07ef)

Co-authored-by: Pino Toscano <ptoscano@redhat.com>
2023-03-14 23:06:41 +01:00
..
.keep
4387-nmcli-mtu-for-vlan-connection-fix.yml [PR #6104/2dee3464 backport][stable-6] nmcli: fixed inability to change mtu on vlan connection (#6140) 2023-03-04 10:21:59 +01:00
6049-dconf-strings.yml [PR #6049/627371e2 backport][stable-6] dconf: Check for changes properly despite style of quotes used by user (#6145) 2023-03-05 11:49:43 +01:00
6112-fix_key_error_in_gitlab_runner_creation_update.yml [PR #6130/c077818c backport][stable-6] Fixes #6112: community.general.gitlab_runner KeyError: 'access_level' (#6142) 2023-03-04 10:38:59 +01:00
6114-memset-add-url-error-handling.yml [PR #6114/6cf67448 backport][stable-6] memset*.py: Fixed URLError handling (#6157) 2023-03-08 13:58:39 +01:00
6117-remove-stormssh-depend.yml [PR #6117/3862de3f backport][stable-6] Removes dependency on StormSSH (#6179) 2023-03-12 15:50:07 +01:00
6118-jail-plugin-fix-default-inventory_hostname.yml [PR #6118/9a97bc7c backport][stable-6] Add 'inventory_hostname' to the jail plugin documentation (#6137) 2023-03-03 23:10:59 +01:00
6119-opkg-update.yaml [PR #6119/345a6930 backport][stable-6] opkg: fix bug when update_cache=true (#6124) 2023-03-02 07:15:28 +01:00
6122-redhat_subscription-subscribe-via-dbus.yaml [PR #6122/e939cd07 backport][stable-6] redhat_subscription: use D-Bus for registration if possible (#6188) 2023-03-14 23:06:41 +01:00
6131-fix-interfaces_file-for-no-leading-spaces.yml [PR #6131/abcba9db backport][stable-6] Interfaces file spaces fix (#6169) 2023-03-09 20:31:08 +01:00
6138-fix-yarn-global.yml [PR #6138/3d67f518 backport][stable-6] Fix Yarn global not working without explicit executable path (#6141) 2023-03-04 10:21:50 +01:00
6160-add-command-make-output.yml [PR #6160/a49ad340 backport][stable-6] [make] Provide built command in the module output (#6186) 2023-03-14 21:03:54 +01:00