Commit Graph
3353 Commits
Author SHA1 Message Date
kevinveenbirkenbach 46baaacba9 Enabled svc-db- credentials for servers 2025-12-22 11:57:53 +01:00
kevinveenbirkenbach afc209633b feat(sys-service): ignore systemctl-related failures when running in containers
- Execute service scripts in containers with async/poll support
- Treat missing systemd/systemctl as non-fatal in container context
- Preserve failure handling for genuine script execution errors

https://chatgpt.com/share/69491f89-468c-800f-998f-1eb5424a2cf9
2025-12-22 11:48:24 +01:00
kevinveenbirkenbach 8b21b864f1 feat(sys-service): support async execution of service scripts in containers
- Enable async/poll for container-based service script execution
- Align container handler behavior with systemd handlers
- Preserve linear sync and suppression logic via existing variables

https://chatgpt.com/share/69491f89-468c-800f-998f-1eb5424a2cf9
2025-12-22 11:41:55 +01:00
kevinveenbirkenbach 2f51d88f21 feat(sys-service): execute service script on refresh when running in container
- Add container-specific handler listening on refresh systemctl service
- Execute service script directly when IS_CONTAINER is true
- Trigger only for restarted state and non-suppressed flushes
- Keep native systemd handling unchanged for non-container environments

https://chatgpt.com/share/69491f89-468c-800f-998f-1eb5424a2cf9
2025-12-22 11:37:53 +01:00
kevinveenbirkenbach ffd071c64e ci(openresty): share gh-action runtime and scope nginx/www volumes per CI run
- Mount /tmp/gh-action into the CI container so Docker can access run-scoped paths
- Scope OpenResty www and nginx volumes to GITHUB_RUN_ID when running in container
- Avoid leaking host /etc/nginx and /var/www into CI runs
- Remove redundant preflight

https://chatgpt.com/share/694918d0-53b4-800f-93a7-ec82946f3e24
2025-12-22 11:09:12 +01:00
kevinveenbirkenbach f28e173d23 fix(ci): restore CI push trigger for normal branch commits
- Explicitly trigger CI (push) on all branches
- Continue to ignore version, stable and other release tags
- Prevent missing CI runs on regular commits while avoiding tag-based duplicates

https://chatgpt.com/share/6948fa05-1970-800f-a010-59c8c3588713
2025-12-22 09:55:40 +01:00
kevinveenbirkenbach c82d1f6ca3 fix(ci): eliminate duplicate workflow runs by separating branch and tag triggers
- Run CI (push) only on branch pushes and ignore version/stable/latest tags
- Run versioning workflow exclusively on v* tag pushes
- Remove overlapping branch triggers to prevent double executions

https://chatgpt.com/share/6948fa05-1970-800f-a010-59c8c3588713
2025-12-22 09:53:23 +01:00
kevinveenbirkenbach fc7ba32db0 fix(ci): prevent duplicate runs by ignoring tag pushes in CI (push)
Limit CI (push) to main/master branches and ignore version and stable tags
to avoid duplicate workflow executions.

https://chatgpt.com/share/694905df-e06c-800f-8876-9f6682e22943
2025-12-22 09:48:25 +01:00
kevinveenbirkenbach 1fdf5ae169 fix(openresty): make restart handler safe with include_tasks and assertions
- Move OpenResty restart logic into included handler tasks
- Use block/rescue to dump container logs on failure
- Tolerate restarting state during pre-flight validation
- Wait up to 2 minutes for container to reach running state
- Add explicit change detection for docker restart
- Enable assert mode in container deploy CLI

https://chatgpt.com/share/6948fa05-1970-800f-a010-59c8c3588713
2025-12-22 09:40:08 +01:00
kevinveenbirkenbach 83b3c6651a feat(openresty): make restart handler robust with wait, validation and log dump
- Replace separate handlers with atomic block/rescue handler
- Add pre- and post-flight OpenResty config validation
- Wait for container to reach running state before post-check
- Dump container logs automatically on failure for easier CI debugging
- Skip Let’s Encrypt tasks when SSL is disabled

