Commit Graph
7405 Commits
Author SHA1 Message Date
kevinveenbirkenbach ea2e01fb2c Merge pull request #303 from evangelostsak/feature/web-app-penpot
feat(web-app-penpot): add Penpot design & prototyping platform role
2026-06-10 20:43:16 +02:00
evangelostsak 72a56b8aa8 fix(web-app-penpot): derive native_login/registration from sso flag (variant-aware)
The all-off matrix variant pins services.sso.enabled=false while
web-app-keycloak stays in group_names, so the previous group_names-based
defaults yielded disable-login-with-password AND no OIDC — leaving no usable
login method, and the native Playwright test failed (no password form).

Derive both toggles from PENPOT_SSO_ENABLED (the variant-aware sso flag),
matching how the oidc/ldap flags are already computed:
- native_login = not sso  (off under OIDC, on otherwise)
- registration = sso       (on under OIDC for JIT provisioning)

Drops the services.penpot.native_login / registration_enabled meta keys
(a group_names default can't see variant overrides). README + req-023 updated.
2026-06-10 18:03:04 +02:00
evangelostsak e7a799f542 feat(web-app-penpot): disable native login under OIDC (Kevin review)
- meta/services.yml: new `penpot.native_login` toggle, default off when
  web-app-keycloak is present (forces SSO), on otherwise.
- vars: PENPOT_FLAGS renders enable-/disable-login-with-password from it.
- tasks: administrator local-password bootstrap gated on native_login.
- playwright: test-login-native.js skips when `sso` is enabled.
- meta/main.yml: drop the Figma parenthetical from the description.
- README + req-023 updated.
2026-06-10 15:35:03 +02:00
evangelostsak e6afb12078 Merge upstream/main into feature/web-app-penpot
# Conflicts:
#	docs/requirements/README.md
2026-06-10 14:07:51 +02:00
evangelostsak 6b6b335a93 chore: sync .claude/settings.json allow-list with upstream (bind-mounted, staged via index) 2026-06-10 14:06:03 +02:00
kevinveenbirkenbach f4825d811a Merge pull request #308 from infinito-nexus/update/repository-refs-20260610-acb58d2
update(repos): bump git refs to latest semver tags
2026-06-10 10:24:18 +02:00
infinito-nexus-updater[bot] c30c7c665a update(repos): bump git refs to latest semver tags 2026-06-10 08:15:53 +00:00
kevinveenbirkenbach b304a78c3b Merge pull request #307 from infinito-nexus/update/docker-image-versions-20260610-524005b
update(images): update Docker image versions
2026-06-10 10:08:12 +02:00
kevinveenbirkenbach 87e4264fff Merge pull request #306 from infinito-nexus/update/repository-refs-20260610-9714798
update(repos): bump git refs to latest semver tags
2026-06-10 10:07:47 +02:00
infinito-nexus-updater[bot] c0bfe446dc update(images): update Docker image versions 2026-06-10 08:07:28 +00:00
kevinveenbirkenbach 6aca9fb753 Merge pull request #300 from kevinveenbirkenbach/feature/web-app-element-ansible
feat(web-app-matrix): ansible flavor (matrix-docker-ansible-deploy) via full DiD
2026-06-10 09:56:41 +02:00
infinito-nexus-updater[bot] 97afa53705 update(repos): bump git refs to latest semver tags 2026-06-10 02:09:57 +00:00
kevinveenbirkenbach 4fba2bda99 Merge pull request #305 from infinito-nexus/dependabot/docker_compose/coredns/coredns-1.14.4
chore(deps): bump coredns/coredns from 1.14.3 to 1.14.4
2026-06-10 03:47:42 +02:00
dependabot[bot] 4fa503ed05 chore(deps): bump coredns/coredns from 1.14.3 to 1.14.4
Bumps coredns/coredns from 1.14.3 to 1.14.4.

---
updated-dependencies:
- dependency-name: coredns/coredns
  dependency-version: 1.14.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-10 00:07:07 +00:00
evangelostsak 4c051d9939 fix(web-app-penpot): registration on for OIDC JIT + split login specs per persona
Biber OIDC login failed the deploy with `?error=registration-disabled`:
Penpot routes first-time OIDC logins through the registration path, so a
disabled flag blocks JIT-provisioning of not-yet-seen federated users
(admin already existed, biber did not). LDAP self-provisions without it.

- meta/services.yml: registration_enabled now follows OIDC (on when
  web-app-keycloak is present), off otherwise; native admin is bootstrapped
  and LDAP needs no registration. vars/README/req-023 updated to match.
- playwright: split the combined OIDC and LDAP login specs into one file
  per persona — test-login-{oidc,ldap}-{admin,biber}.js — wired through the
  orchestrator; README Testing section updated.
2026-06-10 01:02:55 +02:00
kevinveenbirkenbachandClaude Opus 4.7 2870fb7ada fix(web-app-matrix): recover MDAD bootstrap from stale marker
When matrix-mdad is recreated, the systemd unit dir is fresh but the
state volume keeps the marker. ConditionPathExists then skips bootstrap
and Synapse never gets a unit. Drop the condition, gate skip on marker
AND matrix-synapse.service existence, and remove a stale marker on
mismatch so bootstrap re-runs.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-09 23:57:05 +02:00
evangelostsak e88a102354 fix(web-app-penpot): drop dead default() flagged by lint
- tasks/main.yml: remove `| default('')` from changed_when on command
  results (stdout always set when the conditional fires) per
  test_no_redundant_default_on_module_io.
- env.j2: drop `| default('')` on LDAP.SERVER.SECURITY (defined
  unconditionally in group_vars/all/12_ldap.yml) per
  test_no_jinja_default_on_spot_path.
2026-06-09 23:39:38 +02:00
evangelostsakandClaude Opus 4.8 532c2893d6 feat(web-app-penpot): native local-password login + docs
Bootstrap a local password for the administrator profile via the backend
PREPL (enable-prepl-server) so native email/password login works alongside
OIDC/LDAP. Adds enable-login-with-password and a registration toggle driven
by services.penpot.registration_enabled (off once OIDC is the login path).

- vars: PENPOT_FLAGS gains password login + prepl + conditional registration;
  PENPOT_REGISTRATION_ENABLED and PENPOT_ADMIN_{EMAIL,PASSWORD,FULLNAME}.
- tasks: idempotent create-profile / update-profile bootstrap (no_log).
- playwright: test-login-native.js drives the local password Login button.
- README + requirement 023: native login, registration toggle, canonical
  domain penpot.design, CA-trust gating, spec split; tick project/asset
  coverage; fix header 235 -> 023.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 23:21:20 +02:00
evangelostsak 8cccf8dee8 fix(web-app-penpot): address Kevin's PR review (web-app-penpot)
- spec: split the monolithic Playwright spec into per-surface companions
  (_shared.js + test-login-{native,oidc,ldap}.js) required by playwright.spec.js;
  OIDC and LDAP cover both administrator and biber; native registers a local
  account (skips when OIDC is the login path / registration disabled).
- meta/main.yml: description now describes the application, not the role.
- meta/server.yml: canonical domain -> penpot.design.{{ DOMAIN_PRIMARY }}.
- meta/info.yml: add upstream intro video.
- meta/services.yml + vars: registration_enabled default in services.yml
  (off when OIDC enabled, operator-overridable); PENPOT_FLAGS toggles
  enable/disable-registration accordingly.
- templates/env.j2: bind PENPOT_SMTP_ENABLED to email.enabled and
  PENPOT_LDAP_SSL/STARTTLS to LDAP.SERVER.SECURITY (constants, not literals).
- templates/compose.yml.j2: trim the backend comment to the exception and gate
  the JVM CA-trust import behind self-signed TLS (no-op in production); readable
  YAML block.
- templates/playwright.env.j2: dotenv_quote APP_BASE_URL; drop redundant blank lines.

Verified live: 5 passed, 6 skipped, 0 failed (OIDC/project/asset skip on this
sso-off deploy; native + LDAP + baseline + guest pass).
2026-06-09 23:02:26 +02:00
kevinveenbirkenbachandClaude Opus 4.7 d06eb6ea15 fix(web-app-matrix): mount Infinito self-signed CA into MDAD runner + Synapse
Local V1 deploy with full Infinito stack reproduced the CI Playwright
failure: OIDC login showed 'This login provider is unavailable right
now.' because Synapse's Twisted HTTP client could not validate the
self-signed cert behind https://auth.infinito.example, leading to
OidcDiscoveryError. Verified the failure in-container via curl from
the matrix-synapse container (`SSL certificate problem: unable to get
local issuer certificate`).

The Infinito compose-CA injector wraps each compose service's
entrypoint with a trust-store install — but only the matrix-mdad
service is a compose service. The MDAD-managed inner containers
(synapse / element / bridges / jitsi) are launched by MDAD's docker
daemon inside matrix-mdad and never see Infinito's CA wrapper.

- services.yml.j2: bind-mount CA_TRUST.cert_host into matrix-mdad
  itself, gated on TLS_MODE == 'self_signed', so the CA file is
  reachable for re-mounting into inner containers. Same path inside
  matrix-mdad as on the host, so MDAD's docker run --mount src=...
  resolves correctly.
- vars.yml.j2: matrix_synapse_container_extra_arguments now bind-mounts
  the CA from {{ CA_TRUST.cert_host }} into the synapse container at
  MATRIX_CA_MOUNT_PATH and exports SSL_CERT_FILE / REQUESTS_CA_BUNDLE
  so synapse's Twisted client and any python-requests calls validate
  against it. Gated on TLS_MODE == 'self_signed' — no injection on
  letsencrypt / off TLS modes.
- vars/main.yml: MATRIX_CA_MOUNT_PATH constant for the in-container
  cert destination so the path is defined in exactly one place.

Verified live in-container after the patch: synapse curl to OIDC
discovery succeeds without -k, /_matrix/client/r0/login surfaces the
oidc-keycloak provider, and SSO redirect returns 302.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-09 19:12:06 +02:00
kevinveenbirkenbachandClaude Opus 4.7 0681c00c78 fix(web-app-matrix): drop iptables-legacy switch in DiD runner
Local V1 deploy diagnostic showed docker.service inside matrix-mdad
failing repeatedly:

  iptables -t nat -N DOCKER: iptables v1.8.11 (legacy):
  can't initialize iptables table 'nat': Table does not exist

The runner Dockerfile forced iptables-legacy via update-alternatives;
on a Debian 13 host with nf_tables as the kernel default the legacy
backend can't see the nat table, so the inner dockerd never starts,
matrix-mdad-bootstrap.service stays in 'dependency failed' state, and
the Synapse loopback probe times out for the full retry budget.

Drop the override and let Debian's default (iptables-nft, which talks
to nftables natively) be selected. The host's nf_tables stack is then
addressable from inside the DiD container.

