Repository navigation
feat: add reusable DDNS provider secrets, OIDC SPA gating, and Cap-style admin UI controls - #6
Merged
Merged
Conversation
…ddns validation tests
…u, time picker, and Top components
…uch, and Settings
…ews to Access and Audit logs
…nge, and FilterBar clear sync
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reusable DDNS Provider Secrets & Provider-Agnostic DDNS
ddns/providers.go) and migratedddns.Configto a genericCredentials map[string]stringmap ready for future providers (e.g., Cloudflare) alongside AWS Route53.ddns_secretstable (schema_version = 2) withsecret_idforeign-key usage guards (ON DELETE RESTRICT), secret-linked JSON backup/restore, and/api/v1/secretsCRUD with live secret rotation and secret masking (••••••••).DDNSModal,SecretModal, Provider Secrets management inSettings) with inline quick-create secret support and consistentSyncaction naming.OIDC SPA Gating, Live Allowlist Enforcement & CSRF Hardening
sessions.email_verified(schema_version = 3, additive fail-closedv2 -> v3migration) sointernal/authenforcesWHO_OIDC_ALLOWED_EMAILS/WHO_OIDC_ALLOWED_SUBSidentically at login and on every request, automatically revoking disallowed sessions and auditingsession_denied.{basePath}/and{basePath}/assets/*behind OIDC (spa.go,auth_page.go): unauthenticated visitors receive a self-contained zero-admin-JS Cap-styled Sign-In / OIDC-setup HTML page, pre-auth asset requests return401, and authenticated SPA responses setCache-Control: private+Vary: Cookie.Sec-Fetch-Site: cross-siterejection (403), requiredX-Who-CSRF: 1onGET /api/v1/backup/export(triggered via authenticatedfetch+Blobdownload), and preserved one-shot?auth_error=session_revokedredirects when sessions are revoked or expire.Structured Log Filters, Numbered Pagination,
TopBreakdowns & FacetsGET /api/v1/access-logs,GET /api/v1/audit-logs, andGET /api/v1/records/{iam}/historywith repeatable structured filters (OR within a key, AND across keys), clamped offset pagination (page,pageSize,total,totalPages),view=topSQLGROUP BYranked breakdowns, and window facets (facets=1).Admin UI/UX Polish & Cap-Style Controls
Drawer), left-edge mobile nav (Sidebar), andDialogslide/fade entry & exit animations across browsers (@starting-style,transition-behavior: allow-discrete, and Firefox/Safari exit fallback intopLayer.js).TimeRangePicker(with custom range andRefreshto its left), a unified tokenizedkey:valueautocompleteFilterBar, numberedPaginationacross all list views, andList | Topinteractive drill-down views on Access Log and Audit Log.RecordsandSettings, splitDDNSandWebhooksinto standalone sections (redirecting#/integrations*), addedPersisted/Ephemeralbadges and aligned row actions (Sync,Edit,⋯ActionMenu,Delete) onRecords, and fixed 2-row alias history alignment with clickable member navigation inRecordDrawer.Notes
v1 -> v2 -> v3); pre-v3 sessions defaultemail_verified = 0so email-allowlisted sessions re-authenticate once after upgrade.GET {basePath}/api/v1/backup/exportnow requires theX-Who-CSRF: 1header.Verification
golangci-lint run:0 issues.go test -count=1 -race -cover ./...: all 6 packages pass (who77.5%,ddns97.6%,internal/auth86.8%,internal/storage82.3%,ui66.7%,webhook94.0%).pnpm --dir ui run check:25/25Node tests pass + Vite dev build clean (0warnings/errors).pnpm --dir ui run build&CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o who .: clean static binary build.