Note
If you use Azure Kubernetes Service, learn how to deploy the SCIM bridge there.
Learn how to deploy 1Password SCIM Bridge on a Kubernetes cluster.
Before you begin, complete the necessary preparation steps to deploy 1Password SCIM Bridge. Then clone this repository and switch to this working directory:
git clone https://github.com/1Password/scim-examples.git
cd ./scim-examples/kubernetesop-scim-config.yaml: Configuration for the SCIM bridge deployment.op-scim-deployment.yaml: The deployment manifest for the SCIM bridge container.op-scim-service.yaml: Public load balancer for SCIM bridge to connect with your identity provider.redis-config.yaml: Configuration for the Redis cache.redis-deployment.yaml: The deployment manifest for a Redis cache in the cluster.redis-service.yaml: Kubernetes Service for the Redis cache to enable connectivity inside the cluster.google-workspace/workspace-settings.json: a settings file template for customers integrating with Google Workspace.
After you prepare your 1Password account:
-
Save the
scimsessioncredentials file from your 1Password account to the working directory (scim-examples/kubernetes). -
Make sure the file is named
scimsession. -
Create a Kubernetes Secret from this file:
kubectl create secret generic scimsession --from-file=scimsession=./scimsession
Warning
The following steps only apply if you use Google Workspace as your identity provider. If you use another identity provider, continue to step 2.
-
Follow the steps to create a Google service account, key, and API client.
-
Save the credentials file to the
google-workspacesubfolder in this directory. -
Make sure the key file is named
workspace-credentials.json. -
Edit the Workspace settings file template located at
./google-workspace/workspace-settings.jsonand fill in correct values for:- Actor: the email address of the administrator in Google Workspace that the service account is acting on behalf of.
- Bridge Address: the URL you will use for your SCIM bridge (not your 1Password account sign-in address). This is most often a subdomain of your choosing on a domain you own. For example:
https://scim.example.com.
-
Return to the working directory for all following steps (
scim-examples/kubernetes). -
Create Kubernetes Secrets from these files:
kubectl create secret generic workspace-credentials \ --from-file=workspace-credentials.json=./google-workspace/workspace-credentials.json kubectl create secret generic workspace-settings \ --from-file=workspace-settings.json=./google-workspace/workspace-settings.json
Run the following command to deploy 1Password SCIM Bridge:
kubectl apply --filename=./The op-scim-bridge Service creates a public load balancer attached to your cluster, which forwards TLS traffic to SCIM bridge.
-
Run the following command:
kubectl get service
-
Copy the address listed under the
External IPcolumn for theop-scim-bridgeService from the output.Note
It can take a few minutes before the public address becomes available. Run the command again if doesn't appear in the output.
-
Create a public DNS record pointing to this address.
After the DNS record has propagated, set the OP_TLS_DOMAIN environment variable to enable the CertificateManager component.
Example command:
kubectl set env deploy/op-scim-bridge OP_TLS_DOMAIN=scim.example.comReplace scim.example.com with the fully qualified domain name of the DNS record before running this command. Your SCIM bridge will restart, request a TLS certificate from Let's Encrypt, and automatically renew the certificate on your behalf.
Use your SCIM bridge URL to test the connection and view status information. For example:
curl --silent --show-error --request GET --header "Accept: application/json" \
--header "Authorization: Bearer mF_9.B5f-4.1JqM" \
https://scim.example.com/healthReplace mF_9.B5f-4.1JqM with your bearer token and https://scim.example.com with your SCIM bridge URL.
Example JSON response:
{
"build": "209163",
"version": "2.9.17",
"reports": [
{
"source": "ConfirmationWatcher",
"time": "2026-03-03T14:06:09Z",
"expires": "2026-03-03T14:16:09Z",
"state": "healthy"
},
{
"source": "RedisCache",
"time": "2026-03-03T14:06:09Z",
"expires": "2026-03-03T14:16:09Z",
"state": "healthy"
},
{
"source": "SCIMServer",
"time": "2026-03-03T14:06:56Z",
"expires": "2026-03-03T14:16:56Z",
"state": "healthy"
},
{
"source": "StartProvisionWatcher",
"time": "2026-03-03T14:06:09Z",
"expires": "2026-03-03T14:16:09Z",
"state": "healthy"
}
],
"retrievedAt": "2026-03-03T14:06:56Z"
}To view this information in a visual format, visit your SCIM bridge URL in a web browser. Sign in with your bearer token, then you can view status information and download container log files.
To finish setting up automated user provisioning, connect your identity provider to the SCIM bridge.
To update SCIM bridge, connect to your Kubernetes cluster and run the following command:
kubectl set image deploy/op-scim-bridge op-scim-bridge=1password/scim:v2.9.17Note
You can find details about the changes on the SCIM bridge releases notes website. The most recent version should be pinned in the
op-scim-deployment.yamlfile (and in the command above in this file) in the main branch of this repository.
Your SCIM bridge should automatically reboot using the specified version, typically in a few moments.
If you regenenerate credentials for your SCIM bridge:
-
Download the new
scimsessionfile from your 1Password account. -
Delete the
scimsessionSecret on your cluster and recreate it from the new file:kubectl delete secret scimsession kubectl create secret generic scimsession --from-file=scimsession=./scimsession
Kubernetes automatically updates the credentials file mounted in the Pod with the new Secret value.
-
Test your SCIM bridge using the new bearer token associated with the regenerated
scimsessionfile. -
Update your identity provider configuration with your new bearer token.
The 1Password SCIM Bridge Pod should be vertically scaled when provisioning a large number of users or groups. Our default resource specifications and recommended configurations for provisioning at scale are listed in the below table:
| Volume | Number of users | CPU | memory |
|---|---|---|---|
| Default | <1,000 | 125m | 512M |
| High | 1,000–5,000 | 500m | 1024M |
| Very high | >5,000 | 1000m | 1024M |
If provisioning more than 1,000 users, the resources assigned to the SCIM bridge container should be updated as recommended in the above table. The resources specified for the Redis container do not need to be adjusted.
Resource configuration can be updated in place:
Resources for the SCIM bridge container are defined in op-scim-deployment.yaml:
spec:
...
template:
spec:
...
containers:
- name: op-scim-bridge
...
resources:
requests:
cpu: 125m
memory: 512M
limits:
memory: 512M
...After making any changes to the Deployment resource in your cluster, you can apply the unmodified manifest to revert to the default specifications defined above:
kubectl apply --filename=./op-scim-deployment.yamlFor provisioning up to 5,000 users:
kubectl set resources deployment/op-scim-bridge --requests=cpu=512m,memory=1024M --limits=memory=1024MFor provisioning more than 5,000 users:
kubectl set resources deployment/op-scim-bridge --requests=cpu=1000m,memory=1024M --limits=memory=1024MPlease reach out to our support team if you need help with the configuration or to tweak the values for your deployment.
You can customize your 1Password SCIM Bridge deployment using some of the methods below.
There are two ways to use a self-managed TLS certificate, which disables Let's Encrypt functionality.
You can terminate TLS traffic on a public-facing load balancer or reverse proxy, then redirect HTTP traffic to SCIM bridge within your private network. Skip the step to configure Let's Encrypt, or revert to the default state by setting OP_TLS_DOMAIN to "":
kubectl set env deploy/op-scim-bridge OP_TLS_DOMAIN=""Modify op-scim-service.yaml to use the alternate http port for the Service as noted within the manifest. Traffic from your TLS endpoint should be directed to this port (80, by default). If SCIM bridge has already been deployed, apply the amended Service manifest:
kubectl apply --filename=./op-scim-service.yamlIn this configuration, 1Password SCIM Bridge will listen for unencrypted traffic on the http port of the Pod.
Alternatively, you can create a TLS Secret containing your key and certificate files, which can then be used by your SCIM bridge. This will also disable Let's Encrypt functionality.
Save the public certificate along with any provided intermediate certificates from your certificate authority to the file certificate.pem, and the private key in key.pem.
The provided intermediate(s) from your certificate authority must be after the leaf cert that applies to your SCIM bridge deployment URL.
Important
Without the intermediate(s) included, some identity providers (ex. Okta) will be unable to validate your TLS certificate for your SCIM bridge.
An example certificate.pem file
-----BEGIN CERTIFICATE----- # The certificate for example.com
MIIFmzCCBSGgAwIBAgIQCtiTuvposLf7ekBPBuyvmjAKBggqhkjOPQQDAzBZMQsw
CQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMTMwMQYDVQQDEypEaWdp
Q2VydCBHbG9iYWwgRzMgVExTIEVDQyBTSEEzODQgMjAyMCBDQTEwHhcNMjUwMTE1
MDAwMDAwWhcNMjYwMTE1MjM1OTU5WjCBjjELMAkGA1UEBhMCVVMxEzARBgNVBAgT
CkNhbGlmb3JuaWExFDASBgNVBAcTC0xvcyBBbmdlbGVzMTwwOgYDVQQKEzNJbnRl
cm5ldCBDb3Jwb3JhdGlvbiBmb3IgQXNzaWduZWQgTmFtZXMgYW5kIE51bWJlcnMx
FjAUBgNVBAMMDSouZXhhbXBsZS5jb20wWTATBgcqhkjOPQIBBggqhkjOPQMBBwNC
AASaSJeELWFsCMlqFKDIOIDmAMCH+plXDhsA4tiHklfnCPs8XrDThCg3wSQRjtMg
cXS9k49OCQPOAjuw5GZzz6/uo4IDkzCCA48wHwYDVR0jBBgwFoAUiiPrnmvX+Tdd
+W0hOXaaoWfeEKgwHQYDVR0OBBYEFPDBajIN7NrH6o/NDW0ZElnRvnLtMCUGA1Ud
EQQeMByCDSouZXhhbXBsZS5jb22CC2V4YW1wbGUuY29tMD4GA1UdIAQ3MDUwMwYG
Z4EMAQICMCkwJwYIKwYBBQUHAgEWG2h0dHA6Ly93d3cuZGlnaWNlcnQuY29tL0NQ
UzA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0fBDswOTA3oDWgM4YxaHR0cDovL2Ny
bDMuZGlnaWNlcnQuY29tL0RpZ2lDZXJ0R2xvYmFsUm9vdEczLmNybDA9BgNVHSAE
NjA0MAsGCWCGSAGG/WwCATAHBgVngQwBATAIBgZngQwBAgEwCAYGZ4EMAQICMAgG
BmeBDAECAzAKBggqhkjOPQQDAwNoADBlAjB+Jlhu7ojsDN0VQe56uJmZcNFiZU+g
IJ5HsVvBsmcxHcxyeq8ickBCbmWE/odLDxkCMQDmv9auNIdbP2fHHahv1RJ4teaH
MUSpXca4eMzP79QyWBH/OoUGPB2Eb9P1+dozHKQ=
-----END CERTIFICATE-----
Assuming these files exist in the working directory, create the Secret and set the OP_TLS_CERT_FILE and OP_TLS_KEY_FILE variables to redeploy SCIM bridge using your certificate:
kubectl create secret tls op-scim-tls --cert=./certificate.pem --key=./key.pem
kubectl set env deploy op-scim-bridge \
OP_TLS_CERT_FILE="/secrets/tls.crt" \
OP_TLS_KEY_FILE="/secrets/tls.key"Note
If your certificate and key files are located elsewhere or have different names, replace
./certificate.pemand./key.pemwith the paths to these files, i.e.:kubectl create secret tls op-scim-tls --cert=path/to/cert/file --key=path/to/key/file
If you prefer to use an external Redis cache, omit the the redis-*.yaml files when deploying to your Kubernetes cluster. Replace the value of the OP_REDIS_URL environment variable in op-scim-config.yaml with a Redis connection URI for your Redis server.
You can set OP_REDIS_URL directly to reboot SCIM bridge and connect to the specified Redis server:
Example command:
kubectl set env deploy/op-scim-bridge OP_REDIS_URL="redis://LJenkins:p%40ssw0rd@redis-16379.example.com:16379/0"Replace redis://LJenkins:p%40ssw0rd@redis-16379.example.com:16379/0 with a Redis connection URI for your Redis server before running the command.
Delete the cluster resources for Redis:
kubectl delete \
--filename=redis-config.yaml \
--filename=redis-deployment.yaml \
--filename=redis-service.yamlIf you are using an external Redis cache with your SCIM bridge and need additional configuration options, you can use the following environment variables in place of OP_REDIS_URL. These environment variables may be especially helpful if you need support for URL-unfriendly characters in your Redis credentials. OP_REDIS_URL must be unset, otherwise the following environment variables will be ignored.
These values can be set in op-scim-config.yaml
Note
If
OP_REDIS_URLhas any value, the environment variables below are ignored.
OP_REDIS_HOST: overrides the default hostname of the redis server (default:redis). It can be either another hostname, or an IP address.OP_REDIS_PORT: overrides the default port of the redis server connection (default:6379).OP_REDIS_USERNAME: sets a username, if any, for the redis connection (default:(null)).OP_REDIS_PASSWORD: Sets a password, if any, for the redis connection (default:(null)). Can accommodate URL-unfriendly characters thatOP_REDIS_URLmay not accommodate.OP_REDIS_ENABLE_SSL: Optionally enforce SSL on redis server connections (default:false) (Boolean0or1).OP_REDIS_INSECURE_SSL: Set whether to allow insecure SSL on redis server connections whenOP_REDIS_ENABLE_SSLis set totrue. This may be useful for testing or self-signed environments (default:false) (Boolean0or1).
You can unset OP_REDIS_URL and set any of the above environment variables directly to reboot SCIM bridge and connect to the specified Redis server:
Example command:
kubectl set env deploy/op-scim-bridge OP_REDIS_URL="" \
OP_REDIS_HOST="hostname" \
OP_REDIS_USERNAME="sherlock_admin" \
OP_REDIS_PASSWORD="apv.zbu8wva8gwd1EFC-fake.p@ssw0rd" \
OP_SSL_ENABLED="0"Delete the cluster resources for Redis, if required:
kubectl delete \
--filename=redis-config.yaml \
--filename=redis-deployment.yaml \
--filename=redis-service.yamlSet OP_PRETTY_LOGS to 1 to colorize container logs.
kubectl set env deploy/op-scim-bridge OP_PRETTY_LOGS=1By default, container logs are output in a human-readable format. Set OP_JSON_LOGS to 1 for newline-delimited JSON logs.
kubectl set env deploy/op-scim-bridge OP_JSON_LOGS=1This can be useful for capturing structured logs.
Set OP_DEBUG to 1 to enable debug level logging:
kubectl set env deploy/op-scim-bridge OP_DEBUG=1This may be useful for troubleshooting, or when contacting 1Password Support.
Set OP_TRACE to 1 to enable trace level debug output in the logs:
kubectl set env deploy/op-scim-bridge OP_TRACE=1This may be useful for troubleshooting Let’s Encrypt integration issues.
On some Kubernetes clusters, health checks can fail for the SCIM bridge before the bridge is able to obtain a Let’s Encrypt certificate. Set OP_PING_SERVER to 1 to enable a /ping endpoint available on port 80 to use for health checks:
kubectl set env deploy/op-scim-bridge OP_PING_SERVER=1No other endpoints (such as /scim) are exposed through this port.
When cluster resources are updated in place, Kubernetes will create a new revision alongside an existing workload before replacing the existing revision. If there are not enough available resources in the cluster to schedule both revisions, the update can hang until they become available. This can happen when vertically scaling a Deployment or updating to a new SCIM bridge image version.
If there are enough resources in the cluster available to schedule the new Pod revision, you can restart the Deployment to evict the existing Pod, free up the resources, and allow the new Pod to start:
kubectl rollout restart deployment/op-scim-bridge