1.3 KiB
1.3 KiB
Secrets and Environment Policy
GeoIntel must be safe to publish as a portfolio repository.
Absolute rules
- Never commit real API keys.
- Never commit credentials, tokens, cookies or private endpoints.
- Never place secrets in docs, fixtures, tests or screenshots.
.env.examplemay contain placeholder values only.- Runtime secrets are read from environment variables.
- If a real key is accidentally found, remove it and rotate it outside the repo.
Approved environment variables
DATABASE_URLPOSTGRES_HOSTPOSTGRES_PORTPOSTGRES_DBPOSTGRES_USERPOSTGRES_PASSWORDREDIS_URLSTORAGE_ROOTOPENAI_API_KEYCOPERNICUS_CLIENT_IDCOPERNICUS_CLIENT_SECRETGRB_WFS_BASE_URLOSM_OVERPASS_URL
Codex behavior
When credentials are missing, Codex must:
- implement a clear configuration error;
- document the missing variable;
- provide an example in
.env.example; - avoid hardcoded fallback secrets;
- keep external-service calls behind adapters.
Local development fallback
For V1 foundation work, services should be able to run with:
- local PostGIS;
- local Redis;
- fixture datasets;
- disabled external fetchers;
- deterministic demo outputs.
This fallback is not fake production behavior. It is a development mode and must be labeled as such.