#2427 Simplifying deployment parameter substitution.
Closed: migrated by dmoluguw. Opened by edewata.

Currently most deployment parameters are used with slot variables:

  • The default value needs to be specified in the default.cfg:
pki_master_crl_enable=True
  • A slot variable needs to be defined in pkislots.cfg:
MASTER_CRL_ENABLE_SLOT=[MASTER_CRL_ENABLE]
  • The slot variable gets assigned in pkiparser.py:
self.mdict['MASTER_CRL_ENABLE_SLOT'] = self.mdict['pki_master_crl_enable']
  • Then the parameter can finally be used (e.g. in CS.cfg):
ca.crl.MasterCRL.enable=[MASTER_CRL_ENABLE]

To troubleshoot a problem with a deployment parameter, first we'd have to search the deployment parameter itself, then find the slot variable, then search where the slot variable is used.

The current code actually already supports using deployment parameters without slot variables.

  • The default value still needs to be specified in the default.cfg:
pki_master_crl_enable=True
  • Then the parameter can be used directly (e.g. in CS.cfg):
ca.crl.MasterCRL.enable=[pki_master_crl_enable]

With this mechanism we can search where the deployment parameter is used directly.

Proposed change: To simplify troubleshooting the existing slot variables should be removed and replaced with direct parameter substitutions.


Metadata Update from @edewata:
- Issue set to the milestone: UNTRIAGED

Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new
issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.

This issue has been cloned to GitHub and is available here:
https://github.com/dogtagpki/pki/issues/2547

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

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

Metadata