Tests: 186/186 green.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-09 15:44:43 +02:00
kevinveenbirkenbachandClaude Opus 4.7 81d6db9e07 fix(web-app-matrix): correct port forwards for synapse on host network
CI failure 27049736006 showed the probe at http://127.0.0.1:8021 timed
out (Connection reset by peer) for the full 15-min budget even though
matrix-mdad and its inner synapse were running.

Root cause: with matrix_synapse_container_network=host, MDAD's docker
run -p flag (rendered from matrix_synapse_container_client_api_host_bind_port)
is silently ignored — host networking does not use port mappings.
Synapse binds inside matrix-mdad's network namespace on its native
container port (8008 client, 8048 federation), not on the
externally-advertised host bind port. The outer compose service was
forwarding host 127.0.0.1:8021 -> matrix-mdad:8021, where nothing was
listening.

- services.yml.j2: outer compose port forwards now target the real
  internal synapse / federation / element ports (8008 / 8048 / 8080).
  Host ports stay aligned with MATRIX_SYNAPSE_PORT / MATRIX_ELEMENT_PORT
  / MATRIX_FEDERATION_PORT so the front-proxy targets a single 127.0.0.1
  port regardless of flavor.
- vars.yml.j2: drop the now-useless matrix_synapse_container_*_host_bind_port
  and matrix_client_element_container_http_host_bind_port settings —
  they only render a -p flag MDAD would ignore on --network=host.

