Merge "Deprecate Symantec certificate plugin"

This commit is contained in:
Zuul 2023-11-22 09:42:44 +00:00 committed by Gerrit Code Review
commit 6dc5a6c8d3
2 changed files with 21 additions and 0 deletions

View File

@ -22,21 +22,32 @@ from symantecssl.core import Symantec
from symantecssl import exceptions as symantec_exceptions
from barbican.common import config
from barbican.common import utils
from barbican import i18n as u
from barbican.plugin.interface import certificate_manager as cert
CONF = config.new_config()
LOG = utils.getLogger(__name__)
symantec_plugin_group = cfg.OptGroup(name='symantec_plugin',
title='Symantec Plugin Options')
symantec_plugin_opts = [
cfg.StrOpt('username',
deprecated_for_removal=True,
deprecated_reason=('Symantec certificate plugin has been '
'deprecated'),
help=u._('Symantec username for authentication')),
cfg.StrOpt('password',
deprecated_for_removal=True,
deprecated_reason=('Symantec certificate plugin has been '
'deprecated'),
help=u._('Symantec password for authentication'),
secret=True),
cfg.StrOpt('url',
deprecated_for_removal=True,
deprecated_reason=('Symantec certificate plugin has been '
'deprecated'),
help=u._('Domain of Symantec API'))
]
@ -62,6 +73,9 @@ class SymantecCertificatePlugin(cert.CertificatePluginBase):
if self.url is None:
raise ValueError(u._("url is required"))
LOG.warning('Symantec certificate plugin has been deprecated and '
'will be removed in a future release.')
def get_default_ca_name(self):
return "Symantec CA"

View File

@ -0,0 +1,7 @@
---
deprecations:
- |
The Symantec certificate plugin has been deprecated, because lack of
maintenance activity of the plugin. Also the symantecssl python library
is not generally available and the plugin has never been tested in
upstream.