Skip to content

Commit

Permalink
sdk config for certs
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyblasczyk committed May 5, 2023
1 parent 9dbf6a2 commit 5169fc8
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,26 @@ helm upgrade --namespace=wandb wandb ./charts/wandb --set license=$LICENSE --set

Now, your wandb deployment will use the mounted SSL certificate for securing communication over HTTPS.

### Configuring the wandb SDK to Leverage the SSL Certificates

To configure the wandb SDK to use the SSL certificates, follow these steps:

1. Set the `REQUESTS_CA_BUNDLE` and `SSL_CERT_FILE` environment variables to the path of the certificate file:

```python
import os
os.environ['REQUESTS_CA_BUNDLE'] = '/path/to/cert.pem'
os.environ['SSL_CERT_FILE'] = '/path/to/cert.pem'
```

2. Append your self-signed certificate to the default CA bundle to allow both self-signed and default certificates to be used:

```bash
cat /path/to/selfsigned.cer >> /path/to/cacert.pem
```

Now, the wandb SDK will be able to use the SSL certificates for HTTPS communication.

# Upgrade Guide

For information on upgrading the Helm module and wandb server version, please refer to the [upgrade guide](./upgrade.md).

0 comments on commit 5169fc8

Please sign in to comment.