- CI pipeline & Dockerfile hardening: env var rename, extended logging, POSIX shell, privilege drop #5

Merged
GuillaumeHemmen merged 5 commits from 4-script-is-not-found into master 2025-05-19 11:31:46 +00:00

5 commits

Author SHA1 Message Date
afa2e7541a - Update secrets and destination in CI configuration
Replaced outdated secret references with `docker_username` and `access_token`. Adjusted `KANIKO_DESTINATION` to point to the correct private registry and current image structure. Ensures compatibility and correct credentials for the build process.
2025-05-19 13:28:47 +02:00
503ef5c8df Update variable name from GITHUB_REF_NAME to GIT_REF_NAME
Standardize the environment variable naming for consistency across documentation and scripts. Updated all references in README.md and build.sh, ensuring functionality remains intact.
2025-05-19 13:21:19 +02:00
47dac6b4ef - Add logging of environment variables and build actions
This change introduces logging of key environment variables used during the build process, with sensitive values partially masked for security. It also provides clear messaging on whether the build includes a push to the registry, improving transparency and debugging capabilities.
2025-05-19 13:18:13 +02:00
59791e36bb - Change Dockerfile to run as root user
Switched the user from UID 1000 to root (UID 0) in the Dockerfile. This change allows for operations requiring elevated privileges during container execution. Ensure any downstream implications of running as root are understood and addressed.
2025-05-19 12:55:56 +02:00
f777a7197a - Switch to POSIX-compliant shell and drop root privileges
Replaced bash with sh for broader compatibility, ensuring scripts work with BusyBox/dash. Updated Dockerfile to use non-root user (UID 1000) and adjusted paths and permissions accordingly. Simplified and streamlined variable checks and logic in build.sh.
2025-05-19 12:47:22 +02:00