This script updates the Quay.io DB to add RO keys. The Keys
to be added are passed in as a Secret
monted on the container
Environment variables
Variable | Description |
---|---|
DB_HOST | Database hostname |
DB_USER | Database username |
DB_PASSWORD | Database password |
KEY_NAME | Name of the key that needs to be inserted |
EXPIRY_TIME | Expiry time of key in YYYY-MM-DD fromat |
- Create the Key and Secret in the quay repo
git clone [email protected]:quay/quay.git
pip install -r requirements.txt
PYTHONPATH=. python tools/generatekeypair.py quay-readonly
- Add the key into Vault at the appropriate location
- Run the Job in app-interface setting
KEY_NAME
andEXPIRY_TIME