- Get the current file from the credentials k8s secret
kubectl -n prep-pypi get secret credentials -o json | jq -r '.data.access_file' | base64 -d > .htpasswd
- Either:
- Remove a user from the file (that's easy just do it in the text file tbh)
- Install the htpasswd tool (e.g.
apt install apache2-utils
) to update and add users
- Adding/editing a user's password (
-B
for bcrypt):htpasswd -B .htpasswd <username>
- Encode the file:
cat .htpasswd | base64 -w0
- Update the
PYPI_ACCESS_FILE
Doppler secret with the encoded value
-
Notifications
You must be signed in to change notification settings - Fork 0
preparingforexams/k8s-pypi
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Custom PyPi registry