#7518 Improve Custodia client and key distribution handling
Closed: fixed 5 years ago Opened 5 years ago by cheimes.

Problem description

When a replica is installed, a new set of Custodia keys are create locally. The public keys are uploaded to the local 389-DS instance. Then Custodia waits until it sees the keys on its replication peer. For busy systems, replication can talk a while. In worst case, the installer runs into a timeout.

Further more, the installer creates multiple instances of the Custodia client object. In the replica promotion case with CA setup, some parts talk to a Custodia instance on replica master, other instances to Custodia instance on the CA replica master. Replica and CA replica can be different hosts.

Fix

Installers now pass a single CustodiaInstance object around, instead of creating new instances on demand. In case of replica promotion with CA, the instance gets all secrets from a master with CA present. Before, an installer created multiple instances and may have requested CA key material from a different machine than DM password hash.

In case of Domain Level 1 and replica promotion, the CustodiaInstance no longer adds the keys to the local instance and waits for replication to other replica. Instead the installer directly uploads the new public keys to the remote 389-DS instance.

Without promotion, new Custodia public keys are still added to local 389-DS over LDAPI.


Metadata Update from @cheimes:
- Issue assigned to cheimes

5 years ago

Metadata Update from @cheimes:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/1860

5 years ago

Metadata Update from @pvoborni:
- Issue set to the milestone: FreeIPA 4.5.5 (was: FreeIPA 4.5)

5 years ago

master:

  • 994f71a Use single Custodia instance in installers

ipa-4-6:

  • a0cdeb6 Use single Custodia instance in installers

ipa-4-5:

  • 0e42fb9 Use single Custodia instance in installers

Metadata Update from @cheimes:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

5 years ago

Metadata Update from @pvoborni:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1577108

5 years ago

master:

  • 5333073 Use one Custodia peer to retrieve all secrets

ipa-4-6:

  • a3d3890 Use one Custodia peer to retrieve all secrets

ipa-4-5:

  • d3c09a6 Use one Custodia peer to retrieve all secrets

master:

  • dcaa62f Test for improved Custodia key distribution

ipa-4-6:

  • 59f31f5 Test for improved Custodia key distribution

ipa-4-5:

  • 5eef5b7 Test for improved Custodia key distribution

ipa-4-6:

  • b9beda3 Fix KRA replica installation from CA master

ipa-4-5:

  • fd5f000 Fix KRA replica installation from CA master

master:

  • 530da69 Fix KRA replica installation from CA master

Login to comment on this ticket.

Metadata