]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-volume: add TPM2 token enrollment support for encrypted OSDs
authorGuillaume Abrioux <gabrioux@ibm.com>
Thu, 16 May 2024 15:47:19 +0000 (11:47 -0400)
committerGuillaume Abrioux <gabrioux@ibm.com>
Tue, 13 Aug 2024 13:12:42 +0000 (15:12 +0200)
commit73e9c6ce45be1b1d990b530e5639e0aa2c003e01
treea077dbb52f6816afc69f2a5aff097618b20e60fd
parentf83ac43ac4c9f2d41e2a3b24d681ec0dd08b3597
ceph-volume: add TPM2 token enrollment support for encrypted OSDs

This adds the required changes to ceph-volume and cephadm in order to support
deploying tpm2 token enrolled encrypted OSDs.

Adding `--with-tpm` when deploying with `--dmcrypt` will enroll a tpm2
token to the corresponding LUKS2 devices.

Example of a osd service spec:

```
service_type: osd
service_id: tpm2_osds
placement:
  host_pattern: '*'
spec:
  data_devices:
    paths:
      - /dev/sdb
  encrypted: true
  tpm2: true
```

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 88836135fd03d28131c58a7440f51de244076166)
28 files changed:
doc/ceph-volume/lvm/prepare.rst
doc/cephadm/services/osd.rst
src/ceph-volume/ceph_volume/__init__.py
src/ceph-volume/ceph_volume/devices/lvm/batch.py
src/ceph-volume/ceph_volume/devices/lvm/common.py
src/ceph-volume/ceph_volume/devices/raw/activate.py
src/ceph-volume/ceph_volume/devices/raw/common.py
src/ceph-volume/ceph_volume/devices/raw/list.py
src/ceph-volume/ceph_volume/devices/raw/prepare.py
src/ceph-volume/ceph_volume/objectstore/__init__.py
src/ceph-volume/ceph_volume/objectstore/baseobjectstore.py
src/ceph-volume/ceph_volume/objectstore/bluestore.py
src/ceph-volume/ceph_volume/objectstore/lvmbluestore.py
src/ceph-volume/ceph_volume/objectstore/rawbluestore.py
src/ceph-volume/ceph_volume/tests/conftest.py
src/ceph-volume/ceph_volume/tests/devices/lvm/test_prepare.py
src/ceph-volume/ceph_volume/tests/devices/raw/test_prepare.py
src/ceph-volume/ceph_volume/tests/objectstore/test_lvmbluestore.py
src/ceph-volume/ceph_volume/tests/objectstore/test_rawbluestore.py
src/ceph-volume/ceph_volume/tests/test_ceph_volume.py [new file with mode: 0644]
src/ceph-volume/ceph_volume/tests/util/test_disk.py
src/ceph-volume/ceph_volume/tests/util/test_encryption.py
src/ceph-volume/ceph_volume/tests/util/test_prepare.py
src/ceph-volume/ceph_volume/util/device.py
src/ceph-volume/ceph_volume/util/disk.py
src/ceph-volume/ceph_volume/util/encryption.py
src/python-common/ceph/deployment/drive_group.py
src/python-common/ceph/deployment/translate.py