Skip to content

ALMC SHIELD agent v1.0.4

Choose a tag to compare

@github-actions github-actions released this 28 May 01:09
· 30 commits to main since this release

Added — installer hardening (6 detecciones extra)

  • Disk space check pre-flight: requiere ≥200MB libres en /opt y /var
    antes de tocar nada. Fatal con mensaje claro si insuficiente.
  • DNS + proxy + TLS handshake check pre-flight: verifica resolución DNS
    de almc.es, detecta HTTP_PROXY/HTTPS_PROXY en env vars y
    /etc/environment, prueba TLS handshake real (no solo TCP).
  • Docker/Podman/OpenVZ/nspawn detection: extiende el LXC namespacing-
    disable a más container types. Sin esto el agente NUNCA arrancaba en
    containers Docker no-privileged.
  • EPEL auto-install antes de fail2ban en RHEL: rpm -q epel-release +
    dnf install epel-release automático (fail2ban vive en EPEL, no en
    core repos de RHEL/Rocky/Alma).
  • policycoreutils-python-utils auto en RHEL + SELinux: si SELinux
    Enforcing pero faltan semanage/restorecon, los instala primero. En
    RHEL minimal cloud images no vienen por default.
  • Sudoers includedir verify: comprueba que /etc/sudoers carga
    /etc/sudoers.d/. Si no, warn + nota para añadir
    @includedir /etc/sudoers.d manualmente.

Added — operational

  • Trap EXIT con cleanup parcial: si el install se aborta a mitad
    (Ctrl+C, error inesperado), detiene el servicio si arrancó y reporta
    install_exit_X al backend (no borra archivos para que el admin
    pueda inspeccionar antes de --reinstall).

Fixed

  • grep ... /etc/environment | head -1 | cut ... sin || true mataba el
    script con set -euo pipefail si el grep no matcheaba (caso típico:
    server sin proxy configurado → grep exit 1 → pipefail propaga → trap
    capturaba como abort falso).