Skip to main content
April 11, 2023
Question

error: failed to create secret secrets "scimsession" already exists

  • April 11, 2023
  • 1 reply
  • 1823 views

Brand new deployment as of 4/10/23

Deployment instructions do not include what I assume is a method to update the scimsession after regenerating credentials.

After regenerating the credentials it says to go here:

https://support.1password.com/scim-deploy-azure/

I assumed I would upload the new scimsession file and follow the same commands, but get this error:

```
~$kubectl create secret generic scimsession --from-file=scimsession=/home/$USER/scimsession

~$error: failed to create secret secrets "scimsession" already exists
```
Are there instructions to do this procedure?

Thanks!


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser:_ Not Provided

1 reply

April 11, 2023

Updated with response from Support:

On your cluster (this is in Azure btw) do the following. Responses from commands included.

```
kubectl delete secret scimsession

$ secret "scimsession" deleted

```
Then re-create it:

```
kubectl create secret generic scimsession --from-file=scimsession=/home/$USER/scimsession

$ secret/scimsession created
```

After setting your new scimsession secret, you must restart your 1Password SCIM Bridge for the pod to read the scimsession secret. You can do this by using this command:


kubectl scale deploy/op-scim-bridge --replicas=0 && sleep 3 && kubectl scale deploy/op-scim-bridge --replicas=1
$ deployment.apps/op-scim-bridge scaled
$ deployment.apps/op-scim-bridge scaled