]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: Refactor LinuxKeyringSecret into Keyring Interface
authorMarcel Lauhoff <marcel.lauhoff@clyso.com>
Thu, 18 Dec 2025 18:42:07 +0000 (19:42 +0100)
committerMarcel Lauhoff <marcel.lauhoff@clyso.com>
Mon, 1 Jun 2026 16:43:29 +0000 (18:43 +0200)
commit35f2bb4c11da480950dd653955f45f20815556e2
treecc1177e2aa1af2abfbea62e666602ae45fb4a8c2
parenta88f02959bb6d7125ebe878ecf796046b6b6f559
common: Refactor LinuxKeyringSecret into Keyring Interface

Goal: Support multiple backends and faking / mocking for testing.

Add abstract classes Keyring (factory) and KeyringSecret. Add
"Unsupported" implementation for non-Linux platforms. Add a get_best
factory function that currently returns the LinuxKeyring impl on Linux
or Unsupported elsewhere.

Signed-off-by: Marcel Lauhoff <marcel.lauhoff@clyso.com>
On-behalf-of: SAP marcel.lauhoff@sap.com
src/common/keyring.cc
src/common/keyring.h
src/test/common/test_keyring.cc