I have a Django app. I want it to get all needed secrets from Vault.
As I understood I need to use AppRole for this.
I created a role. But then I need to auth using hvac:
# App Role
client.auth_approle('MY_ROLE_ID', 'MY_SECRET_ID')
So I manually get role-id
and secret-id
, that's ok. The question is where do I store them?
- Can I store
role-id
simply in my git reposettings.py
file? - Where should I store
secret-id
?
UPD:
Actually secret-id
has it's own TTL. So when I restart my app how to get a new secret-id?