Bug 1683353
| Summary: | Sensitive variables are in plaintext on bastion | ||
|---|---|---|---|
| Product: | [oVirt] ovirt-engine-metrics | Reporter: | Jan Zmeskal <jzmeskal> |
| Component: | Generic | Assignee: | Shirly Radco <sradco> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Ivana Saranova <isaranov> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 1.2.0.2 | CC: | aoconnor, bugs, dfediuck, lleistne |
| Target Milestone: | ovirt-4.2.8-4 | Flags: | sradco:
ovirt-4.2?
sradco: ovirt-4.3? lleistne: testing_ack+ |
| Target Release: | 1.2.2.2 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-06-03 07:56:01 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Metrics | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1683287 | ||
| Bug Blocks: | |||
|
Description
Jan Zmeskal
2019-02-26 16:17:31 UTC
Steps to Reproduce: 1. Prepare your configs according to official documentation 2. Specify all the sensitive variables in ansible-vault protected file 3. Run ANSIBLE_JINJA2_EXTENSIONS="jinja2.ext.do" ./configure_ovirt_machines_for_metrics.sh \ --playbook=ovirt-metrics-store-installation.yml --ask-vault-pass 4. SSH to newly-created bastion 5. Inspect content of vars.yaml Result: Root_password is still in the vars.yaml in plaintext. Verified in: ovirt-engine-4.2.8.5-0.1.el7ev.noarch ovirt-engine-metrics-1.2.1.3-1.el7ev.noarch Also verified in: ovirt-engine-4.3.3.1-0.1.el7.noarch ovirt-engine-metrics-1.2.1.3-1.el7ev.noarch > Verified in:
> ovirt-engine-4.2.8.5-0.1.el7ev.noarch
> ovirt-engine-metrics-1.2.1.3-1.el7ev.noarch
>
> Also verified in:
> ovirt-engine-4.3.3.1-0.1.el7.noarch
> ovirt-engine-metrics-1.2.1.3-1.el7ev.noarch
Sorry for mistake, should be just
Tested in:
ovirt-engine-4.2.8.5-0.1.el7ev.noarch
ovirt-engine-metrics-1.2.1.3-1.el7ev.noarch
Also tested in:
ovirt-engine-4.3.3.1-0.1.el7.noarch
ovirt-engine-metrics-1.2.1.3-1.el7ev.noarch
Steps to Reproduce: 1. Prepare your configs according to official documentation 2. Specify all the sensitive variables in ansible-vault protected file 3. Run ANSIBLE_JINJA2_EXTENSIONS="jinja2.ext.do" ./configure_ovirt_machines_for_metrics.sh \ --playbook=ovirt-metrics-store-installation.yml --ask-vault-pass 4. SSH to newly-created bastion 5. Inspect content of vars.yaml Result: Playbook fails on this: https://bugzilla.redhat.com/show_bug.cgi?id=1697521 Tested in: ovirt-engine-metrics-1.3.0.1-1.el7ev.noarch ovirt-engine-4.3.3.1-0.1.el7.noarch Steps to Reproduce: 1. Prepare your configs according to official documentation 2. Specify all the sensitive variables in ansible-vault protected file 3. Run ANSIBLE_JINJA2_EXTENSIONS="jinja2.ext.do" ./configure_ovirt_machines_for_metrics.sh \ --playbook=ovirt-metrics-store-installation.yml --ask-vault-pass 4. SSH to newly-created bastion 5. Inspect content of vars.yaml Result: Playbook finishes successfully. There are no passwords in plaintext on the bastion machine. Verified in: ovirt-engine-4.2.8.5-0.1.el7ev.noarch ovirt-engine-metrics-1.2.2.2-1.el7ev.noarch Also verified in: ovirt-engine-4.3.3.1-0.1.el7.noarch ovirt-engine-metrics-1.3.0.1-1.el7ev.noarch |