Merge "Deprecate Symantec certificate plugin"
This commit is contained in:
commit
6dc5a6c8d3
@ -22,21 +22,32 @@ from symantecssl.core import Symantec
|
|||||||
from symantecssl import exceptions as symantec_exceptions
|
from symantecssl import exceptions as symantec_exceptions
|
||||||
|
|
||||||
from barbican.common import config
|
from barbican.common import config
|
||||||
|
from barbican.common import utils
|
||||||
from barbican import i18n as u
|
from barbican import i18n as u
|
||||||
from barbican.plugin.interface import certificate_manager as cert
|
from barbican.plugin.interface import certificate_manager as cert
|
||||||
|
|
||||||
CONF = config.new_config()
|
CONF = config.new_config()
|
||||||
|
LOG = utils.getLogger(__name__)
|
||||||
|
|
||||||
symantec_plugin_group = cfg.OptGroup(name='symantec_plugin',
|
symantec_plugin_group = cfg.OptGroup(name='symantec_plugin',
|
||||||
title='Symantec Plugin Options')
|
title='Symantec Plugin Options')
|
||||||
|
|
||||||
symantec_plugin_opts = [
|
symantec_plugin_opts = [
|
||||||
cfg.StrOpt('username',
|
cfg.StrOpt('username',
|
||||||
|
deprecated_for_removal=True,
|
||||||
|
deprecated_reason=('Symantec certificate plugin has been '
|
||||||
|
'deprecated'),
|
||||||
help=u._('Symantec username for authentication')),
|
help=u._('Symantec username for authentication')),
|
||||||
cfg.StrOpt('password',
|
cfg.StrOpt('password',
|
||||||
|
deprecated_for_removal=True,
|
||||||
|
deprecated_reason=('Symantec certificate plugin has been '
|
||||||
|
'deprecated'),
|
||||||
help=u._('Symantec password for authentication'),
|
help=u._('Symantec password for authentication'),
|
||||||
secret=True),
|
secret=True),
|
||||||
cfg.StrOpt('url',
|
cfg.StrOpt('url',
|
||||||
|
deprecated_for_removal=True,
|
||||||
|
deprecated_reason=('Symantec certificate plugin has been '
|
||||||
|
'deprecated'),
|
||||||
help=u._('Domain of Symantec API'))
|
help=u._('Domain of Symantec API'))
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -62,6 +73,9 @@ class SymantecCertificatePlugin(cert.CertificatePluginBase):
|
|||||||
if self.url is None:
|
if self.url is None:
|
||||||
raise ValueError(u._("url is required"))
|
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):
|
def get_default_ca_name(self):
|
||||||
return "Symantec CA"
|
return "Symantec CA"
|
||||||
|
|
||||||
|
@ -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.
|
Loading…
x
Reference in New Issue
Block a user