Skip to content

Commit 2875bdb

Browse files
holliefaepriteau
authored andcommitted
Add loop control to custom DNF repos
This avoids leaking repository credentials by suppressing the dict output to only print the key. Change-Id: Ic7aa0e4c4f625908aeb30de65edac8bce96af761 Related-Bug: #2087938 (cherry picked from commit a36bb61) Signed-off-by: Pierre Riteau <pierre@stackhpc.com>
1 parent d755036 commit 2875bdb

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

ansible/roles/dnf/tasks/custom-repo.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
username: "{{ item.value.username | default(omit) }}"
2727
state: "{{ item.value.state | default(omit)}}"
2828
with_dict: "{{ dnf_custom_repos }}"
29+
loop_control:
30+
label: "{{ item.key }}"
2931
register: register_dnf_command
3032
retries: 3
3133
delay: 10
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
security:
3+
- |
4+
Avoid leaking DNF repository username/password credentials in the Kayobe
5+
output by adding loop control to print only the repository key.
6+
`LP#2087938 <https://launchpad.net/bugs/2087938>`__
7+
fixes:
8+
- |
9+
Avoid leaking DNF repository username/password credentials in the Kayobe
10+
output by adding loop control to print only the repository key.
11+
`LP#2087938 <https://launchpad.net/bugs/2087938>`__

0 commit comments

Comments
 (0)