Tests: 186/186 green.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-09 13:37:42 +02:00
evangelostsak ae3eb76e6a add trailing new_line no meet CI tests 2026-06-06 17:33:51 +02:00
evangelostsak 771c449c8f feat(web-app-penpot) add missing requirement file used by the agent and its necessary documentation 2026-06-06 17:24:05 +02:00
evangelostsak a90fc621a8 revert(tests): remove unnecessary empty __init__.py files
Per reviewer feedback: the 59 __init__.py added by the earlier
'restore missing __init__.py' commit sit in test directories that are
empty on the rebased branch (no test files) and do not exist on
upstream. They were leftovers from the pre-rebase test layout. Removing
them; on a fresh checkout those empty dirs do not exist, so
tests/lint/filesystem/test_init_files.py has nothing to flag.
2026-06-06 17:10:52 +02:00
evangelostsak b7f0f81e5b fix(web-app-penpot): move subnet to 192.168.105.192/28 (avoid upstream erpnext collision)
Upstream main added web-app-erpnext on 192.168.105.176/28, which now
collides with web-app-penpot after the rebase. test_unique_subnets /
test_no_overlapping_subnets failed in manual CI (run 27055475680).
Reassign penpot to the next free /28 (192.168.105.192/28).
2026-06-06 09:25:27 +02:00
evangelostsak c5aabd3319 feat(web-app-penpot) Change AUTHOR 2026-06-06 08:22:13 +02:00
evangelostsak 15502403ff fix(web-app-penpot): drop unused spec var + holder image (CI: js-lint + image-mirror)
Manual CI (run 27030584621) failed two branch-caused jobs:

