-
Notifications
You must be signed in to change notification settings - Fork 165
[NOTEST][WIP]initial commit with vault+sprout integration via dynaconf #9402
base: master
Are you sure you want to change the base?
Conversation
fbaf419
to
288dbd1
Compare
"""Log into Vault, renew the token, and return the Vault client""" | ||
vault = Client(url=url, token=token, verify=False) | ||
if not vault.is_authenticated(): | ||
return None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't it login in this case ?
from dynaconf import LazySettings | ||
from hvac import Client | ||
|
||
VAULT_APPROLE = 'cfme-qe-infra' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd turn all this stuff into class
# and VAULT_SKIP_VERIFY=true to disable ssl verification | ||
|
||
echo 'login with kerberos - make sure you are admin by reading listed policies' | ||
vault login -method=ldap -tls-skip-verify=true username=<user> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't it ask for this value or look for it in env variables ?
from cfme.utils.log import logger | ||
from sprout.vault.vault import settings | ||
|
||
providers_data = conf.cfme_data.get("management_systems", {}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sprout is deployed along with test framework. do we really need to add it's own providers and vault files ?
Purpose or Intent