Skip to content
Snippets Groups Projects
Verified Commit 6dacbdc3 authored by Mark's avatar Mark
Browse files

use hashing filter from passlib

parent dfb5ebe7
No related branches found
No related tags found
No related merge requests found
---
- name: Generate htpasswd hash
shell: openssl passwd -apr1 "{{ prometheus_basic_auth }}"
register: prometheus_passwd
- name: Create auth secret for basic auth
tags:
- prometheus
......@@ -17,7 +13,7 @@
namespace: "oas"
name: "prometheus-basic-auth"
data:
auth: "{{ ('admin:' + prometheus_passwd.stdout ) | b64encode }}"
auth: "{{ ('admin:' + (prometheus_basic_auth | password_hash('apr_md5_crypt')) + '\n') | b64encode }}"
- name: Create Kubernetes secret with prometheus settings
tags:
- config
......
......@@ -52,3 +52,4 @@ urllib3==1.25.8
wcwidth==0.1.8
websocket-client==0.57.0
zipp==3.1.0
passlib==1.7.2
......@@ -18,3 +18,4 @@ wheel>=0.33.1
pytz>=2019.1
-e git+https://open.greenhost.net/greenhost/cloud-api#egg=greenhost_cloud
-e git+https://open.greenhost.net/openappstack/oas_behave#egg=oas_behave
passlib>=1.7.2
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment