audit: 33-agent comprehensive audit + critical fixes
Full team audit run, all reports verbatim in docs/AUDIT-2026-05-12.md (5900+ lines, 30+ critical findings). Already-fixed this commit: - permission-overrides PUT: self-target block + RolePermissions allow-list + cross-tenant guard - /api/auth/resolve-identifier: rate-limit + synthetic miss-email kill enumeration - admin email-change: rotates account.accountId + revokes sessions - middleware: token-gated email confirm/cancel routes whitelisted - NAV_CATALOG: 10 dead-link sweeps to existing /admin/<x> targets Feature work landing same commit: optional username sign-in (migration 0054), per-user permission overrides (0055) with three-state matrix tabbed inside UserForm, user disable button, role + outcome + stage label normalisation across the platform, admin email-change with auto-notification template. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -58,8 +58,12 @@ export const NAV_CATALOG: NavCatalogEntry[] = [
|
||||
category: 'settings',
|
||||
keywords: ['preferences', 'configuration', 'config'],
|
||||
},
|
||||
// The granular settings cards below redirect to the `/admin/<x>` routes
|
||||
// that actually exist — the catalog previously listed `/settings/<x>`
|
||||
// paths that have never had route folders. We keep the keyword aliases
|
||||
// so the cmd-K search still finds them under the right destination.
|
||||
{
|
||||
href: '/:portSlug/settings/email',
|
||||
href: '/:portSlug/admin/email',
|
||||
label: 'Email accounts (SMTP / IMAP)',
|
||||
category: 'settings',
|
||||
keywords: [
|
||||
@@ -75,47 +79,47 @@ export const NAV_CATALOG: NavCatalogEntry[] = [
|
||||
requires: 'admin.manage_settings',
|
||||
},
|
||||
{
|
||||
href: '/:portSlug/settings/branding',
|
||||
href: '/:portSlug/admin/branding',
|
||||
label: 'Branding (per-port logo, colors, copy)',
|
||||
category: 'settings',
|
||||
keywords: ['logo', 'theme', 'colors', 'tenant brand', 'white-label'],
|
||||
requires: 'admin.manage_settings',
|
||||
},
|
||||
{
|
||||
href: '/:portSlug/settings/templates',
|
||||
href: '/:portSlug/admin/templates',
|
||||
label: 'Document templates',
|
||||
category: 'settings',
|
||||
keywords: ['eoi', 'documenso', 'pdf templates', 'template merge fields'],
|
||||
requires: 'admin.manage_settings',
|
||||
},
|
||||
{
|
||||
href: '/:portSlug/settings/storage',
|
||||
href: '/:portSlug/admin/storage',
|
||||
label: 'File storage backend',
|
||||
category: 'settings',
|
||||
keywords: ['s3', 'minio', 'filesystem', 'storage'],
|
||||
requires: 'admin.manage_settings',
|
||||
},
|
||||
{
|
||||
href: '/:portSlug/settings/recommender',
|
||||
href: '/:portSlug/admin/settings',
|
||||
label: 'Berth recommender weights',
|
||||
category: 'settings',
|
||||
keywords: ['ranking', 'tier ladder', 'heat', 'fallthrough', 'recommend'],
|
||||
requires: 'admin.manage_settings',
|
||||
},
|
||||
{
|
||||
href: '/:portSlug/settings/tags',
|
||||
href: '/:portSlug/admin/tags',
|
||||
label: 'Tags',
|
||||
category: 'settings',
|
||||
keywords: ['labels', 'categories', 'classification'],
|
||||
},
|
||||
{
|
||||
href: '/:portSlug/settings/notifications',
|
||||
href: '/:portSlug/settings/profile',
|
||||
label: 'Notification preferences',
|
||||
category: 'settings',
|
||||
keywords: ['alerts', 'email digest', 'in-app', 'push'],
|
||||
keywords: ['alerts', 'email digest', 'in-app', 'push', 'reminders digest'],
|
||||
},
|
||||
{
|
||||
href: '/:portSlug/user-settings',
|
||||
href: '/:portSlug/settings/profile',
|
||||
label: 'My profile & preferences',
|
||||
category: 'settings',
|
||||
keywords: [
|
||||
@@ -159,7 +163,7 @@ export const NAV_CATALOG: NavCatalogEntry[] = [
|
||||
requires: 'admin.manage_users',
|
||||
},
|
||||
{
|
||||
href: '/:portSlug/admin/audit-log',
|
||||
href: '/:portSlug/admin/audit',
|
||||
label: 'Audit log',
|
||||
category: 'admin',
|
||||
keywords: ['activity', 'history', 'events', 'who did what', 'compliance'],
|
||||
@@ -172,7 +176,7 @@ export const NAV_CATALOG: NavCatalogEntry[] = [
|
||||
keywords: ['enquiries', 'leads', 'contact form', 'eoi requests', 'website'],
|
||||
},
|
||||
{
|
||||
href: '/:portSlug/admin/error-events',
|
||||
href: '/:portSlug/admin/errors',
|
||||
label: 'Platform errors',
|
||||
category: 'admin',
|
||||
keywords: ['errors', 'exceptions', 'incidents', 'failures'],
|
||||
|
||||
Reference in New Issue
Block a user