# Ext KVDB with Password authentication

**URL:** <https://forums.portworx.com/t/ext-kvdb-with-password-authentication/528>\
**Category:** Portworx on Kubernetes\
**Tags:** kvdb\
**Created:** [August 31, 2020, 9:10pm UTC](https://forums.portworx.com/t/ext-kvdb-with-password-authentication/528 "2020-08-31T21:10:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Boobalan\_Rathinam](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.portworx.com/boobalan_rathinam/32/205_2.png) [@Boobalan\_Rathinam](https://forums.portworx.com/u/Boobalan_Rathinam)\
**Post date:** [August 31, 2020, 9:10pm UTC](https://forums.portworx.com/t/ext-kvdb-with-password-authentication/528/1 "2020-08-31T21:10:04Z")

</div>

Hello Portworx team,

We (Spectro Cloud) are evaluating Portworx integration for use with our kubernetes provisioning solution and would like to get your support on this.

**Use case:**  
Portworx with External etcd which uses Password authentication

**Problem description:**  
While generating manifest through px-central for the use case mentioned above, the wizard provides instructions on how to create the secret manually.

```
kubectl -n kube-system create secret generic px-kvdb-auth \
  --from-literal=username=<etcd-username> \
  --from-literal=password=<etcd-password>

```

But, this secret is not used anywhere in the generated manifests. So, i wanted to check if this step to manually generate secret can be skipped safely ?

Thanks for looking into this in advance.

- Boobalan.R

---

<div class="post-metadata">

**Author:** ![adityadani](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.portworx.com/adityadani/32/128_2.png) [@adityadani](https://forums.portworx.com/u/adityadani)\
**Post date:** [September 4, 2020, 6:10pm UTC](https://forums.portworx.com/t/ext-kvdb-with-password-authentication/528/2 "2020-09-04T18:10:01Z")

</div>

Hi @Boobalan_Rathinam

Thanks for reporting the issue. There seems to be a problem with our spec generator which is not adding the required fields to the DaemonSet spec when Password Auth is selected.

We will fix this ASAP and report here once it has been handled. Until then can you add the following section to the environment variables in the DaemonSet

```auto
            - name: "AUTO_NODE_RECOVERY_TIMEOUT_IN_SECS"
              value: "1500"
            - name: "PX_TEMPLATE_VERSION"
              value: "v4"
# Add the following two variables
            - name: PX_KVDB_USERNAME
              valueFrom:
                secretKeyRef:
                  name: px-kvdb-auth
                  key: username
            - name: PX_KVDB_PASSWORD
              valueFrom:
                secretKeyRef:
                  name: px-kvdb-auth
                  key: password

```

Thanks,  
Aditya
