Skip to content

Moodle Syncloud app#1

Open
cyberb wants to merge 47 commits into
masterfrom
wio
Open

Moodle Syncloud app#1
cyberb wants to merge 47 commits into
masterfrom
wio

Conversation

@cyberb

@cyberb cyberb commented Jul 13, 2026

Copy link
Copy Markdown
Member

Packages Moodle 4.5.12 as a Syncloud app.

Stack: nginx (unix socket) → PHP-FPM → MariaDB, Go/Cobra installer hooks, config.php generated into $SNAP_DATA, moodledata on platform storage, LDAP auth against the platform directory, cron daemon for admin/cli/cron.php. CLI install/upgrade via admin/cli.

CI: amd64 + arm64, bookworm + buster, publish via store-publisher.

cyberb added 30 commits July 13, 2026 18:20
PHP-FPM + nginx + MariaDB stack modelled on the wordpress app and the
2026 porting guide: Go/Cobra installer hooks, unix-socket internal comms,
config.php generated into $SNAP_DATA, moodledata on platform storage,
LDAP auth against the platform directory, a cron daemon running
admin/cli/cron.php, and CLI-based install/upgrade via
admin/cli/install_database.php and admin/cli/upgrade.php.

CI covers amd64 + arm64 on bookworm + buster and publishes via the
store-publisher image.
…stration)

Vendor microsoft/moodle-auth_oidc 4.5.7, register an OIDC client with the
platform (RegisterOIDCClient), and configure the plugin (idptype=OIDC,
Authelia authorization/token endpoints, client secret) with auth=oidc,manual.
Disable Moodle user tours so their aria-hidden overlay does not block the
Playwright navigation. Robust post-login assertion.
…in-page anchors, not pages); preferences via scoped user-menu href
…>siteadmin mapping

Set auth=oidc so the login page shows only the Syncloud IdP button; request
the groups scope; bundle a local_syncloud plugin that on login promotes users
in the 'syncloud' platform group to Moodle site admin (others stay regular).
e2e now logs in through the real OIDC/Authelia flow as the device user;
site-administration screenshot is captured only when the user is admin.
…n body); e2e asserts logged-in via user menu
…able Moodle developer error display to surface the OIDC error
…kedhosts) so the token request is not SSRF-blocked
…output was only breaking the post-login redirect)
cyberb added 17 commits July 14, 2026 18:14
…n (true OIDC-only); e2e follows the auto-redirect to Authelia
…age, which has no armv7; enables the arm pipeline
…rols them, and views the course via 'Log in as'
… not auto-refresh) instead of the temp snap download hack
…, drop -arch from image ref and remove the platform refresh step
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant