portal: DA-S2's community door lands on the apex root (#1345) and the kanidm invite link is minted absolute on the Portal (spec #1361 s24, 38) #1368

Closed
opened 2026-09-10 00:56:42 +00:00 by ben · 2 comments
Owner

Parent

Spec #1361 (the Portal); program map #1336; design contract DDR 0232 / ADR 0233, flow docs/ux/flows/portal.mermaid, wireframes docs/ux/wireframes/portal/. Slice refusal-brand-and-invite-link in docs/slices/portal.yaml.

What to build

Production wires RefusalBrand{PortalURL: hostnames.Portal(apex), name, logo} so DA-S2's community door is the absolute apex (#1345) and the refusal wears the real brand; the kanidm invite link is minted absolute on hostnames.Portal (haere-mai). Seam: the refusal tests, the invite tests.

Acceptance criteria

  • Given production with an apex configured, when the refusal page is wired, then RefusalBrand carries the community name, logo and PortalURL = https:///.
  • Given DA-S2's community door, when pressed, then the browser lands on https:/// (PT-S1 or PT-S0), never back on the refusal.
  • Given a kanidm invite is minted, when its link is rendered anywhere (roster, copy), then it is the absolute https:///haere-mai/.

Blocked by

  • None — can start immediately (bootstrap:skeleton is closed).

Task manifest

