> For the complete documentation index, see [llms.txt](https://docs.qpoint.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.qpoint.io/appendix/s3-credentials-for-qtap-using-kubernetes-secrets.md).

# S3 Credentials for Qtap using Kubernetes Secrets

This guide explains how to configure the S3 access and secret key environment variables for Qtap using Kubernetes secrets.

### Environment Variables

* `S3_ACCESS_KEY`: Access key for S3 authentication
* `S3_SECRET_KEY`: Secret key for S3 authentication

### Setup Steps

1. Create a Kubernetes secret with your S3 credentials:

```bash
kubectl create secret generic s3-credentials \
  --from-literal=access-key='YOUR_S3_ACCESS_KEY' \
  --from-literal=secret-key='YOUR_S3_SECRET_KEY' \
  -n qpoint
```

2. Configure the environment variables in your Helm values:

```yaml
extraEnv:
  - name: S3_ACCESS_KEY
    valueFrom:
      secretKeyRef:
        name: s3-credentials
        key: access-key
  - name: S3_SECRET_KEY
    valueFrom:
      secretKeyRef:
        name: s3-credentials
        key: secret-key
```

3. Apply the configuration when installing or upgrading Qtap:

```bash
helm upgrade --install qpoint-tap qpoint/qpoint-tap \
  -n qpoint \
  -f values.yaml
```
