Commit Graph
7299 Commits
Author SHA1 Message Date
evangelostsak 87a3ca6cf3 feat(penpot): add main.yml for Penpot configuration including OIDC, LDAP, and Docker settings 2026-06-06 08:22:11 +02:00
evangelostsak 788a9d0c7a feat(penpot): add administrator user configuration in main.yml 2026-06-06 08:22:11 +02:00
evangelostsak 9df5913b36 feat(penpot): add playwright.env.j2 template for Playwright configuration 2026-06-06 08:22:11 +02:00
evangelostsak 696bf2eec7 feat(penpot): add env.j2 template for Penpot configuration including OIDC and LDAP settings 2026-06-06 08:22:11 +02:00
evangelostsak f09f081876 feat(penpot): add Docker Compose configuration for frontend, backend, exporter, and Redis services 2026-06-06 08:22:10 +02:00
evangelostsak 7ef199a89c feat(penpot): add main.yml for web-app-penpot tasks and deployment 2026-06-06 08:22:10 +02:00
evangelostsak d35852f8be feat(penpot): add main.yml for Penpot deployment metadata 2026-06-06 08:22:10 +02:00
evangelostsak ed2918cadf feat(penpot): add Playwright tests for OIDC login, logout, and project creation 2026-06-06 08:22:10 +02:00
evangelostsak 902f1aba2a feat(penpot): add custom JavaScript file for Penpot frontend integration 2026-06-06 08:22:10 +02:00
evangelostsak 561deda310 feat(penpot): add main configuration file for web-app-penpot services 2026-06-06 08:22:10 +02:00
evangelostsak 71921a6fb6 feat(penpot): add README documentation for Penpot deployment and features 2026-06-06 08:22:10 +02:00
evangelostsak 07344e2ca7 feat(penpot): add setup documentation for Penpot integration in Infinito.Nexus 2026-06-06 08:22:10 +02:00
kevinveenbirkenbach 577b5fb5c8 Merge pull request #301 from infinito-nexus/update/docker-image-versions-20260606-36b8e5f
update(images): update Docker image versions
2026-06-06 02:24:07 +02:00
infinito-nexus-updater[bot] aa66daadb1 update(images): update Docker image versions 2026-06-06 00:21:17 +00:00
kevinveenbirkenbach 3c73d7c825 Merge pull request #299 from infinito-nexus/update/docker-image-versions-20260604-eed85fc
update(images): update Docker image versions
2026-06-06 02:20:59 +02:00
kevinveenbirkenbachandClaude Opus 4.8 ff4125f622 fix(web-app-erpnext): clear Frappe cache after applying social-login/LDAP/email config
On Frappe v16 the /login page is served from cache, so enabling the Keycloak Social Login Key without invalidating the cache leaves the OIDC button missing; the Playwright OIDC login tests then fall back to the login_via_keycloak callback and hit a 500 (run 27029748629, web-app-erpnext variant-0/sync).

apply_api_bot.py already calls frappe.clear_cache() after commit. Mirror it in the OIDC, LDAP and email apply scripts so every committed config change refreshes cached state (LDAP/email are preventive: same auth/config cache class).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-05 21:36:46 +02:00
kevinveenbirkenbachandClaude Opus 4.8 3bd5c12502 fix(web-app-friendica): reset follow state so admin-follow-biber test stays deterministic
The earlier idempotent guard latched onto a hidden duplicate of biber's handle (submitButton.or(handle).first() resolved to a hidden vcard-short-addr div), so the follow test still timed out on the async pass.