task: refusal-brand-and-invite-link
implements_flow: portal
implements_edge: DA-S2→PT-S1 (the refusal's community door lands on the apex root)
wireframe: ''
interface: ''
seam: controlapi refusal tests + member invite tests
acceptance:
- given: production with an apex configured
  when: the refusal page is wired
  then: RefusalBrand carries the community name, logo and PortalURL = https://<apex>/
- given: DA-S2's community door
  when: pressed
  then: the browser lands on https://<apex>/ (PT-S1 or PT-S0), never back on the refusal
- given: a kanidm invite is minted
  when: its link is rendered anywhere (roster, copy)
  then: it is the absolute https://<apex>/haere-mai/<token>
depends_on:
- bootstrap:skeleton
out_of_scope:
- operator truth on the Portal
- operator notices / per-service public switch
- IDIP identity door
- mail on IDIP (stated limit)
- IDIP browser sign-in UX (#1302)
needs_human_decision: []
## Parent Spec **#1361** (the Portal); program map **#1336**; design contract DDR 0232 / ADR 0233, flow `docs/ux/flows/portal.mermaid`, wireframes `docs/ux/wireframes/portal/`. Slice `refusal-brand-and-invite-link` in `docs/slices/portal.yaml`. ## What to build Production wires RefusalBrand{PortalURL: hostnames.Portal(apex), name, logo} so DA-S2's community door is the absolute apex (#1345) and the refusal wears the real brand; the kanidm invite link is minted absolute on hostnames.Portal (haere-mai). Seam: the refusal tests, the invite tests. ## Acceptance criteria - [ ] Given production with an apex configured, when the refusal page is wired, then RefusalBrand carries the community name, logo and PortalURL = https://<apex>/. - [ ] Given DA-S2's community door, when pressed, then the browser lands on https://<apex>/ (PT-S1 or PT-S0), never back on the refusal. - [ ] Given a kanidm invite is minted, when its link is rendered anywhere (roster, copy), then it is the absolute https://<apex>/haere-mai/<token>. ## Blocked by - None — can start immediately (bootstrap:skeleton is closed). ## Task manifest ```yaml task: refusal-brand-and-invite-link implements_flow: portal implements_edge: DA-S2→PT-S1 (the refusal's community door lands on the apex root) wireframe: '' interface: '' seam: controlapi refusal tests + member invite tests acceptance: - given: production with an apex configured when: the refusal page is wired then: RefusalBrand carries the community name, logo and PortalURL = https://<apex>/ - given: DA-S2's community door when: pressed then: the browser lands on https://<apex>/ (PT-S1 or PT-S0), never back on the refusal - given: a kanidm invite is minted when: its link is rendered anywhere (roster, copy) then: it is the absolute https://<apex>/haere-mai/<token> depends_on: - bootstrap:skeleton out_of_scope: - operator truth on the Portal - operator notices / per-service public switch - IDIP identity door - mail on IDIP (stated limit) - IDIP browser sign-in UX (#1302) needs_human_decision: [] ```

swarm-claim host=matou-dev-server-01 run=20958
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=20958 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1368 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1368,
  "status": "success",
  "commits": [
    "2923daa2d4875ff46d55a1a8a0464b5fe0884ca0"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/main.go",
    "control-plane/cmd/control-plane/refusal_brand.go",
    "control-plane/cmd/control-plane/refusal_brand_wiring_test.go",
    "control-plane/cmd/control-plane/whole_composition.go",
    "internal/controlapi/authgate.go",
    "internal/controlapi/authgate_test.go",
    "internal/member/invite.go",
    "internal/member/invite_test.go",
    "internal/member/member.go"
  ],
  "tests": [
    {
      "command": "go build ./...",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/member/... ./internal/controlapi/... ./control-plane/cmd/control-plane/...",
      "exit_code": 0
    },
    {
      "command": "gofmt -l internal/member/ internal/controlapi/ control-plane/cmd/control-plane/",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/member/ ./internal/controlapi/ ./control-plane/cmd/control-plane/ ./internal/hostnames/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Given production with an apex configured, when the refusal page is wired, then RefusalBrand carries the community name, logo and PortalURL = https://<apex>/": "productionRefusalBrand(apex, community) returns RefusalBrand{Community, PortalURL: hostnames.Portal(apex)} (control-plane/cmd/control-plane/refusal_brand.go); the community-logo slot is derived from Community by refusal.go's refusalLogo. main.go wires it live via productionRefusalBrandSource(apex, communityNameReader(repo)) so the name reaches the page after founding. Pinned by TestProductionRefusalBrand_ApexGivesAbsolutePortalDoorAndName + TestProductionRefusalBrandSource_ReadsNameLive (refusal_brand_wiring_test.go) and TestAuthGate_RefusalBrandReadLivePerDeny (authgate_test.go).",
    "Given DA-S2's community door, when pressed, then the browser lands on https://<apex>/ (PT-S1 or PT-S0), never back on the refusal": "PortalURL stays the absolute hostnames.Portal(apex) (unchanged from #1345); the refusalOperators (DA-S2) case keeps the open-portal door pointing at https://<apex>, off the gated admin.<apex>. Pinned by TestRenderRefusalSurface_OperatorsOnlyPanel + TestRenderRefusalSurface_PortalDoorIsAbsoluteWhenApexConfigured (refusal_test.go) and the wiring test.",
    "Given a kanidm invite is minted, when its link is rendered anywhere (roster, copy), then it is the absolute https://<apex>/haere-mai/<token>": "member.WithInviteBaseURL(hostnames.Portal(apex)) makes Orchestrator.MintInvite render inviteLink() = https://<apex>/haere-mai/<token>, stored as Invite.Link+QR and returned by OpenInvites (roster); the dashboard InviteScreen renders minted.link raw for display + copy. Wired in production via memberComposeOpts(deps.apex) (whole_composition.go). Pinned by TestMintInvite_AbsoluteLinkOnPortalBase (mint + roster) and TestMintInvite_RelativeLinkWithoutBase (relative fallback preserved)."
  },
  "summary": "The gate-served refusal now wears the community name/logo (read live per deny) beside the absolute Portal door, and the kanidm invite link is minted absolute on hostnames.Portal (https://<apex>/haere-mai/<token>).",
  "blockers": []
}
**close-report** for #1368 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1368, "status": "success", "commits": [ "2923daa2d4875ff46d55a1a8a0464b5fe0884ca0" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/main.go", "control-plane/cmd/control-plane/refusal_brand.go", "control-plane/cmd/control-plane/refusal_brand_wiring_test.go", "control-plane/cmd/control-plane/whole_composition.go", "internal/controlapi/authgate.go", "internal/controlapi/authgate_test.go", "internal/member/invite.go", "internal/member/invite_test.go", "internal/member/member.go" ], "tests": [ { "command": "go build ./...", "exit_code": 0 }, { "command": "go vet ./internal/member/... ./internal/controlapi/... ./control-plane/cmd/control-plane/...", "exit_code": 0 }, { "command": "gofmt -l internal/member/ internal/controlapi/ control-plane/cmd/control-plane/", "exit_code": 0 }, { "command": "go test ./internal/member/ ./internal/controlapi/ ./control-plane/cmd/control-plane/ ./internal/hostnames/", "exit_code": 0 } ], "criteria": { "Given production with an apex configured, when the refusal page is wired, then RefusalBrand carries the community name, logo and PortalURL = https://<apex>/": "productionRefusalBrand(apex, community) returns RefusalBrand{Community, PortalURL: hostnames.Portal(apex)} (control-plane/cmd/control-plane/refusal_brand.go); the community-logo slot is derived from Community by refusal.go's refusalLogo. main.go wires it live via productionRefusalBrandSource(apex, communityNameReader(repo)) so the name reaches the page after founding. Pinned by TestProductionRefusalBrand_ApexGivesAbsolutePortalDoorAndName + TestProductionRefusalBrandSource_ReadsNameLive (refusal_brand_wiring_test.go) and TestAuthGate_RefusalBrandReadLivePerDeny (authgate_test.go).", "Given DA-S2's community door, when pressed, then the browser lands on https://<apex>/ (PT-S1 or PT-S0), never back on the refusal": "PortalURL stays the absolute hostnames.Portal(apex) (unchanged from #1345); the refusalOperators (DA-S2) case keeps the open-portal door pointing at https://<apex>, off the gated admin.<apex>. Pinned by TestRenderRefusalSurface_OperatorsOnlyPanel + TestRenderRefusalSurface_PortalDoorIsAbsoluteWhenApexConfigured (refusal_test.go) and the wiring test.", "Given a kanidm invite is minted, when its link is rendered anywhere (roster, copy), then it is the absolute https://<apex>/haere-mai/<token>": "member.WithInviteBaseURL(hostnames.Portal(apex)) makes Orchestrator.MintInvite render inviteLink() = https://<apex>/haere-mai/<token>, stored as Invite.Link+QR and returned by OpenInvites (roster); the dashboard InviteScreen renders minted.link raw for display + copy. Wired in production via memberComposeOpts(deps.apex) (whole_composition.go). Pinned by TestMintInvite_AbsoluteLinkOnPortalBase (mint + roster) and TestMintInvite_RelativeLinkWithoutBase (relative fallback preserved)." }, "summary": "The gate-served refusal now wears the community name/logo (read live per deny) beside the absolute Portal door, and the kanidm invite link is minted absolute on hostnames.Portal (https://<apex>/haere-mai/<token>).", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1368
No description provided.