https://chatgpt.com/share/6948fa05-1970-800f-a010-59c8c3588713
2025-12-22 08:57:51 +01:00
kevinveenbirkenbach f51b53a615 feat(keycloak-ldap): enforce canonical ldap-roles mapper and add read-only asserts
- Resolve LDAP UserStorageProvider via client-side filtering (avoid unreliable kcadm --query)
- Enforce exactly one canonical 'ldap-roles' LDAP mapper per LDAP component
- Deterministically deduplicate existing ldap-roles mappers (lexicographic id order)
- Safely parse created mapper id and fallback to authoritative refresh
- Add read-only assert tasks to validate LDAP, mapper uniqueness, groups.path and top-level group
- Wire LDAP asserts into role execution when MODE_ASSERT is enabled
- Improve idempotency, robustness and CI failure diagnostics

https://chatgpt.com/share/69487ed5-3b58-800f-8ac6-bbb1bbe3688a
2025-12-22 00:12:11 +01:00
kevinveenbirkenbach d9824bb506 test(deploy): mock backup authorized_keys in CI inventory
Create a dummy authorized_keys file inside the CI container inventory
after inventory generation and before ansible-playbook execution.

This prevents sys-bkp-provider-user from failing on missing file lookups
while keeping the role logic unchanged and the deploy tests deterministic.
2025-12-21 23:39:20 +01:00
kevinveenbirkenbach c61db9f9e0 feat(ci): silence INSTALL_LOCAL_BUILD output during invokable discovery
* Refactor docker entrypoint to run local build via a single helper function
* Add INSTALL_LOCAL_BUILD_SILENCE flag to fully suppress DEV build output
* Enable INSTALL_LOCAL_BUILD for invokable resolution without noisy logs
* Keep behavior deterministic and non-redundant while preserving failure semantics

https://chatgpt.com/share/694874d7-508c-800f-aa89-d9cef71128dc
2025-12-21 23:29:39 +01:00
kevinveenbirkenbach d85da02db1 Disabled INSTALL_LOCAL_BUILD due to noise 2025-12-21 23:14:48 +01:00
kevinveenbirkenbach 5dcd8059eb fix(pkgmgr): enforce non-interactive updates and abort on prompts
- Remove interactive pkgmgr update during install
- Run pkgmgr updates via venv binary in non-interactive mode
- Disable git prompts and SSH interactivity
- Close stdin and enforce timeout to prevent hanging updates
- Ensure deterministic behavior in Ansible, CI, and Docker contexts

https://chatgpt.com/share/69485536-28c8-800f-9a6b-fb25f433e367
2025-12-21 21:14:40 +01:00
kevinveenbirkenbach 8d2d2ad5fa fix(openresty/nginx): replace deprecated listen ... http2 with http2 on
- Remove deprecated `http2` parameter from listen directives
- Enable HTTP/2 explicitly via `http2 on;`
- Ensure compatibility with modern nginx and OpenResty versions
- Reduce configuration validation warnings

https://chatgpt.com/share/69484ec2-4fa0-800f-99f8-39ff98b87361
2025-12-21 20:47:03 +01:00
kevinveenbirkenbach d2e88b6a8c feat(cli): eliminate runpy warnings for inventory + container entrypoints
* Remove legacy **main** re-export wrappers to avoid `runpy` "already in sys.modules" warnings
* Introduce `cli.deploy.container.command` as the stable implementation module
* Reduce `cli.deploy.container.__main__` to a minimal entrypoint delegating to `command.main`
* Re-export container helpers from package `__init__` without importing `__main__`
* Update unit tests to import/patch the new command module and keep CLI dispatch stable

https://chatgpt.com/share/69484a22-60dc-800f-a23d-068d7c45fe37
2025-12-21 20:27:26 +01:00
kevinveenbirkenbach 396d5f5ba6 fix(pkgmgr): remove unused config.yaml generation and use explicit venv pkgmgr binary
- Drop config.yaml creation and related variable as it is no longer used
- Avoid PATH-related issues by calling pkgmgr via its venv binary
- Make pkgmgr path resolution deterministic in web-app roles

https://chatgpt.com/share/69484645-afcc-800f-8ef0-a7cbe2d9b52e
2025-12-21 20:10:55 +01:00
kevinveenbirkenbach ac4fda6717 Deactivated sshd restart during docker in docker execution 2025-12-21 19:55:49 +01:00
kevinveenbirkenbach f15835236f Release version 0.3.5 v0.3.5 2025-12-21 19:47:20 +01:00
kevinveenbirkenbach b48c26ef80 refactor(user-root): move OpenSSH client install to role and modularize root SSH key setup
- Remove openssh-client from Dockerfile to avoid hard dependency
- Add user-root SSH variable definitions for private/public key paths
- Split root SSH key generation into dedicated task file
- Ensure idempotent key creation and output handling
- Improve maintainability by decoupling container build from user provisioning

