Restore and extend operator customer impersonation #309

Merged
parkel merged 2 commits from fix/operator-impersonation into main 2026-12-04 15:20:47 +01:00
Owner

New features

  • Add Manage as customer to All users for operators with the dedicated permission. It opens the customer's hosting workspace with normal actions and the customer's permissions, package limits, and feature availability. Existing read-only previews and limited write sessions remain available.
  • Audit delegated hosting submissions against the operator and customer session, recording route, numeric resource identifiers, and HTTP outcome. Never record posted values or credentials.

Bug fixes and improvements

  • Restore Sign in as customer for operators and put Leave impersonation in the sidebar account controls, in place of the workspace switcher.
  • Keep Manager actions scoped to assigned customers, with Manage hosting and Contact and invitation, but no impersonation.

Security

  • Keep the operator signed in, revalidate eligibility and expire support sessions after 30 minutes. Scope managed routes to customer hosting. Exclude panel identity, MFA, existing credential reveals, SSO, and operator actions. Service password rotation still requires the operator's own password and credential permissions.
  • Add a Django migration for the managed support permission and audit mode. Existing sessions retain their behaviour.

Documentation

  • Update the operator walkthrough and shared panel design guidance.

Verification

  • Ran the full 788-test Django suite on Python 3.14 (one skip), Ruff lint and format checks, Django system checks, and migration drift checks.
  • Added tests for customer scoping, DNS delegation, operator re-authentication, audit attribution, permission revocation, and restricted actions.

Closes #308.

## New features - Add **Manage as customer** to **All users** for operators with the dedicated permission. It opens the customer's hosting workspace with normal actions and the customer's permissions, package limits, and feature availability. Existing read-only previews and limited write sessions remain available. - Audit delegated hosting submissions against the operator and customer session, recording route, numeric resource identifiers, and HTTP outcome. Never record posted values or credentials. ## Bug fixes and improvements - Restore **Sign in as customer** for operators and put **Leave impersonation** in the sidebar account controls, in place of the workspace switcher. - Keep Manager actions scoped to assigned customers, with **Manage hosting** and **Contact and invitation**, but no impersonation. ## Security - Keep the operator signed in, revalidate eligibility and expire support sessions after 30 minutes. Scope managed routes to customer hosting. Exclude panel identity, MFA, existing credential reveals, SSO, and operator actions. Service password rotation still requires the operator's own password and credential permissions. - Add a Django migration for the managed support permission and audit mode. Existing sessions retain their behaviour. ## Documentation - Update the operator walkthrough and shared panel design guidance. ## Verification - Ran the full 788-test Django suite on Python 3.14 (one skip), Ruff lint and format checks, Django system checks, and migration drift checks. - Added tests for customer scoping, DNS delegation, operator re-authentication, audit attribution, permission revocation, and restricted actions. Closes #308.
parkel added 1 commit 2026-12-04 14:58:18 +01:00
Expose customer impersonation in the operator workspace
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Successful in 1m57s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Successful in 2m12s
3131821afc
parkel added 1 commit 2026-12-04 15:14:29 +01:00
Allow operators to manage hosting as a customer
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Successful in 2m0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Successful in 2m14s
9fb42d9625
parkel changed title from Expose customer impersonation in the operator workspace to Restore and extend operator customer impersonation 2026-12-04 15:14:47 +01:00
parkel merged commit 83101e8cdc into main 2026-12-04 15:20:47 +01:00
parkel deleted branch fix/operator-impersonation 2026-12-04 15:20:47 +01:00
Sign in to join this conversation.