Reset the relationship before following instead: a single GET to /contact/unfollow?auto=1&url=<profile> unfollows biber when already followed and is a harmless redirect otherwise. The follow confirmation form is then always fresh, so every run exercises the real follow action (submit, 302 to /contact/<id>, biber's handle).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-05 19:20:43 +02:00
kevinveenbirkenbachandClaude Opus 4.8 eca39f903d fix(web-app-friendica): make admin-follow-biber playwright test idempotent
The async deploy pass re-runs the suite against the same persistent instance, where biber is already a contact. /contact/follow then renders an "already added this contact" page without #dfrn-request-submit-button, so the test timed out 60s waiting for the submit button (only the sync pass passed).

Wait for the submit button or biber's identity handle, submit the confirmation only on the fresh-follow path, and assert biber's handle as the shared post-follow proof across both passes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-05 19:20:43 +02:00
kevinveenbirkenbachandClaude Opus 4.8 bfed033544 fix(web-app-funkwhale): start api with gunicorn and bind port
The api service had no command, so the CA-trust entrypoint wrapper ran the image entrypoint with no argument and it crash-looped (parameter not set). Pass command: gunicorn and set FUNKWHALE_API_PORT so the entrypoint binds 0.0.0.0:5000, matching the compose port mapping.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-04 20:06:35 +02:00
kevinveenbirkenbachandClaude Opus 4.8 dac52a7c42 fix(web-app-friendica): strip trailing slash from base URL
lookup('tls', ...).url.base keeps a trailing slash, so Friendica generated double-slash profile URLs (host//profile/<nick>) that broke local-follow contact resolution (no confirmation form rendered). Strip it via a shared FRIENDICA_BASE_URL var reused by env.j2 and the local.config.php patch.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-04 20:06:35 +02:00
kevinveenbirkenbachandClaude Opus 4.8 738533622a fix(web-app-erpnext): bypass v16 setup wizard via per-app completion
Frappe v16 gates the desk setup wizard on Installed Application.is_setup_complete per app and on the desktop:home_page default, not System Settings.setup_complete alone. Set the per-app flag, reset the setup-wizard home page, and clear cache so the native administrator lands on the desk.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-04 20:06:34 +02:00
kevinveenbirkenbachandClaude Opus 4.8 346e05692c fix(web-app-erpnext): drop separate assets volume for v16 startup
ERPNext v16 bakes built assets into /home/frappe/frappe-bench/assets and symlinks sites/assets to them on every container start via an entrypoint that runs 'rm -rf sites/assets' under 'set -e'. Mounting assets as a separate named volume nested inside the sites volume made that rm hit a mountpoint (Device or resource busy), crashing the backend and all dependent containers before gunicorn opened its TCP port.

Persist only sites and logs, matching upstream frappe_docker; assets are relinked from the image on each start.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-04 20:06:34 +02:00
infinito-nexus-updater[bot] 7762ce4372 update(images): update Docker image versions 2026-06-04 10:05:27 +00:00
kevinveenbirkenbach 19e8161c50 Merge pull request #298 from infinito-nexus/update/docker-image-versions-20260603-d1baba6
update(images): update Docker image versions
2026-06-04 11:17:41 +02:00
kevinveenbirkenbach 3c033451da Update services.yml 2026-06-03 17:39:10 +02:00
kevinveenbirkenbach a55a3c311f Update services.yml 2026-06-03 17:38:46 +02:00
kevinveenbirkenbach 3ac5dcf2b4 Update services.yml 2026-06-03 17:38:06 +02:00
kevinveenbirkenbach d142431f9c Release version 9.2.0 v9.2.0 2026-06-03 10:37:49 +02:00
infinito-nexus-updater[bot] 92e997db09 update(images): update Docker image versions 2026-06-03 07:18:03 +00:00
kevinveenbirkenbach 0c4ee01ea2 Merge pull request #297 from kevinveenbirkenbach/feature/web-app-erpnext
feat(web-app-erpnext): ship ERPNext role with OIDC SSO, LDAP, outbound mail
2026-06-03 08:57:37 +02:00
kevinveenbirkenbach a20ab3ca22 Merge branch 'main' into feature/web-app-erpnext 2026-06-02 22:23:30 +02:00
kevinveenbirkenbachandClaude Opus 4.7 23c4a33412 fix(web-app-erpnext): move subnet to 192.168.105.176/28 to avoid web-app-jitsi clash
The 192.168.105.160/28 slot is also claimed by the open web-app-jitsi PR
(#287). CI's network-uniqueness lint catches the overlap once both branches
are checked together. Move to .176/28 (next free slot in the 105.x band).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-02 22:23:10 +02:00
kevinveenbirkenbachandClaude Opus 4.7 014fa54ad3 feat(web-app-erpnext): ship ERPNext role with OIDC SSO, LDAP, outbound mail
Implements requirement docs/requirements/024-web-app-erpnext.md.

Stack (per frappe_docker v15 single-image multi-role pattern):
- configurator (one-shot bench set-config: db_host/port, three redis URLs
  split by DB number 0/1/2 for cache/queue/socketio, socketio_port, host_name
  HTTPS)
- backend (gunicorn), frontend (nginx-entrypoint.sh), websocket (socketio),
  scheduler, queue-short (--queue short,default), queue-long
  (--queue long,default,short)

Central-service consumer pattern (Decision #7):
- ERPNEXT_DB_ROOT_PASSWORD branches on services.mariadb.shared: central
  svc-db-mariadb root pw when true, per-role MariaDB consumer pw when false
- Redis via in-compose `redis` alias, 3-DB-number split for Frappe's logical
  buses
- Explicit erpnext_assets volume mount on every container (image's
  VOLUME ['sites/assets'] otherwise creates anonymous volumes that fail the
  hlth-volumes check)

Bench bootstrap (Decision #9):
- bench new-site --install-app erpnext with 30-min hard timeout
- Post-install restart of all long-lived Frappe containers (otherwise the
  cached app set serves HTTP 500 on /login)
- TCP-port readiness probe (HTTP would 404 pre-site)
- API-bot user seed + setup_complete=1 via apply_api_bot.py

OIDC (Decisions #4 + #5):
- redirect_uris filter auto-includes ERPNext in the shared Keycloak client
- Social Login Key wired via apply_oidc_settings.py with
  social_login_provider=Keycloak (delete+recreate due to set_only_once),
  custom_base_url=1, relative authorize/token/userinfo paths,
  auth_url_data={response_type:code,scope:openid}, login_via_keycloak
  redirect path
- Group-to-Frappe-role mapping persisted as a frappe.db default; per-login
  reconciliation hook deferred to follow-up (documented in README)

LDAP (V3): LDAP Settings doctype applied via apply_ldap_source.py. End-to-end
LDAP login (auto-create Frappe user from LDAP bind) deferred to follow-up;
LDAP-login Playwright specs intentionally absent in v1 (documented).

Email (Decision #8, outbound only): outbound Email Account applied via
apply_email_account.py using db_insert/db_update to bypass Frappe's
deploy-time SMTP socket validation. IMAP inbound deferred to follow-up.

Variant matrix (Decision #11): V1 sso+ldap, V2 all-false, V3 ldap-only.
Three variants verified end-to-end via
`make compose-deploy mode=reinstall apps=web-app-erpnext full_cycle=true
purge=true` — 6 PLAY RECAPs, all failed=0, all Playwright runs
passed-or-skipped with no failures.

Playwright specs: test-landing, test-csp-headers, test-login-administrator
(OIDC), test-login-biber (OIDC), test-login-native-administrator
(break-glass local login, always runs), test-guest-persona. _shared.js
exposes signInViaErpnextOidc + signInViaErpnextLocal.

Repo-wide lint addition: tests/lint/ansible/modules/test_task_name_length.py
caps Ansible task `name:` strings at 120 chars (opt-out via
`# nocheck: name-length`). Fixed two pre-existing violations in
web-app-keycloak/tasks/update/ldap/per_app_mapper_one.yml.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-02 21:01:38 +02:00
kevinveenbirkenbachandClaude Opus 4.7 e8a120f898 docs(requirements): add 024 web-app-erpnext with OIDC SSO
New requirement for a `web-app-erpnext` role that integrates ERPNext
(Frappe Framework) into Infinito.Nexus with OIDC-direct SSO against
Keycloak, reusing central `svc-db-mariadb` and `svc-db-redis` (three
Redis logical roles split by DB number 0/1/2 for cache/queue/socketio).

Captures 13 proposed design decisions for operator review before
implementation: upstream `frappe/erpnext` image pinning, central-service
reuse (Decision #7), wizard-bypass `bench` bootstrap (Decision #9),
Keycloak-group → Frappe-role reconciliation (Decision #5), Mailu IMAP
inbound + SMTP outbound (Decision #8), and the standard
V1/V2/V3 variant matrix (Decision #11) mirroring web-app-kix /
web-app-zammad. Out of scope for v1: multi-site / multi-tenant Frappe
(Decision #12).

Modeled on the layout precedents from web-app-odoo (ERP shape,
dual HTTP + WebSocket vhost) and web-app-zammad (central-service
reuse pattern, three-variant matrix).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-02 21:01:37 +02:00
kevinveenbirkenbach da58d93bde Merge pull request #286 from infinito-nexus/update/docker-image-versions-20260529-0fa0da1
update(images): update Docker image versions
2026-06-01 20:14:14 +02:00
kevinveenbirkenbach b9f6041804 Update services.yml 2026-06-01 20:11:50 +02:00
kevinveenbirkenbach d07dacf2f3 Update Friendica version to 2026.01 2026-06-01 20:11:02 +02:00
kevinveenbirkenbach 601e931ae7 Merge pull request #287 from kevinveenbirkenbach/feature/web-app-jitsi
feat(web-app-jitsi): Jitsi Meet role with oauth2-proxy + LDAP variants
2026-06-01 15:34:20 +02:00
kevinveenbirkenbach a7fbca5b09 Merge branch 'main' into feature/web-app-jitsi 2026-06-01 15:33:30 +02:00
kevinveenbirkenbach 85b9524cc2 Merge pull request #288 from infinito-nexus/dependabot/npm_and_yarn/eslint-10.4.1
chore(deps-dev): bump eslint from 10.4.0 to 10.4.1
2026-06-01 11:42:05 +02:00
kevinveenbirkenbach e423504919 Merge branch 'main' into update/docker-image-versions-20260529-0fa0da1 2026-06-01 11:35:28 +02:00
kevinveenbirkenbach 4a2beaa3e7 Release version 9.1.0 v9.1.0 2026-06-01 11:29:42 +02:00
kevinveenbirkenbach 794d28500e Merge pull request #269 from kevinveenbirkenbach/feature/web-app-zammad
feat(web-app-zammad): Zammad helpdesk role with OIDC SSO
2026-06-01 11:16:10 +02:00
dependabot[bot] c1215d3106 chore(deps-dev): bump eslint from 10.4.0 to 10.4.1
Bumps [eslint](https://github.com/eslint/eslint) from 10.4.0 to 10.4.1.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/compare/v10.4.0...v10.4.1)

---
updated-dependencies:
- dependency-name: eslint
  dependency-version: 10.4.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-01 02:41:17 +00:00
kevinveenbirkenbachandClaude Opus 4.7 fc39718599 chore: sync .dockerignore with .gitignore after .claude/hooks addition
`make setup` regenerates `.dockerignore` from `.gitignore` on every run.
The earlier commit that added `.claude/hooks` to `.gitignore` did not
re-emit the matching `.dockerignore`, so each CI invocation rewrote the
file — and the `pre-commit` framework reported `make test` as failed
("files were modified by this hook"), even though every test target
passed. Land the synced output here so the diff stays empty on a clean
deploy.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-01 00:15:22 +02:00
kevinveenbirkenbachandClaude Opus 4.7 6482e8eddf chore: sync .dockerignore with .gitignore after .claude/hooks addition
`make setup` regenerates `.dockerignore` from `.gitignore` on every run.
The earlier commit that added `.claude/hooks` to `.gitignore` did not
re-emit the matching `.dockerignore`, so each CI invocation rewrote the
file — and the `pre-commit` framework reported `make test` as failed
("files were modified by this hook"), even though every test target
passed. Land the synced output here so the diff stays empty on a clean
deploy.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-01 00:15:12 +02:00
kevinveenbirkenbachandClaude Opus 4.7 d5da1c116e fix(sys-svc-mail-msmtp,sys-ctl-hlth-msmtp): make health-check resilient on minimal images
CI run 26721196005 failed at:

  TASK [sys-service : sys-service | Fail after shared service diagnostics]
  msg: Unable to start service hlth-msmtp.9.0.2.infinito.nexus.service.

Two breakages in the start sequence:

1. `sys-ctl-hlth-msmtp/files/script.sh` called `hostname` in `$(...)`.
   The CI deploy containers ship without that binary, so `set -eu`
   aborted before msmtp ever saw stdin. Fall back to `${HOSTNAME:-...}`
   then `uname -n` then a literal "unknown".

2. `sys-svc-mail-msmtp/templates/msmtprc.conf.j2` hard-coded the trust
   file path per RedHat family — the file was missing on the deploy
   image and msmtp aborted with `Error while reading file. exit=66`.
   Probe a candidate list at deploy time (`SYS_SVC_MAIL_MSMTP_CA_BUNDLE_CANDIDATES`),
   pick the first existing path, surface it as
   `sys_svc_mail_msmtp_ca_bundle`, and install `ca-certificates`
   ahead of the probe.

`make test` 5/5 green (186 OK).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 22:35:12 +02:00
kevinveenbirkenbachandClaude Opus 4.7 3a3fd67180 fix(sys-svc-mail-msmtp,sys-ctl-hlth-msmtp): make health-check resilient on minimal images
CI run 26721196005 failed at:

  TASK [sys-service : sys-service | Fail after shared service diagnostics]
  msg: Unable to start service hlth-msmtp.9.0.2.infinito.nexus.service.

Two breakages in the start sequence:

1. `sys-ctl-hlth-msmtp/files/script.sh` called `hostname` in `$(...)`.
   The CI deploy containers ship without that binary, so `set -eu`
   aborted before msmtp ever saw stdin. Fall back to `${HOSTNAME:-...}`
   then `uname -n` then a literal "unknown".

2. `sys-svc-mail-msmtp/templates/msmtprc.conf.j2` hard-coded the trust
   file path per RedHat family — the file was missing on the deploy
   image and msmtp aborted with `Error while reading file. exit=66`.
   Probe a candidate list at deploy time (`SYS_SVC_MAIL_MSMTP_CA_BUNDLE_CANDIDATES`),
   pick the first existing path, surface it as
   `sys_svc_mail_msmtp_ca_bundle`, and install `ca-certificates`
   ahead of the probe.

`make test` 5/5 green (186 OK).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 22:30:53 +02:00
kevinveenbirkenbachandClaude Opus 4.7 033495d42f fix(dev-nix): guard nixbld set_fact against getent fail_key: false None values
Cherry-pick of bdc5945bc from feature/web-app-zammad, retargeted at
roles/dev-nix/tasks/02a_nix_install_only.yml (the include_tasks
companion file that 201670975 introduced on this branch).

Same root cause + fix as on the zammad branch:

  TASK [dev-nix : Set build group override for Nix installer when nixbld exists]
  Error while resolving value for 'dev_nix_installer_build_group_id':
  object of type 'NoneType' has no attribute 1

`getent` with `fail_key: false` inserts the key with a `None` value
when the entry is missing, so the membership test `'nixbld' in
ansible_facts.getent_group` evaluates True but `getent_group.nixbld[1]`
crashes on None. The guard now explicitly checks the value with
`is not none` for both `nixbld` (group) and `nixbld1` (passwd).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 20:51:13 +02:00
kevinveenbirkenbachandClaude Opus 4.7 f27e6337ee fix(dev-nix): guard nixbld set_fact against getent fail_key: false None values
CI run 26643336674 (feature/web-app-zammad) failed at:

  TASK [dev-nix : Set build group override for Nix installer when nixbld exists]
  Error while resolving value for 'dev_nix_installer_build_group_id':
  object of type 'NoneType' has no attribute 1

Root cause: `getent` with `fail_key: false` does NOT drop the key when
the entry is missing — it inserts the key with a `None` value. The
existing `when:` guard `'nixbld' in ansible_facts.getent_group`
therefore evaluates True (the membership test only checks the key, not
the value), and `getent_group.nixbld[1]` then crashes when the value
is None.

Fix: replace the membership check with an explicit `is not none`
assertion for both `nixbld` (group entry) and `nixbld1` (passwd entry).
A short comment above each `when:` block names the trap so the next
reader does not re-introduce the membership-only check.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 20:43:25 +02:00