Remove unnecessary read-user from registry config
Some checks are pending
CI/CD Pipeline / Test Backend (push) Waiting to run
CI/CD Pipeline / Test Frontend (push) Waiting to run
CI/CD Pipeline / Build and Push Docker Images (push) Blocked by required conditions
CI/CD Pipeline / Deploy to Production (push) Blocked by required conditions

This commit is contained in:
continuist 2025-06-28 14:06:57 -04:00
parent 0d9a943f66
commit 9b53f96ae2

View file

@ -490,20 +490,16 @@ exit
# Switch to SERVICE_USER (registry directory owner)
sudo su - SERVICE_USER
# Create htpasswd file for authentication (required for push operations)
# Create htpasswd file for authentication (required for push operations only)
mkdir -p /opt/registry/auth
htpasswd -Bbn push-user "$(openssl rand -base64 32)" > /opt/registry/auth/auth.htpasswd
# Create a read-only user (optional, for additional security)
htpasswd -Bbn read-user "$(openssl rand -base64 32)" >> /opt/registry/auth/auth.htpasswd
# Exit SERVICE_USER shell
exit
```
**What this does**: Creates user credentials for registry authentication.
- `push-user`: Can push and pull images (used by CI/CD pipeline for deployments)
- `read-user`: Can only pull images (optional, for read-only access)
- `push-user`: Can push images (used by CI/CD pipeline for deployments)
**Note**: Pull operations are public and don't require authentication, but push operations require these credentials.