Revert "Dell PowerFlex password appears in plain text when creating a volume"

This reverts commit 33661ece80.

Reason for revert: breaks reading password from the config file

Change-Id: I840d8c4d66daf0ab8636617b42cdb47dd4313cc9
This commit is contained in:
Yian Zong 2023-09-28 07:48:06 +00:00
parent 33661ece80
commit bbc732c40e
4 changed files with 1 additions and 18 deletions

View File

@ -17,8 +17,6 @@ from os_brick import opts
LOG = logging.getLogger(__name__)
SECURE_LOG = logging.getLogger('brick-privsep-hide-output')
SECURE_LOG.setLevel(logging.ERROR)
def setup(conf, **kwargs):

View File

@ -33,11 +33,3 @@ default = priv_context.PrivContext(
capabilities=capabilities,
logger_name=__name__,
)
brick_privsep_hide_output = priv_context.PrivContext(
__name__,
cfg_section='privsep_osbrick',
pypath=__name__ + '.default',
capabilities=capabilities,
logger_name='brick_privsep_hide_output',
)

View File

@ -74,7 +74,7 @@ def rescan_vols(op_code):
ioctl(fd, op_code, struct.pack('Q', 0))
@privileged.brick_privsep_hide_output.entrypoint
@privileged.default.entrypoint
def get_connector_password(filename, config_group, failed_over):
"""Read ScaleIO connector configuration file and get appropriate password.

View File

@ -1,7 +0,0 @@
---
fixes:
- |
`Bug #2003179 <https://bugs.launchpad.net/cinder/+bug/2003179>`_: Fixed
issue with the ScaleIO connector where privsep was logging
password in plaintext. This was fixed by creating a new logger for the
ScaleIO connector with default log level set to ERROR.