- lint-javascript: no-unused-vars on `expectedBase` in the spec's
  penpotLdapLogin (the LDAP path asserts on /auth/login, not the base
  URL). Remove the dead binding (eslint now 0 errors).
- images-mirror-missing: the `penpot` metadata holder carried
  `image: penpotapp`, so the mirror tried docker.io/library/penpotapp:2.5.4
  (access denied — not a real image). The real images live on the
  frontend/backend/exporter entities; the holder only needs `version`
  (the shared tag). Drop the holder image (matches taiga/openproject).
2026-06-06 08:22:13 +02:00
evangelostsak 76c4cf52b1 fix(tests): restore missing __init__.py after test folder split
An earlier 'refactor(tests): split overflowing folders into thematic
subdirs' commit left 59 directories under tests/ without the __init__.py
package marker that tests/lint/filesystem/test_init_files.py requires,
making the lint suite red independently of any role change. Recreate the
empty markers so the suite passes.
2026-06-06 08:22:13 +02:00
evangelostsak 83ab973dfa feat(web-app-penpot): live-verify OIDC/LDAP + project/asset; JVM CA-trust fix; archive req 235
Deployed Penpot + Keycloak + OpenLDAP end to end and drove the per-role
Playwright suite green against the live stack (8 passed, 2 skipped):
TLS baseline, OIDC (administrator + biber), LDAP (administrator + biber),
project creation, and image asset upload. The two skips are the generic
biber/administrator persona scenarios, declared blocked via
PERSONA_*_BLOCKED (mirroring web-app-taiga): Penpot's in-app "OpenID"
login entry and SPA user-menu logout are not driveable by the generic
persona helper, so both users' real auth is exercised by the dedicated
OIDC + LDAP scenarios.

Fixes found during bring-up:
- OIDC JVM CA trust: the backend command imports the internal CA into a
  writable cacerts copy and points the JVM at it via JAVA_TOOL_OPTIONS.
  with-ca-trust.sh covers OS/NSS/env trust but not the JVM truststore, so
  server-side token/userinfo calls to Keycloak failed with "PKIX path
  building failed". CA path hardcoded (the CA-override double-escapes a $).
- disable-onboarding added to PENPOT_FLAGS so users land on the dashboard.
- Playwright env: ADMIN_EMAIL/BIBER_EMAIL for the LDAP form; alphabetised.

Requirement 235 is fully checked off and archived out of docs/requirements/.
2026-06-06 08:22:13 +02:00
evangelostsak edef635fbb feat(web-app-penpot): add Penpot design platform role (req 235)
Add a new `web-app-penpot` role deploying Penpot's frontend + backend +
exporter containers behind the standard reverse proxy, with shared
svc-db-postgres and a svc-db-redis sidecar. Wires native OIDC (Keycloak)
and LDAP (OpenLDAP) login via PENPOT_FLAGS, CSP/vhost via sys-stk-full,
backup-ready asset volume, marketplace tags, matrix variants
(all-on/all-off/LDAP-only), and a service-gated Playwright spec with
guest/biber/administrator personas plus separate OIDC and LDAP scenarios.

