Bug 1169099 - [RFE] secrets should be marked so near their definition
Summary: [RFE] secrets should be marked so near their definition
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RFEs
Version: ---
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-4.2.0
: 4.2.0
Assignee: Yedidyah Bar David
QA Contact: Jiri Belka
URL:
Whiteboard:
Depends On: 1472325
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-30 10:04 UTC by Yedidyah Bar David
Modified: 2019-04-28 13:17 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-20 10:51:48 UTC
oVirt Team: Integration
Embargoed:
sbonazzo: ovirt-4.2?
pstehlik: testing_plan_complete-
ylavi: planning_ack?
sbonazzo: devel_ack+
lsvaty: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 79345 0 master MERGED packaging: setup: Use is_secret 2017-08-22 09:28:13 UTC

Description Yedidyah Bar David 2014-11-30 10:04:25 UTC
Description of problem:

While thinking about what work bug 1169098 will require, I also thought about whether we have there new secrets to manage/filter/obfuscate/etc. I think that if at all possible, code doing that for secrets (e.g. in log-collector, populating otopi's LOG_FILTER_KEYS in setup, etc) should be able to use meta-data defined near the key definitions, e.g. having  something like:

    @osetupattrs(
        secret=True,
    )
    def STORE_PASS(self):
        return 'OVESETUP_PKI/storePassword'

Comment 1 Yaniv Kaul 2017-06-07 22:00:26 UTC
Closing old RFEs.

Comment 2 Yedidyah Bar David 2017-06-08 06:36:54 UTC
I'd rather fix it. Not sure it's easy to do for both engine-setup and log-collector at once, but doing for engine-setup-only should be easy, and would have helped prevent e.g. bug 1371613 and bug 1363816. Once we do that, I also thought it will be useful to automatically filter in otopi every env key whose name includes 'password', 'secret', 'private', etc., unless proactively un-filtered (which will require a bit more work, but not much).

Comment 3 Yaniv Kaul 2017-06-20 14:22:53 UTC
(In reply to Yedidyah Bar David from comment #2)
> I'd rather fix it. Not sure it's easy to do for both engine-setup and
> log-collector at once, but doing for engine-setup-only should be easy, and
> would have helped prevent e.g. bug 1371613 and bug 1363816. Once we do that,
> I also thought it will be useful to automatically filter in otopi every env
> key whose name includes 'password', 'secret', 'private', etc., unless
> proactively un-filtered (which will require a bit more work, but not much).

If you have the resources, I'm fine with fixing it.

Comment 4 Yedidyah Bar David 2017-08-22 09:38:04 UTC
Only user-visible change is that OVESETUP_CONFIG/remoteEngineHostRootPassword should now be added to CORE/logFilterKeys a tiny bit earlier (as can be seen in the engine-setup log file).

Comment 5 Jiri Belka 2017-10-27 12:15:49 UTC
ok, ovirt-engine-setup-4.2.0-0.0.master.20171012160334.git6fb4578.el7.centos.noarch

4.2

2017-10-13 15:08:45,060+0200 DEBUG otopi.plugins.otopi.core.log log._validation:384 _filtered_keys_at_setup: ['OVESETUP_DWH_DB/password', 'OVESETUP_DB/password', 'OVESETUP_CONFIG/remoteEngineHostRootPassword', 'OVESETUP_DB/password', 'OVESETUP_PKI/storePassword', 'OVESETUP_CONFIG/adminPassword', 'OVESET
UP_OVN/ovirtProviderOvnSecret']

vs

4.1

2016-08-20 00:08:58 DEBUG otopi.context context.dumpEnvironment:770 ENV CORE/logFilterKeys=list:'['OVESETUP_DB/password', 'OVESETUP_DWH_DB/password', 'OVESETUP_DB/password', 'OVESETUP_CONFIG/adminPassword', 'OVESETUP_PKI/storePassword', 'OVESETUP_CONFIG/remoteEngineHostRootPassword']'

Comment 6 Sandro Bonazzola 2017-12-20 10:51:48 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.