Deprecate Symantec certificate plugin

This plugin has never been updated for 7 years. This plugin requires
the symantecssl library but the library can't be found in the Internet
and is not generally available. We have never tested it in upstream
CI because of lack of that dependent library.

Change-Id: I26493c2b0130f3cb86d866bd08fa5bbacbcc4725
This commit is contained in:
Takashi Kajinami 2023-11-08 01:19:45 +09:00
parent 2e89feed00
commit f1b68658d4
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.