Implements docs/requirements/235-setup-penpot.md. Live-deploy DoD items
(fresh-host deploy, domain reachability, full in-container `make test`)
remain unverified in the sandbox and are left unchecked.
2026-06-06 08:22:13 +02:00
evangelostsak 4757a639b0 revert: clean branch to upstream main state
Remove the entire web-app-penpot role, all associated docs, and all other
changes accumulated on this branch. Working tree now matches origin/main
exactly. Commit history preserved for reference.
2026-06-06 08:22:13 +02:00
evangelostsak 0adeb2eb32 revert(branch-cleanup): restore all non-penpot files to origin/main state
Remove changes to test-e2e-playwright, opencloud/opentalk/wordpress specs,
shellcheck script, integration tests, and utils that were accidentally
committed alongside the web-app-penpot role implementation.

Only roles/web-app-penpot/ and docs/requirements/006-setup-penpot.md
should differ from main on this branch.
2026-06-06 08:22:13 +02:00
evangelostsak d57c0aca2d feat(web-app-penpot): complete role setup with playwright e2e tests
- Move playwright spec to roles/web-app-penpot/files/playwright/ (standard location)
- Fix APP_BASE_URL: use normalizeUrl() to strip dotenv_quote double-quotes
- Gate biber/admin tests with safeSkipUnlessEnabled('oidc') (penpot requires OIDC)
- Add meta/variants.yml with all-true, all-false, LDAP-only variants
- Fix templates: use container_depends_on lookup, correct LDAP group vars
- Align services.yml: javascript service static false with nocheck comment
- Update playwright.env.j2: OIDC_SERVICE_ENABLED env var for service gate
- All make test targets pass (lint, test-unit, test-integration, test-lint, test-external)
2026-06-06 08:22:13 +02:00
evangelostsak 609d3cc10e fix(ci): unblock penpot deploy and user secrets 2026-06-06 08:22:13 +02:00
evangelostsak 8e3c3eb0f2 fix(web-app-penpot): resolve metadata collisions 2026-06-06 08:22:13 +02:00
evangelostsak 7d6a835b9b fix(web-app-penpot): update backend http port from 8071 to 8074 2026-06-06 08:22:13 +02:00
evangelostsak 6f6d7c1d17 fix(web-app-penpot): fix subnet collision (use .80/28) and merge duplicate penpot service key with lifecycle:beta 2026-06-06 08:22:13 +02:00
evangelostsak 8b362fa216 fix(web-app-penpot): rename service key frontend→penpot to match entity name for sys-stk-full port resolution 2026-06-06 08:22:13 +02:00
evangelostsak 93b9a4ca1f fix(web-app-penpot): restore csp.flags nesting in server meta 2026-06-06 08:22:13 +02:00
evangelostsak 827bffc10f fix(web-app-penpot): add networks.local.subnet to meta/server.yml (req-009) 2026-06-06 08:22:13 +02:00
evangelostsak 820388bd95 Add initial integration tests for ports 2026-06-06 08:22:13 +02:00
evangelostsak c2f5a31d32 Refactor Penpot configuration to align service paths in main.yml 2026-06-06 08:22:13 +02:00
evangelostsak 67cc30a5d6 Remove administrator user configuration from Penpot web app 2026-06-06 08:22:13 +02:00
evangelostsak 54f5859f51 Add proxy configuration for Penpot web app 2026-06-06 08:22:13 +02:00
evangelostsak 3d69c905b5 Add JVM_OPTS configuration for Penpot backend 2026-06-06 08:22:13 +02:00
evangelostsak c15c61c671 Update Penpot service configurations in compose.yml.j2 for frontend, backend, exporter, and redis 2026-06-06 08:22:13 +02:00
evangelostsak ac9dfa299e Remove schema for Penpot secret key credentials 2026-06-06 08:22:13 +02:00
evangelostsak 1995944eca Add assets volume configuration for Penpot web app 2026-06-06 08:22:13 +02:00
evangelostsak 482486e6ae Add administrator user configuration to users.yml for Penpot web app 2026-06-06 08:22:12 +02:00