Skip to content

Trust the Admins of an aggregated front-page weblog in the security model - #376

Open
snoopdave wants to merge 3 commits into
masterfrom
security-model-front-page-weblog
Open

snoopdave wants to merge 3 commits into
masterfrom
security-model-front-page-weblog

Conversation

@snoopdave

Copy link
Copy Markdown
Contributor

When the front page aggregates the site, its weblog's templates get the site-wide $site model, which reads across weblogs and users by design. The security model didn't say who that makes trusted.

  • docs/security-model.md treats the Admins of an aggregated front-page weblog as trusted, like global admins, for what that weblog's templates can read. Without aggregation, it stays an ordinary weblog.
  • The principles, user table, settings table, out-of-scope list and operator checklist say the same thing, with a new section that explains it.
  • CHANGES.md notes it under behaviour changes for 7.0.0.

Docs only. The 6.1.x copy of the model can follow once this is agreed.

…odel

With site.frontpage.weblog.aggregated=true, the front-page weblog's templates
get the site-wide $site model, which reads across weblogs and users by design.
The model now says so, treats that weblog's Admins as trusted for what its
templates can read, and adds matching entries to the settings table, the
out-of-scope list and the operator checklist.
@snoopdave
snoopdave requested a review from mraible November 23, 2026 17:23
Scope the exception in the one rule and Principles 1 and 2 to what the
aggregated front-page weblog's templates can read, name $planet with $site,
state the custom-themes condition, and say that only a global admin assigns
that weblog's Admins.
@snoopdave

Copy link
Copy Markdown
Contributor Author

Updated per review on the dev side: the exception is now scoped to what the aggregated front-page weblog's templates can read (the one rule, Principles 1 and 2), $planet is named with $site, the custom-themes condition is stated in Principle 2, the settings table and CHANGES, and the model says only a global admin assigns that weblog's Admins. That last part depends on #383 (and #381 on 6.1.x); the published-only lookup on #382 / #380.

@mraible mraible left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The update reads consistently now. Its statements about published entries and who can assign Admin depend on #382 and #383, so those should merge first or together.

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