Skip to content

v2.2.2: DNS records, certificates, modern login and unified live activity - #68

Open
w3K-one wants to merge 1 commit into
benjaminbear:masterfrom
w3K-one:upstream-v2.2.2
Open

w3K-one wants to merge 1 commit into
benjaminbear:masterfrom
w3K-one:upstream-v2.2.2

Conversation

@w3K-one

@w3K-one w3K-one commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

This replaces #65 with the complete v2.2.2 feature set, rebased as one commit on the current upstream master. Dynamic addresses, static DNS records, certificates and administrator authentication are managed through one interface, while existing device update endpoints retain HTTP Basic authentication.

Included changes

  • Add A, AAAA, CNAME, TXT, MX, SRV, CAA and delegated NS record editing. Existing CNAME aliases appear in the editor without migration on read; explicit saves convert them transactionally. Include zone filtering, sorting and reset controls.
  • Add ACME DNS-01 issuance, automatic zone wildcard/apex certificates, dedicated host certificates, renewal and revocation. Provide ZIP and individual PEM downloads, encrypted private-key storage, local DNS readiness checks, and animated status polling. Host downloads never substitute a wildcard certificate.
  • Add session-based administrator login, optional Google sign-in with an exact email allowlist, and passkeys. Harden proxy trust, update authentication, CSRF checks and DNS/database failure handling.
  • Add the security dashboard, administrator-login blocking and requested-hostname tooltips. Unified activity includes successful updates, authentication failures and optional nginx failures; identical consecutive results collapse with repeat counts while IP/result transitions remain visible. Preserve independent A/AAAA updates and device endpoint compatibility.
  • Share live filters, sorting, 25/50/100/250 pagination and AJAX refreshes across Hosts, Records, Certificates, Logs and Security. Preserve list state and pause updates while editing. Use normal document scrolling at every window size, keeping only the top navigation and logo sticky.
  • Refresh accessible icon navigation, the timezone clock heading, README, architecture documentation and neutral screenshots using reserved example domains and documentation addresses.

Upstream integration

UI defaults and screenshots are neutral, custom logos remain optional, and the Go module retains github.com/benjaminbear/docker-ddns-server/dyndns. Deployment-specific infrastructure documentation and branded assets are excluded; license attribution is retained.

The sole publishing workflow uses the existing DOCKER_USERNAME / DOCKER_PASSWORD secret names, defaults to bbaerthlein/docker-ddns-server, and supports a DOCKER_IMAGE_NAME repository-variable override. Go checks run on branch pushes and pull requests without duplicate tag runs. The README uses a local build rather than assuming an upstream v2.2.2 image already exists.

Upgrade notes

  • Set a persistent DDNS_SESSION_SECRET containing at least 32 bytes; startup fails without it.
  • The administrator interface moves to /@/ with form-based sign-in. Device update URLs and credentials remain compatible.
  • Configure DDNS_TRUSTED_PROXIES for forwarding headers; untrusted peers cannot supply the client IP or HTTPS state.
  • Optionally mount the dedicated nginx log directory read-only and set DDNS_NGINX_LOG_DIR to include requests rejected before they reach DDNS. Persistent offsets, truncation detection and rotation/gzip handling avoid repeated full-log scans. Raw URLs and credentials are not imported.
  • Back up the SQLite and BIND volumes before upgrading. Preserve cert.key with the database once certificate storage is used. Optional Google/passkey login requires a canonical HTTPS origin.
  • Failed authentication logging intentionally stores attempted passwords, visible only in the protected administrator interface; this behavior is explicitly documented.
  • go.mod now requires Go 1.26; CI and the Docker builder use Go 1.27.

Validation

  • go build ./..., go test ./..., and go test -race ./... passed.
  • Docker image build and its Linux tests passed.
  • Disposable BIND smoke tests passed for all four API routes, IPv4/IPv6, proxy spoofing, SQL input, alias/wildcard cleanup and log redaction.
  • Disposable BIND/Pebble integration passed for all eight record types, multi-value records, conflicts, CSRF, DNS-01 issuance, automatic wildcards, renewal/key rotation, PEM downloads, revocation and challenge cleanup.
  • Updated Go race tests and vet pass, including repeat transitions, proxy/app deduplication, restart, rotation, partial lines, truncation, gzip and retention. Six JavaScript regression tests pass, including AJAX terminal-state refresh and 5,000-entry pagination/filtering/sorting. Only the visible page is attached to the DOM, avoiding thousands of hidden rows. Browser checks cover filtering, pagination, draft preservation, clock tooltips and tall/short viewports.
  • Certificate polling regression tests and browser checks passed. No production CA was used for testing; screenshot certificate/passkey states are illustrative fixtures.

@w3K-one w3K-one mentioned this pull request Oct 25, 2026
@w3K-one w3K-one changed the title v2.2.2: DNS records, automated certificates and modern administrator login v2.2.2: DNS records, certificates, modern login and unified live activity Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant