Skip to content

Commit 64eeb02

Browse files
jirhikerCopilot
andauthored
Update core/pygeoapi.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b7baeda commit 64eeb02

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

core/pygeoapi.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,13 @@ def _write_config(path: Path) -> None:
264264
user=user,
265265
),
266266
)
267+
# NOTE: The generated file `.pygeoapi/pygeoapi-config.yml` contains database
268+
# connection details (host, port, dbname, user). Although the password is
269+
# expected to be provided via environment variables at runtime by pygeoapi,
270+
# this file should still be treated as sensitive configuration:
271+
# * Do not commit it to version control.
272+
# * Do not expose it in logs, error messages, or diagnostics.
273+
# * Ensure filesystem permissions restrict access appropriately.
267274
path.write_text(config, encoding="utf-8")
268275

269276

0 commit comments

Comments
 (0)