Skip to content

Fix the security pages, the reviewed pages, and remove duplicate pages - #108

Open
DavidLambauer wants to merge 7 commits into
mainfrom
docs/content-audit-quick-wins
Open

DavidLambauer wants to merge 7 commits into
mainfrom
docs/content-audit-quick-wins

Conversation

@DavidLambauer

@DavidLambauer DavidLambauer commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

First batch of fixes from a content audit of the docs. Every change was checked against the Mage-OS 4.0.0 code.

Security

  • reporting-security-issues: the page told readers to email security@example.com and to use an example.com PGP key. It now gives the routes from Mage-OS's SECURITY.md: security@mage-os.org for issues that affect only Mage-OS, and Adobe's HackerOne program or psirt@adobe.com for code shared with Magento Open Source.
  • security-features-in-magento-2: removes the insecure advice:
    • an include() "secured" with escapeHtml(), which still allows ../ traversal;
    • unsalted getHash() for passwords;
    • "2FA is optional";
    • chmod 644 on every file;
    • settings that don't exist (cookie_secure, Uploader::isValid()).

Reviewed pages

These four pages have communityNote: false, so readers trust them most, but their samples failed when copied.

  • module-development:

    • adds registration.php and module:enable;
    • fixes the routes.xml path and the controller it reaches;
    • adds the di.xml preference the API needs;
    • uses PHP 8.4-safe nullable types;
    • declares the GraphQL type;
    • fixes the dev:tests:run options.
  • installation-guide:

    • installs with OpenSearch (Mage-OS 4 rejects elasticsearch7), and the search engine is now marked as required;
    • fixes the invalid JSON;
    • adds the download step that was missing from the Warden setup;
    • documents the new bin/magento install wizard.

    Lines 1–45 are untouched, because Add system requirements for Mage-OS 2.1.0 to 4.0.0 #107 changes them.

  • add-custom-shipping-carrier:

    • registers the module under one name, Vendor_ShippingCarrier. MageOS_ is the prefix of Mage-OS's own modules, and the registered name didn't match the module.xml name;
    • uses the right config.xsd.
  • directory-structure: removes the invented bin/setup, and corrects app/etc, app/i18n, generated/ and vendor/mage-os.

Removed pages

  • 13 unlinked duplicates:

    • nine XML pages: acl, cron_groups, db_schema, di, extension_attributes, fieldset, indexer, menu, routes;
    • webapi and widget;
    • two API/architecture pages: rest-apis-soap-apis, the-magento-application-and-service-contracts.

    They weren't in the navigation but still rendered at their own URLs.

  • 5 linked pages with no usable content:

    • the empty tutorials collection;
    • the architecture diagrams placeholder;
    • the Magento application admin tour;
    • the case studies, which invent an XML file and a module;
    • the extension use cases.

The navigation and the excludeFiles list in context7.json are updated to match. The site has no redirects, so the removed URLs return 404.

All XML samples validate against the 4.0.0 XSD files with xmllint, and all PHP samples pass php -l on PHP 8.4.

Tested on a running store

Every command and code sample on these pages was then run on a Mage-OS 4.0.0 store in Warden (PHP 8.4, MariaDB 11.8, OpenSearch 3.4, Valkey 8.1, Varnish 8.0, RabbitMQ 4.2), and the pages were corrected wherever the store behaved differently from what the code suggested. What needs several servers or outside services was checked in the code only.

Merge mage-os/devdocs-website#74 first: this pull request removes pages, and until that change is live the website answers a request for a removed page with a 500. #151 adds the redirects to the pages that replace them.

Merge order and notes for reviewers: #115.

🤖 Generated with Claude Code

DavidLambauer and others added 4 commits November 28, 2026 13:48
Delete the 13 pages that are not in the navigation. Each is an older
copy of a linked page (acl, di, routes, ...) or of the API pages, and
they still render at their own URLs and show up in search.

Also delete five linked pages that carry no usable content: the empty
tutorials collection, the architecture diagrams page (placeholder
boxes), the Magento application admin tour, the case studies (they
invent an XML file and a module) and the extension use cases (invented
extensions and APIs).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The page told readers to email security@example.com and to encrypt
with an example.com PGP key. Replace it with the routes from the
Mage-OS security policy: security@mage-os.org for Mage-OS-only issues,
Adobe's HackerOne program or psirt@adobe.com for code shared with
Magento Open Source.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
These four pages carry no AI banner, so readers trust them most, but
their samples failed when copied:

