# New Deployment on Kubernetes (Error regarding secret\_key)

**URL:** <https://forum.ansible.com/t/new-deployment-on-kubernetes-error-regarding-secret-key/36637>\
**Category:** AWX Project\
**Tags:** awx, kubernetes\
**Created:** [May 17, 2022, 10:55am UTC](https://forum.ansible.com/t/new-deployment-on-kubernetes-error-regarding-secret-key/36637 "2022-05-17T10:55:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dane\_DeValcourt](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@Dane\_DeValcourt](https://forum.ansible.com/u/Dane_DeValcourt)\
**Post date:** [May 17, 2022, 10:55am UTC](https://forum.ansible.com/t/new-deployment-on-kubernetes-error-regarding-secret-key/36637/1 "2022-05-17T10:55:14Z")

</div>

I was doing a fresh install of AWX 21 operator on Kubernetes with external postgres DB and had it working on Friday night.

I then went to try fixing LDAP yesterday, redeployed and starting getting errors related to the secret key.

**_ERROR [-] awx.main.utils.encryption Failed to decrypt `Setting(pk=5).value`; if you’ve recently restored from a database backup or are running in a clustered environment, check that your `SECRET_KEY` value is correct_**

I can cat the secret key on task and get it. I can configure the secret key in my spec and then reapply but it keeps complaining about it. If I redeploy the secret key changes so my spec becomes outdated.

I obviously don’t understand this behavior and what I’m doing wrong but I can’t seem to get past this.

Any advice on this would be appreciated.
