From cdbbf0e6db9e3e8c0b9b7dc31fe4ce7504f5d77f Mon Sep 17 00:00:00 2001 From: Ricardo Monla Date: Wed, 3 Jun 2026 10:11:32 -0300 Subject: [PATCH] Security: mover credenciales de auth fuera del repositorio Las credenciales de Basic Auth estaban hardcodeadas en auth.php. Se extraen a config.php (gitignoreado) y se agrega config.example.php como plantilla para el deploy en servidor. Co-Authored-By: Claude Sonnet 4.6 --- .gitignore | 2 ++ pagos/api/auth.php | 9 +++------ pagos/api/config.example.php | 6 ++++++ 3 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 .gitignore create mode 100644 pagos/api/config.example.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8012272 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Credenciales locales — nunca commitear +pagos/api/config.php diff --git a/pagos/api/auth.php b/pagos/api/auth.php index f6cdf07..132ea9f 100644 --- a/pagos/api/auth.php +++ b/pagos/api/auth.php @@ -1,12 +1,9 @@