Repository navigation
Rework authentication and harden sync reliability - #164
Merged
Merged
Conversation
Prevents an attacker from placing config.toml in a users current CWD to execute arbitrary commands when syncMyMoodle is run.
No reason to place session cookies in random CWDs
Acquire and validate Moodle mobile tokens, persist them through the configured secure store, and bootstrap browser sessions only when required. Rework configuration, setup, login, status, forget, and legacy migration flows around the token-first model while keeping secrets out of TOML and diagnostics.
Use the authenticated Moodle API for module metadata and quiz reviews, bound remote reads, validate redirects and response bodies, and handle transient Opencast, Sciebo, link, H5P, and quiz failures without leaking request secrets.
Make path materialization collision-safe and cross-platform, validate resumed transfers, preserve trustworthy metadata across incomplete scans, and keep conflict/cache cleanup behavior unambiguous and atomic.
Track the exact course, section, module, URL, and size rule that excludes an item, summarize exclusions after each run, and expose grouped redacted details through --show-filtered.
Rewrite installation, setup, token storage, migration, filtering, cleanup, and troubleshooting guidance; add the project logo; exercise Linux, macOS, and Windows in CI; and enforce the refactor's complexity ceiling.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a fundamental change to how syncMyMoodle works with a wide range of benefits!
Short summary of what this introduces:
--show-filteredto explain which courses and files were excluded.Based on top of #162
Closes #63
Closes #69
Closes #159