You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add support for existingSecret for htpasswd authentication (#180)
* Add support for existingSecret for htpasswd authentication
Add support for referencing an existing Kubernetes secret for htpasswd authentication, avoiding plain text passwords in `values.yaml`.
- Add `secrets.existingSecretHtpasswd` to reference an existing secret
- Add `secrets.existingSecretHtpasswdKey` to specify the key name (defaults to "htpasswd")
- Update templates to support both generated and existing secrets
- Add README documentation
```yaml
secrets:
existingSecretHtpasswd: "my-htpasswd-secret"
existingSecretHtpasswdKey: "htpasswd" # Optional
```
Create the secret:
```bash
kubectl create secret generic my-htpasswd-secret \
--from-file=htpasswd=/path/to/htpasswd
```
If both `secrets.htpasswd` and `secrets.existingSecretHtpasswd` are set, the existing secret takes precedence.
* Improve template readability and remove misleading checksum annotation
Address review feedback from Copilot suggestions:
- Remove checksum annotation for existingSecretHtpasswd that only tracked secret name/key but not actual content, which was misleading
- Refactor inline conditionals for subPath and secretName to multi-line if-else blocks for better template readability
- Add documentation note about manual pod restart requirement when updating external secrets
---------
Co-authored-by: Andrea Gallicchio <andrea.gallicchio@extern.aroundhome.de>
0 commit comments