https://chatgpt.com/share/6948403b-7440-800f-bb45-72456827a6c5
2025-12-21 19:45:11 +01:00
kevinveenbirkenbach 2387f12f1a build(make): enable strict bash execution with oneshell
- Run each recipe in a single Bash shell
- Enable -euo pipefail for deterministic failure handling
- Ensure make aborts immediately on errors (e.g. permission issues)
- Use /bin/bash explicitly to avoid env resolution problems

https://chatgpt.com/share/69481ec8-8a3c-800f-9de8-256e1c10896a
2025-12-21 17:22:29 +01:00
kevinveenbirkenbach b9cb69be8b fix(shellcheck): resolve SC2206 by safe array population
* Replace unquoted array expansion with mapfile-based parsing
* Prevent word splitting and globbing in compute_exclude_csv
* Keep behavior identical while satisfying ShellCheck

https://chatgpt.com/share/69481b6b-02f8-800f-91c8-bbc6592f97b4
2025-12-21 17:07:48 +01:00
kevinveenbirkenbach 63f6b0b0ba Release version 0.3.4 v0.3.4 2025-12-21 17:03:36 +01:00
kevinveenbirkenbach 6726f36799 feat(sys-util-git-pull): introduce reusable shallow git pull role with tag pinning
- Add new role sys-util-git-pull as a generic system utility
- Implement robust shallow clone/update logic in Python helper
- Support detached-safe branch updates and optional tag pinning
- Handle annotated vs lightweight tags and heal local tag conflicts
- Provide deterministic Ansible change detection via machine-readable output
- Add verbose logging to stderr for debuggability
- Integrate sys-util-git-pull into pkgmgr role to replace inline git logic
- Add comprehensive unit tests (option A: file-based import) for helper script
- Add role README and meta information with platform-agnostic support
- Ensure role conforms to existing test expectations (meta/main.yml present)

https://chatgpt.com/share/69481902-a98c-800f-9b3f-9ee13e8e50b7
2025-12-21 16:57:45 +01:00
kevinveenbirkenbach 38c8b59fe0 test(integration): ignore **pycache** directories in role validation tests
https://chatgpt.com/share/69481867-784c-800f-ab60-50ce3b241dd4
2025-12-21 16:55:06 +01:00
kevinveenbirkenbach 30d557ef0d chore(format): add formatter target and apply shfmt/ruff formatting
- Add `make format` target running shfmt + ruff format + ruff check --fix
- Reformat shell scripts with shfmt
- Apply ruff formatting and autofixes across Python code

https://chatgpt.com/share/69480c5a-b0bc-800f-9a2b-770d98c1b6ff
2025-12-21 16:03:48 +01:00
kevinveenbirkenbach f406db2869 Merge pull request #42 from kevinveenbirkenbach/alert-autofix-125
Potential fix for code scanning alert no. 125: Use of the return value of a procedure
2025-12-21 15:51:48 +01:00
kevinveenbirkenbachandCopilot Autofix powered by AI d0a2890a08 Potential fix for code scanning alert no. 125: Use of the return value of a procedure
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-12-21 15:51:36 +01:00
kevinveenbirkenbach b5b38969aa fix(pkgmgr): pin shallow clone to stable tag
https://chatgpt.com/share/69480915-e56c-800f-ae51-674cad8fbeff
2025-12-21 15:49:53 +01:00
kevinveenbirkenbach 1fe0a420fa fix(cli): avoid runpy warnings by moving logic into command modules
Stop importing __main__ from package __init__.py to prevent runpy RuntimeWarning when using `python -m`.

- Move CLI logic into command.py modules
- Keep __main__.py as thin wrappers
- Update unit tests to import command modules directly

