how to decrypt ansible vault httppassword that is set for django site

Viewed 20

I am very new to Ansible vaults, I am a developer trying to access django site but there is a basic auth window pops up asking me to enter username and password before I can access the site, I asked the company that developed it and they suggested me to decrypt the below ansible vault for it, below are the steps I tried:

Basic auth

k8s_container_htpasswd: !vault |
  $ANSIBLE_VAULT;1.1;AES256
  33646232363535613765323564653861663464383261306630326161326564346533346364666539
  3563323661333661363361623731366363383666643366370a393864303239303230623933326132
  62393466393036393837396562646362613331336366666132626562376438643535333430663934
  6537633864333962360a396564393035313564383730613465363762363866323766336163643030
  65623064323137373231323639313834326661393362363033396137353539376236616434333262
  64653833343463306362343637323663663463383966653866

here is what I tried:

$ ansible localhost -e '@/home/delphini/dash-123/dashboard/deploy/group_vars/staging_shared.yml' --ask-vault-pass -m debug -a 'var=k8s_container_htpasswd'

I entered the 64 characters length password and the output is below

[WARNING]: No inventory was parsed, only implicit localhost is available
localhost | SUCCESS => {
    "k8s_container_htpasswd": "staging:$jun1$YRfgzEhO$c/iY6BSItTJhYhSOIaXmK."
}

so the username is: staging

password: $jun1$YRfgzEhO$c/iY6BSItTJhYhSOIaXmK.

but this username and password isn't working, am I doing something wrong? is there something else that I can try?

stack is Django, Docker, AWS EKS & ECR deployed in a private VPC.

0 Answers
Related