#5574 Sysrestore did not restore state if a key is specified in mixed case
Closed: Fixed None Opened 8 years ago by mbasti.

When DNSSEC master is installed on server, after uninstallation state

[ods-enforcerd]
kasp_db_configured = True

is still there, even if uninstaller tries to remove it with restore_state().

This is caused by mixed case of "KASP_DB_configured" that is used in code (see that this has been saved as lower case in statefile). When I changed this value to lower case in code, it worked.

Possible solutions:

  1. fix sysrestore
  2. change key "KASP_DB_configured" to lower case and allow to store only keys in lower case

Sysrestore state 'kasp_db_configured' giving information that OpenDNSSEC database kasp.db has been created. This database must be created only once, it contains metadata for DNSSEC keys. Reinitialization of kasp.sb database will cause lost of those information and DNSSEC keys will not be rotated, respectively new keys will be generated.

This bug causes that installer receives information that kasp.db has not been initialized yet and installer will recreate it. This may happen when user is reinstalling DNS subsystem.

master:

  • 129d97c Allow to used mixed case for sysrestore

ipa-4-3:

  • 44796fd Allow to used mixed case for sysrestore

ipa-4-2:

  • 2fce8fd Allow to used mixed case for sysrestore

Metadata Update from @mbasti:
- Issue assigned to mbasti
- Issue set to the milestone: FreeIPA 4.2.4

7 years ago

Login to comment on this ticket.

Metadata