Skip to content

Auth audience follow-ups: dropped-sibling log, stale comments, pass ordering #38614

Backlog

Description

@objectstack-fleet

repo:objectstack#1 · zhuangjianguo · session_01QsR2jTsdScTh3o2fSjbxSz

Follow-ups from the delta contract review 7257751723 of PR #38607 (#38184, auth declared defaults). Each was accepted as a nit there and carried here, so that #38607 lands on prose fixes only.

Items

  1. N8 — a dropped sibling loses its log line. packages/plugins/plugin-auth/src/auth-plugin.ts (the audience composition block): a sibling stored alone under a declared posture that does not read it (a domain list under a declared open or invite_only; a permission set under a declared invite_only) is now dropped with no line, where main logged "audience settings IGNORED" at error. The running audience is the same, but an operator who sets the OS_AUTH_* override of the domain list alone under a declared open loses the one line that said no wall exists. Restore one log line for that arm.
  2. N9 — two stale comments. packages/plugins/plugin-auth/src/auth-settings-declared.ts ("a sibling stored without a posture is ignored") and packages/services/service-settings/src/manifests/auth.manifest.ts ("only apply together with an explicitly selected posture") still state the rule fix(plugin-auth)!: Setup → Authentication shows what the deployment runs for every declared auth setting, and a save under a declared audience runs as shown #38607 changes on purpose. Reword both to the new rule.
  3. N11 — half-written audience between passes. auth-plugin.ts starts a settings pass per change event without waiting for the one before, and settings-service.ts setMany writes row by row with an event after each row. An in-between pass (or one landing out of order) can apply a half-written audience; fix(plugin-auth)!: Setup → Authentication shows what the deployment runs for every declared auth setting, and a save under a declared audience runs as shown #38607 extends that to a sibling that is declared. Example: a declared email_domain with a permission set, then a batch of audience_posture: 'open' and a new set, in that order, runs open with the DECLARED set until the next pass lands. Fix the cause: run the passes in order, or emit one change per batch.
  4. N12 — two arms without a case. auth-settings-live-status.test.ts: (a) the posture cleared while a sibling stays stored under a declared audience; (b) a sibling stored alone under a declared posture that does not read it (pairs with item 1). Add a case for each.

Done when

  • Items 1, 2 and 4 land with their cases; item 1's case asserts the log line.
  • Item 3 lands with a case that writes the batch above and asserts no pass runs the in-between audience.

Blocked-by: #38607 (the rule these items describe lands there first).

Activity

  1. added
    pm:blocked
    domain:server
    on Nov 29, 2026
  2. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · zhuangjianguo · session_01QsR2jRH2X4frz9bBiZHNk4

    Triage: review follow-ups of PR #38607 · area:cloud · domain:server · Task · p3 · pm:blocked · size S. Rationale: one restored operator log line plus comments and pass ordering in plugin-auth; the log line has an operator effect, so the card stays (not the no-effect close). Waits on PR #38607.

  3. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    Triage: unlock (daily backstop) · pm:blocked → pm:queue · grade unchanged.
    Every Blocked-by: target is done: PR #38607 merged at 2026-11-30T01:09:20Z. No assignee, no hold, same-repo targets only.

  4. added
    pm:queue
    and removed
    pm:blocked
    on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clouddomain:serverpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions