diff --git a/README.md b/README.md new file mode 100644 index 0000000..1199dbe --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +# ISR + +## Configuration + +The PostgreSQL password is **not** stored in the code. +`metrics/subjective/pre_processing.py` reads it from the environment +variable `ISR_DB_PASSWORD` and builds `database_url` from it: + +```bash +export ISR_DB_PASSWORD='' +python metrics/subjective/pre_processing.py +``` + +If the variable is missing the script stops with a `RuntimeError`; +there is no default and no silent `None`. Any password that was +ever pushed to this repository must be rotated. + +**Note:** the repository still tracks the compiled bytecode +`metrics/subjective/__pycache__/pre_processing.cpython-310.pyc`, which +contains the old password. Remove it (`git rm`) and run with +`PYTHONDONTWRITEBYTECODE=1` until it is gone; the code patch cannot +delete that binary file without breaking `git apply`.