Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 756 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 756 Bytes

Update RO Keys

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

Running the script

  1. 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
  1. Add the key into Vault at the appropriate location
  2. Run the Job in app-interface setting KEY_NAME and EXPIRY_TIME