vault: Depreecate ineffective use_ssl option

This option has never been used since the driver was added.

Change-Id: I64b3e5080c6a5637b2354c2fb4b99fd1ef8e88df
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2026-01-27 19:26:41 +09:00
parent 5d6541cdf2
commit 57ecda45b6
3 changed files with 11 additions and 3 deletions
@@ -69,6 +69,8 @@ _vault_opts = [
help='Absolute path to ca cert file'),
cfg.BoolOpt('use_ssl',
default=False,
deprecated_for_removal=True,
deprecated_reason='This option has no effect.',
help=_('SSL Enabled/Disabled')),
cfg.StrOpt("namespace",
help=_("Vault Namespace to use for all requests to Vault. "
+4 -3
View File
@@ -12,10 +12,11 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from stevedore import ExtensionManager
import warnings
from oslo_config import cfg
from oslo_log import log
from stevedore import ExtensionManager
from castellan import key_manager
from castellan.key_manager import barbican_key_manager as bkm
@@ -126,8 +127,8 @@ def set_defaults(conf, backend=None, barbican_endpoint=None,
conf.set_default('ssl_ca_crt_file', vault_ssl_ca_crt_file,
group=vkm._VAULT_OPT_GROUP)
if vault_use_ssl is not None:
conf.set_default('use_ssl', vault_use_ssl,
group=vkm._VAULT_OPT_GROUP)
warnings.warning('use_ssl option is deprecated',
category=DeprecationWarning)
if vault_namespace is not None:
conf.set_default('namespace', vault_namespace,
group=vkm._VAULT_OPT_GROUP)
@@ -0,0 +1,5 @@
---
deprecations:
- |
The ``[vault] use_ssl`` option has been deprecated. The option has had
no effect.