https://chatgpt.com/share/6947fb8e-550c-800f-8323-e36f92cb5bba
2025-12-21 14:52:09 +01:00
kevinveenbirkenbach f9573460e9 fix(deploy): force local CLI build for invokable resolution
- Drop legacy compatibility wrapper in cli.meta.applications.invokable
- Resolve repository root explicitly via pathlib
- Ensure filter_plugins are importable outside Ansible
- Run invokable discovery with INSTALL_LOCAL_BUILD=1 in deploy tests
- Make deploy.sh fail fast when invokable resolution is unavailable
- Normalize sorting and exclusion logic (drv-* roles, locale-safe sort)
2025-12-21 14:27:21 +01:00
kevinveenbirkenbach 2cf4d880ae Optimized deploy run names 2025-12-21 12:34:46 +01:00
kevinveenbirkenbach bef7834a36 Set missing run once flag 2025-12-21 12:12:38 +01:00
kevinveenbirkenbach 25b8db9d39 Merge branch 'master' of github.com:kevinveenbirkenbach/infinito-nexus 2025-12-21 11:54:20 +01:00
kevinveenbirkenbach 79785ea531 Merge branch 'master' of github.com:kevinveenbirkenbach/infinito-nexus 2025-12-21 11:53:55 +01:00
kevinveenbirkenbach 8590e32bf1 Merge branch 'master' of github.com:kevinveenbirkenbach/infinito-nexus 2025-12-21 11:52:15 +01:00
kevinveenbirkenbach ce19fed69a Increased verbosity 2025-12-21 11:52:04 +01:00
kevinveenbirkenbach 5c8a6e00ec Merge pull request #41 from kevinveenbirkenbach/alert-autofix-120
Potential fix for code scanning alert no. 120: Empty except
2025-12-21 11:45:47 +01:00
kevinveenbirkenbachandCopilot Autofix powered by AI d3020ce1a4 Potential fix for code scanning alert no. 120: Empty except
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-12-21 11:42:31 +01:00
kevinveenbirkenbach 9e72a8fd04 Merge pull request #40 from kevinveenbirkenbach/alert-autofix-121
Potential fix for code scanning alert no. 121: Empty except
2025-12-21 11:42:01 +01:00
kevinveenbirkenbachandCopilot Autofix powered by AI efe7429c8b Potential fix for code scanning alert no. 121: Empty except
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-12-21 11:41:45 +01:00
kevinveenbirkenbach fd54faff65 refactor(ansible): replace pacman installs with package
Migrate most roles from community.general.pacman to the generic package module for better portability. Keep pacman where it is required (system upgrades and Arch-specific tasks). Split VirtualBox setup into an Arch-only task file and add a warning when skipped on non-Arch systems. Update integration test examples accordingly.

https://chatgpt.com/share/6947ce9f-3228-800f-8365-2253b5ed9451
2025-12-21 11:40:10 +01:00
kevinveenbirkenbach 70497bd404 fix(docker): install openssh-client on Debian/Ubuntu images
https://chatgpt.com/share/6947ca03-4b00-800f-b9a3-6a9dc148a739
2025-12-21 11:20:39 +01:00
kevinveenbirkenbach e97186ffec Removed unused colorama library 2025-12-21 11:15:17 +01:00
kevinveenbirkenbach 71c541ee05 test(cli): use unittest.mock.patch consistently
- Remove direct imports of unittest.mock alias
- Use unittest.mock.patch via unittest for all test decorators
- Keep behavior identical while simplifying imports
2025-12-21 11:10:03 +01:00
kevinveenbirkenbach cc9c2dceb8 fix(ci,nix): forward NIX_CONFIG into docker build and runtime to avoid GitHub rate limits
- Export NIX_CONFIG in CI jobs and Makefile
- Pass NIX_CONFIG as docker build-arg
- Use NIX_CONFIG only in relevant Dockerfile RUN steps (no secret persistence)
- Forward NIX_CONFIG to test and deploy containers

https://chatgpt.com/share/6947c681-abc8-800f-ba12-de2ff3a7abad
2025-12-21 11:05:31 +01:00
kevinveenbirkenbach d381111150 Merge branch 'master' of github.com:kevinveenbirkenbach/infinito-nexus 2025-12-21 10:46:31 +01:00
kevinveenbirkenbach 6eb35ef450 refactor(cli): remove wildcard re-exports from __init__ wrappers
Replace `from .__main__ import *` with controlled re-exports based on `__all__`
to avoid namespace pollution and improve static analysis.

Public APIs remain unchanged while making re-export behavior explicit and
lint-friendly across all CLI subpackages.

https://chatgpt.com/share/6947c1d6-23d0-800f-9910-008ee277213c
2025-12-21 10:45:51 +01:00
kevinveenbirkenbach 069175f717 Merge pull request #39 from kevinveenbirkenbach/alert-autofix-117
Potential fix for code scanning alert no. 117: Use of a print statement at module level
2025-12-21 10:37:50 +01:00