- module-development: add registration.php and module:enable, use
  etc/frontend/routes.xml and the controller path /custom reaches,
  map the web API interface with a di.xml preference, use explicit
  nullable types for PHP 8.4, declare the GraphQL type, and fix the
  dev:tests:run options.
- installation-guide: install with OpenSearch (Mage-OS rejects
  elasticsearch7), say the search engine is required, fix the invalid
  JSON, add the missing download step to the Warden setup, stop
  re-enabling every cache after disabling some, and describe the
  Mage-OS 4 bin/magento install wizard.
- add-custom-shipping-carrier: register the module under one name
  (Vendor_ShippingCarrier; MageOS_ is Mage-OS's own prefix), use the
  Magento_Store config.xsd, and describe shipping_cost correctly.
- directory-structure: drop the invented bin/setup and the duplicate
  dev entry, and describe app/etc, app/i18n, generated/ and
  vendor/mage-os correctly.

Lines 1-45 of installation-guide.md are untouched; #107 updates them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The page presented an include() guarded by escapeHtml() as safe (it
allows ../ traversal), hashed passwords with getHash() without a salt,
called admin 2FA optional, recommended chmod 644 on every file, and
pointed to settings that don't exist (cookie_secure,
Uploader::isValid()). Correct or remove each of these, describe
Argon2id hashing, mandatory 2FA and Mage-OS 4 passkeys, and link the
reporting page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DavidLambauer
DavidLambauer requested review from a team as code owners November 28, 2026 15:34
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every sample, command and the install wizard were run on a Mage-OS
4.0.0 store. Corrections:

- installation-guide: config:set --lock-env for the 2FA provider list
  writes an array to env.php that breaks every bin/magento command, so
  the Warden 2FA step no longer locks it; the wizard's "disable 2FA"
  step fails on 4.0, so the guide gives the module:disable command for
  passkeys and 2FA together; the cron line matches what cron:install
  writes; the dead mirror-list link is replaced.
- module-development: the API interface file name didn't match its
  class; template output is escaped; new routes and layouts need a
  cache:flush; the test command no longer reports FAILED on success.
- security-features: setup:install generates a random admin path, so
  there is no default "admin" path to change; adds the 12-character
  admin password rule and the stored hash format, and that the upload
  check accepts a PHP file named .jpg.
- add-custom-shipping-carrier: rates were confirmed through REST; the
  file tree and the country restriction are corrected.
- directory-structure, reporting-security-issues: small corrections.

Lines 1-45 of installation-guide.md stay untouched (#107).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gregor-RW

Copy link
Copy Markdown

Every deleted duplicate has a kept _xml version, and no other open PR links to any of the 18 deleted pages. One claim is wrong, and the other issues are minor.

  • reporting-security-issues.md line 20: Adobe's bug bounty moved from HackerOne to Intigriti.
  • Mage-OS's own SECURITY.md still names HackerOne too.
  • security-features-in-magento-2.md line 48: customer passkeys are off by default.
  • installation-guide.md: Warden needs WARDEN_VALKEY=1 from Magento 2.4.8 on.
  • installation-guide.md lines 47 and 60: three release dates are wrong. This PR did not change those lines.
  • AI view: the context7.json rules still describe Mage-OS 3.x.

… rule on the quick-win pages

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@DavidLambauer

Copy link
Copy Markdown
Contributor Author

Thanks, checked each point against the code and Adobe's pages (head now 33c5a3f):

  • HackerOne → Intigriti: correct, fixed on reporting-security-issues (Adobe's blog: the program went live on Intigriti on 1 September 2026). The Mage-OS SECURITY.md in mageos-magento2 still names HackerOne, which is outside this repo.
  • Customer passkeys are off by default (customer/passkey/enabled = 0 in the module's config.xml): fixed on security-features-in-magento-2.
  • context7.json: the PHP and RMA rules now say 3.x and 4.x.
  • Release dates in installation-guide: the tables move to system-requirements in Add system requirements for Mage-OS 2.1.0 to 4.0.0 #107, which carries the corrected dates, so I left them here.
  • WARDEN_VALKEY=1: Warden's magento2 env-init defaults to WARDEN_REDIS=1, and the Redis-based steps on the page work with it, so I didn't change them. Using Valkey in Warden is a separate option I'd add as its own change.

🤖 Generated with Claude Code

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.

2 participants