Repository navigation
feat: add OIDC-authenticated Admin UI, SQLite storage, and access/audit/IP history logs - #5
Merged
Merged
Conversation
…, and settings views
…ias result IP splitting
…lock, and backup store 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
Refactors
whointo a self-hosted DDNS and IP reflection control plane with an embedded Svelte 5 Admin Web UI, OIDC PKCE authentication, pure-Go SQLite runtime storage, public HTTP access logs, per-record IP/delivery history, and admin audit logs — while preserving 100% backwards compatibility with existing public endpoints andCGO_ENABLED=0FROM scratchbuilds.Highlights
GET /whoami,GET /whoami/headers,GET /iam/{name},GET /iam/{name}/{ip}, andGET /whois/{name}at/.GET /healthzreadiness/liveness endpoint and--base-path/WHO_BASE_PATHmounting for/auth/*,/api/v1/*, and the embedded SPA./iambearer token protection (Authorization: Bearer,X-Who-Token, or query-sanitized?token=).internal/storage):who,ddns,webhooks, andtouchconfiguration,ip_history,delivery_logs,access_logs,audit_logs,settings, andsessionsinwho.db(WAL mode) with one-time first-bootconfig.jsonimport (--config/WHO_CONFIG).AccessLogger).internal/auth):S256PKCE, encryptedwho_oidc_txtransaction cookie,HttpOnly/SameSite=LaxSQLite-backedwho_sessioncookies, verified email &suballowlists, andX-Who-CSRF: 1protection on mutating/api/v1/*routes.ui/):ip_versionfiltering + live test), HTTP webhooks (secret header masking + live test), and touch-file rules (live JSON preview + manual write).merge/replace).Dockerfile(node:24-alpineUI build ->golang:1-alpinestaticCGO_ENABLED=0+ UPX ->FROM scratch).go test -race -v ./...CI job gating image builds in.github/workflows/docker-build.yml.Verification
pnpm --dir ui run check&pnpm --dir ui run buildgolangci-lint run(0issues)go test -count=1 -race -cover ./...(all packages pass)CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o who .docker build -t ghcr.io/tracyhatemice/who:local .