Bug 1513620
| Summary: | Evm.log contains passwords | ||
|---|---|---|---|
| Product: | [oVirt] ovirt-engine-sdk-ruby | Reporter: | Juan Hernández <juan.hernandez> |
| Component: | Core | Assignee: | Juan Hernández <juan.hernandez> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Radim Hrazdil <rhrazdil> |
| Severity: | urgent | Docs Contact: | |
| Priority: | high | ||
| Version: | 4.1.12 | CC: | bugs, hhovsepy, jhardy, jprause, jrafanie, kseifried, lveyde, obarenbo |
| Target Milestone: | ovirt-4.1.8 | Flags: | rule-engine:
ovirt-4.1+
|
| Target Release: | 4.1.13 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 4.1.13 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1512977 | Environment: | |
| Last Closed: | 2017-12-11 16:31:25 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | RHEVM | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1512977 | ||
|
Description
Juan Hernández
2017-11-15 17:05:36 UTC
To verify create an script that creates a connection, and print it: ---8<--- require 'logger' require 'ovirtsdk4' # Create the connection to the server: connection = OvirtSDK4::Connection.new( url: 'https://engine42.local/ovirt-engine/api', username: 'admin@internal', password: 'redhat123', insecure: true, debug: true, log: Logger.new('test.log') ) # Print the connection: puts("connection.to_s: #{connection.to_s}") puts("connection.inspect: #{connection.inspect}") # Print a service: service = connection.system_service.vms_service puts("service.to_s: #{service.to_s}") puts("service.inspect: #{service.inspect}") # Close the connection to the server: connection.close --->8--- The result should *not* contain the password, should be the following: connection.to_s: #<OvirtSDK4::Connection:https://engine42.local/ovirt-engine/api> connection.inspect: #<OvirtSDK4::Connection:https://engine42.local/ovirt-engine/api> service.to_s: #<OvirtSDK4::VmsService:vms> service.inspect: #<OvirtSDK4::VmsService:vms> Verified that script suggested by Juan doesn't print out RHEVM credential. Used sdk version 4.2.0.beta2, RHVM 4.1.8.1-0.1.el7. |