Skip to content

feat(ddns): add scheduled Cloudflare DDNS management - #246

Merged
RentnerKev merged 13 commits into
mainfrom
feat/cloudflare-connections
Oct 17, 2026
Merged

RentnerKev merged 13 commits into
mainfrom
feat/cloudflare-connections

Conversation

@RentnerKev

@RentnerKev RentnerKev commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Adds shared Cloudflare connections and controller-owned DDNS for an exact allowlist of A/AAAA records, including literal wildcards, multiple zones, and per-record proxy exceptions. Selecting a DNS connection alone performs no DNS updates.

The DDNS page now saves records directly through automatic server-side inspection: existing records are bound to their inspected Cloudflare IDs, absent records are approved for creation, and conflicts block the atomic configuration save. On a fresh list, saving active records starts DDNS; explicitly paused or restored configurations require enabling. Browsers cannot replace approved provider IDs. The shared table supports search, sorting, pagination, editing, per-record enable/disable and confirmed removal from DDNS without deleting Cloudflare DNS records.

Connections use compact cards, individual domain inputs support Enter to add another row, automatic zone matching renders its selection correctly, and errors/confirmations use shared toasts. Authenticated WebSocket revision notifications replace reload/refresh buttons and browser polling; reconnects resynchronize even with an unchanged server revision. Open drafts retain their values and stale saves are blocked. UI copy is translated in all eight supported languages.

The shared table includes column filters for records, connections/zones, proxy mode and status. Status selections remain labeled when live results no longer contain the selected state. A compact runtime summary exposes status details on demand. The schedule dialog contains only interval and startup checks; IPv4/IPv6 discovery follows the enabled record types, preserving legacy family pauses as per-record pauses. Compact native checkbox controls replace the large record options.

The Rust worker persists configuration, per-target flags, last-good state, schedules, bounded events, recovery/backoff and provider cooldowns. Paused targets retain their history and connection references across restarts; toggles and proxy edits retain transient retry floors. Controller APIs remain private, bearer-authenticated, bounded and no-store. Web actions retain session authorization, same-origin protection, rate limits and redacted audit. Tokens remain encrypted. Backups include DDNS state and supported restores force a pause.

Regression review also preserves newer live revisions when a mutation response arrives late and protects successful saves against delayed status responses, binds deletion to the reviewed revision, tracks live connection references, retains committed metadata during outages and avoids rescheduling unchanged targets or rearming their permanent failures. Provider inspection covers only changed active targets; retry floors remain enforced. Manual updates are unavailable when all targets are disabled. Connection cards adapt to their actual container width.

Provider Retry-After pauses now also fence uncertain writes and survive restart. Pending provider feedback survives cancelled or failed persistence until a durable cooldown is acknowledged. Cancelled configuration writes cannot discard admitted batch results or preview cooldowns, and uncertain connection persistence forces an authoritative reload before further operations. Explicitly paused DDNS stays paused after removing and re-adding its last record. Failed HTTP reads recover with capped backoff independently of WebSocket revisions, while successful queries remain event-driven. Filtered tables clamp their stored page index when live status changes shrink the matching rows.

Validation:

  • Production web build with the PR's pinned dependencies, web/scripts type checks, scoped formatting, lint and type-aware lint pass.
  • 127 focused web tests pass, covering the UI, provider boundary, authorization, automatic inspection, live reconnect, localization, shared table pagination and backup compatibility.
  • Rust library tests: 301 passed, 1 ignored. Clippy across all targets/features and cargo fmt pass.
  • Browser checks with synthetic data cover desktop cards/table, Enter-based domain entry, automatic zone display, save/toast feedback and a 390px mobile dialog.
  • No live Cloudflare DNS writes, database migrations or endurance runs were performed.
  • Final read-only CodeRabbit source analyses cover all 33 changed Rust files and all 91 changed web/scripts files, reporting no additional concrete actionable bugs. Web/scripts are unchanged since their reviewed snapshot. Automatic full-PR review is skipped because the PR exceeds CodeRabbit's 100-file limit; these scoped analyses complement the runtime checks above.

Local dependency upgrades are excluded.

@RentnerKev RentnerKev added this to the v1.0.0-beta.2 milestone Oct 16, 2026
@RentnerKev RentnerKev added enhancement New feature or request area: runtime Caddy and privileged controller runtime behavior. area: certificates Certificates, ACME, trusted CAs, and TLS material. area: ui Web interface components, routes, styling, and localization. labels Oct 16, 2026
@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Too many files!

This PR contains 123 files, which is 23 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.

⚙️ Run configuration
  • Configuration used: Repository: RentnerKev/RentnerProxy/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f417e5e2-03c5-4d56-9526-30dd82c8083e
📥 Commits

Reviewing files that changed from the base of the PR and between 5c7f5c5 and ca8c7b6.

⛔ Files ignored due to path filters: 1
  • web/src/routeTree.gen.ts is excluded by !**/routeTree.gen.ts
📒 Files selected for processing: 123
  • core/src/application.rs
  • core/src/runtime/ddns.rs
  • core/src/runtime/ddns/automation.rs
  • core/src/runtime/ddns/automation/execution.rs
  • core/src/runtime/ddns/automation/models.rs
  • core/src/runtime/ddns/automation/persistence.rs
  • core/src/runtime/ddns/automation/scheduling.rs
  • core/src/runtime/ddns/discovery.rs
  • core/src/runtime/ddns/http.rs
  • core/src/runtime/ddns/models.rs
  • core/src/runtime/ddns/provider.rs
  • core/src/runtime/ddns/validation.rs
  • core/src/runtime/ddns/worker.rs
  • core/src/runtime/dns/api.rs
  • core/src/runtime/dns/encryption.rs
  • core/src/runtime/dns/mod.rs
  • core/src/runtime/dns_connections.rs
  • core/src/runtime/dns_connections/access.rs
  • core/src/runtime/dns_connections/models.rs
  • core/src/runtime/dns_connections/references.rs
  • core/src/runtime/dns_connections/tests.rs
  • core/src/runtime/dns_connections/validation.rs
  • core/src/runtime/lifecycle.rs
  • core/src/runtime/mod.rs
  • core/src/server/handlers.rs
  • core/src/server/handlers/ddns.rs
  • core/src/server/handlers/dns_connections.rs
  • core/src/server/mod.rs
  • core/tests/private/ddns.rs
  • core/tests/private/ddns/automation.rs
  • core/tests/private/ddns/automation_http.rs
  • core/tests/private/ddns/automation_recovery.rs
  • core/tests/private/ddns/fixture.rs
  • scripts/backup/dns-connections.ts
  • scripts/backup/format.ts
  • scripts/production-restore.ts
  • web/src/config/audit.config.ts
  • web/src/config/ddns.config.ts
  • web/src/config/dns-connections.config.ts
  • web/src/config/permissions.config.ts
  • web/src/config/realtime.config.ts
  • web/src/features/Admin/Ddns/Components/DdnsRecordCells.tsx
  • web/src/features/Admin/Ddns/Components/DdnsRecordEditor.tsx
  • web/src/features/Admin/Ddns/Components/DdnsRecords.tsx
  • web/src/features/Admin/Ddns/Components/DdnsSettings.tsx
  • web/src/features/Admin/Ddns/Hooks/useDdnsLogic.ts
  • web/src/features/Admin/Ddns/Hooks/useDdnsRecordEditorLogic.ts
  • web/src/features/Admin/Ddns/Hooks/useDdnsRecordsLogic.ts
  • web/src/features/Admin/Ddns/Hooks/useDdnsSettingsLogic.ts
  • web/src/features/Admin/Ddns/Types/ddns-editor.types.ts
  • web/src/features/Admin/Ddns/Types/ddns-table.types.ts
  • web/src/features/Admin/Ddns/Types/ddns-ui.types.ts
  • web/src/features/Admin/Ddns/Types/validation.types.ts
  • web/src/features/Admin/Ddns/ddns-api.ts
  • web/src/features/Admin/Ddns/index.tsx
  • web/src/features/Admin/Ddns/middleware.ts
  • web/src/features/Admin/Ddns/validation.ts
  • web/src/features/Admin/DnsConnections/Components/DnsConnectionCard.tsx
  • web/src/features/Admin/DnsConnections/Components/DnsConnectionEditor.tsx
  • web/src/features/Admin/DnsConnections/Hooks/useDnsConnectionsLogic.ts
  • web/src/features/Admin/DnsConnections/Types/dns-connections-ui.types.ts
  • web/src/features/Admin/DnsConnections/Types/validation.types.ts
  • web/src/features/Admin/DnsConnections/index.tsx
  • web/src/features/Admin/DnsConnections/middleware.ts
  • web/src/features/Admin/DnsConnections/validation.ts
  • web/src/layouts/AuthenticatedLayout/Components/ApplicationShell/Components/ApplicationNavigation/Hooks/useApplicationNavigationLogic.ts
  • web/src/layouts/AuthenticatedLayout/Components/ApplicationShell/Components/ApplicationNavigation/index.tsx
  • web/src/layouts/AuthenticatedLayout/Components/ApplicationShell/Types/application-shell.types.ts
  • web/src/lib/ApplicationShell/applicationShell.ts
  • web/src/lib/Ddns/Types/ddns.types.ts
  • web/src/lib/Ddns/recordEditor.ts
  • web/src/lib/Ddns/recordFamilies.ts
  • web/src/lib/Ddns/targets.ts
  • web/src/lib/Ddns/validation.ts
  • web/src/lib/DnsConnections/Types/dns-connections.types.ts
  • web/src/lib/Language/Locales/de.json
  • web/src/lib/Language/Locales/en.json
  • web/src/lib/Language/Locales/es.json
  • web/src/lib/Language/Locales/fr.json
  • web/src/lib/Language/Locales/it.json
  • web/src/lib/Language/Locales/nl.json
  • web/src/lib/Language/Locales/pl.json
  • web/src/lib/Language/Locales/pt.json
  • web/src/lib/Permissions/systemRoles.ts
  • web/src/routes/_authenticated/ddns.tsx
  • web/src/routes/_authenticated/dns-connections.tsx
  • web/src/server/Admin/Ddns/Types/ddns.types.ts
  • web/src/server/Admin/Ddns/ddns-preview.service.ts
  • web/src/server/Admin/Ddns/ddns.errors.ts
  • web/src/server/Admin/Ddns/ddns.service.ts
  • web/src/server/Admin/DnsConnections/Types/dns-connections.types.ts
  • web/src/server/Admin/DnsConnections/dns-connections.errors.ts
  • web/src/server/Admin/DnsConnections/dns-connections.service.ts
  • web/src/server/Controller/Types/ddns.types.ts
  • web/src/server/Controller/Types/dns-connections.types.ts
  • web/src/server/Controller/ddns.server.ts
  • web/src/server/Controller/dns-connections.server.ts
  • web/src/server/Controller/dns-connections.validation.ts
  • web/src/server/Controller/transport.server.ts
  • web/src/server/WebSockets/realtimeSnapshots.service.ts
  • web/src/shared/Forms/OptionToggle.tsx
  • web/src/shared/Forms/Types/option-toggle.types.ts
  • web/src/shared/Live/Hooks/useLiveInvalidation.ts
  • web/src/shared/Live/Hooks/useQueryRecovery.ts
  • web/src/shared/Live/Types/live-invalidation.types.ts
  • web/src/shared/Live/Types/query-recovery.types.ts
  • web/src/shared/Notifications/Hooks/useQueryErrorToast.ts
  • web/src/shared/Table/Hooks/useClientTable.ts
  • web/src/tests/Helpers/ddnsFixture.ts
  • web/src/tests/features/Admin/Ddns/ddns-ui.test.tsx
  • web/src/tests/features/Admin/DnsConnections/dns-connections-ui.test.tsx
  • web/src/tests/features/Admin/DnsConnections/validation.test.ts
  • web/src/tests/lib/Admin/RoleManagement/permission-groups.test.ts
  • web/src/tests/lib/Ddns/record-editor.test.ts
  • web/src/tests/lib/Ddns/record-families.test.ts
  • web/src/tests/lib/Ddns/targets.test.ts
  • web/src/tests/server/Admin/Ddns/ddns.test.ts
  • web/src/tests/server/Admin/DnsConnections/dns-connections.test.ts
  • web/src/tests/server/Controller/ddns.test.ts
  • web/src/tests/server/Controller/dns-connections.test.ts
  • web/src/tests/server/WebSockets/live-snapshot.test.ts
  • web/src/tests/shared/Live/live-invalidation.test.tsx
  • web/src/tests/tooling/scripts/backup/dns-connections.test.ts

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@RentnerKev RentnerKev changed the title feat(dns): add shared Cloudflare connections and zone selection feat(ddns): add Cloudflare connections and record synchronization Oct 16, 2026
Persist controller-owned DDNS configuration, scheduling, bounded retries and
restore pauses. Add permission-protected record selection, preview-bound
save/activation, per-target status and an explicit migration workflow.

Refs #232, #233
@RentnerKev RentnerKev changed the title feat(ddns): add Cloudflare connections and record synchronization feat(ddns): add scheduled Cloudflare DDNS management Oct 17, 2026
Replace manual preview and activation panels with automatic server-side
inspection and atomic saves, per-record toggles, and shared table actions.
Use authenticated WebSocket revisions and shared toasts for both DDNS
and DNS connections. Preserve target history and retry floors across
per-record toggles, with legacy enabled defaults and restart coverage.
Ignore superseded status reads after a successful mutation and bind record
removal to its reviewed revision. Track live connection references and
retain committed metadata when a subsequent read fails.

Preserve unrelated target schedules and permanent failures when editing a
record; inspect only changed active targets. Keep retry floors intact and
block manual updates when every target is paused. Add regression coverage
for concurrent updates, restored state, duplicate submits and connection
reference changes.
Keep a newer committed configuration or connection revision when an older
mutation response arrives late. Cancel superseded reads without rolling
back data already delivered by the live channel. Add delayed-response
regressions including an unavailable follow-up metadata read.
Use shared column filters and compact record options. Reduce the runtime
summary and limit global settings to scheduling. Derive discovery families
from enabled records while preserving legacy family pauses.

Add a development-only, in-memory demo with twelve representative records
and a separate Query cache. Verify that demo mutations never reach the live
API and that production output excludes the demo implementation.
Use a stable runtime-status option list so a resolved failure leaves a
labeled empty filter instead of a blank select. Filter connections and zones
with text so removing the last matching record cannot invalidate an option.
Add a live-result regression and zone-filter coverage.
Assign example records to their zones explicitly and verify return to live
data through an exact record-action selector. Cover lookalike domains at the
demo API boundary without suppressing code-scanning checks.
@RentnerKev

Copy link
Copy Markdown
Member Author

@coderabbitai full review

Please review the complete current PR at commit 88215d5 and list actionable findings as inline comments. Focus on correctness, concurrency, stale state, recovery, permissions, credential handling and DNS update scope across the Rust controller and TypeScript UI/server. Keep this review-only: do not modify code, generate documentation or screenshots, or merge the draft PR.

@coderabbitai

coderabbitai Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor
⚠️ Action not completed

Review skipped: 119 files exceed the limit of 100.

@RentnerKev

Copy link
Copy Markdown
Member Author

@coderabbitai Please inspect only the changed Rust files under core/src/ and core/tests/ in this PR at commit 88215d5. This is a bounded code-analysis question for the Rust subset, which contains fewer than 100 changed files; do not invoke the full-PR review command or any paid on-demand review.

Read the actual changed code and report concrete bugs with file/line locations, impact and suggested corrections. Focus on DNS update scope, token encryption, private API authorization, persistence, scheduling/backoff, concurrency, cancellation and restart/restore behavior. Give analysis only; do not modify files, generate documentation/screenshots, create another PR or merge anything. If this subset cannot be inspected within the included public-repository allowance, state the limitation instead of enabling paid usage.

@RentnerKev

Copy link
Copy Markdown
Member Author

@coderabbitai Please inspect only the changed TypeScript/TSX and localization files under web/src/ plus the changed backup scripts under scripts/ in this PR at commit 88215d5. This is a bounded code-analysis question for the web/scripts subset, which contains fewer than 100 changed files; do not invoke the full-PR review command or any paid on-demand review.

Read the actual changed code and report concrete bugs with file/line locations, impact and suggested corrections. Focus on server authorization and validation, credential handling, stale revisions, async state races, WebSocket invalidation/reconnect, table filters, record editing and backup compatibility. Include relevant changed tests and type contracts. Give analysis only; do not modify files, generate documentation/screenshots, create another PR or merge anything. If this subset cannot be inspected within the included public-repository allowance, state the limitation instead of enabling paid usage.

@coderabbitai

coderabbitai Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail
target=88215d5db7abed8b14bb192c7d4183b8c5a2d32f
git rev-parse HEAD
git cat-file -t "$target"
gh pr view 246 --repo RentnerKev/RentnerProxy --json baseRefOid,headRefOid --jq '{base: .baseRefOid,head: .headRefOid}'
base=$(gh pr view 246 --repo RentnerKev/RentnerProxy --json baseRefOid --jq .baseRefOid)
git diff --stat "$base...$target" -- core/src/ core/tests/
git diff --name-only "$base...$target" -- core/src/ core/tests/ | grep '\.rs$' | while IFS= read -r file; do
  printf '\n--- %s ---\n' "$file"
  ast-grep outline "$file" --items all || true
done

Length of output: 31608


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in core/src/runtime/ddns.rs core/src/runtime/ddns/provider.rs core/src/runtime/ddns/http.rs core/src/runtime/ddns/discovery.rs core/src/runtime/ddns/validation.rs core/src/runtime/ddns/models.rs core/src/runtime/ddns/automation.rs core/src/runtime/ddns/automation/execution.rs core/src/runtime/ddns/automation/persistence.rs core/src/runtime/ddns/automation/scheduling.rs core/src/runtime/ddns/automation/models.rs core/src/runtime/ddns/worker.rs; do
printf '\n--- %s ---\n' "$file"
nl -ba "$file"
done

Length of output: 94145


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in core/src/runtime/dns_connections.rs core/src/runtime/dns_connections/access.rs core/src/runtime/dns_connections/references.rs core/src/runtime/dns_connections/models.rs core/src/runtime/dns_connections/validation.rs core/src/runtime/dns/encryption.rs core/src/server/handlers/ddns.rs core/src/server/handlers/dns_connections.rs core/src/server/mod.rs; do
printf '\n--- %s ---\n' "$file"
nl -ba "$file"
done
git diff 5c7f5c571fb71d6fd8f257045a233845ec5c575d...88215d5db7abed8b14bb192c7d4183b8c5a2d32f -- core/src/application.rs core/src/runtime/lifecycle.rs core/src/runtime/mod.rs core/src/runtime/dns/api.rs core/src/runtime/dns/mod.rs core/src/server/handlers.rs

Length of output: 72686


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in core/src/runtime/dns_connections/tests.rs core/tests/private/ddns/automation.rs core/tests/private/ddns/automation_http.rs; do
printf '\n--- %s ---\n' "$file"
nl -ba "$file"
done

Length of output: 67024


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in core/tests/private/ddns.rs core/tests/private/ddns/fixture.rs; do
printf '\n--- %s ---\n' "$file"
nl -ba "$file"
done
printf '\n--- encryption diff ---\n'
git diff 5c7f5c571fb71d6fd8f257045a233845ec5c575d...88215d5db7abed8b14bb192c7d4183b8c5a2d32f -- core/src/runtime/dns/encryption.rs
printf '\n--- startup and shutdown context ---\n'
nl -ba core/src/application.rs | sed -n '84,125p'
nl -ba core/src/runtime/lifecycle.rs | sed -n '260,310p'
printf '\n--- changed-file coverage ---\n'
git diff --numstat 5c7f5c571fb71d6fd8f257045a233845ec5c575d...88215d5db7abed8b14bb192c7d4183b8c5a2d32f -- core/src/ core/tests/

Length of output: 53352


@RentnerKev I inspected the 32 changed Rust files under core/src/ and core/tests/ at commit 88215d5db7abed8b14bb192c7d4183b8c5a2d32f, including the changed tests and type contracts.

I found three actionable issues.

1. [P2] Write failures lose the provider-wide Retry-After cooldown

Location: core/src/runtime/ddns/provider.rs, Line 157–170

If a PATCH or POST returns HTTP 503 with Retry-After, http::send() produces ProviderUnavailable with the retry duration. Provider::write() then changes the error to WriteUnconfirmed.

Both cooldown consumers check for ProviderRateLimited or ProviderUnavailable, but not WriteUnconfirmed:

  • core/src/runtime/ddns.rs, Line 151–162.
  • core/src/runtime/ddns/automation/scheduling.rs, Line 249–257.

Impact: The failed target retains its retry floor, but the engine continues provider requests for the remaining targets. The automation document also lacks the provider-wide cooldown. Other targets can therefore issue requests before the provider’s requested retry time.

Suggested correction: Preserve write uncertainty while separately retaining the provider cooldown classification. Alternatively, include WriteUnconfirmed with a retry duration in both cooldown checks.

Coverage gap: The fixture returns configured provider failures from the list endpoint. Its PATCH and POST handlers do not exercise this path.

2. [P2] A cancelled disable can prevent an active batch from recording completion

Location: core/src/runtime/ddns/automation/execution.rs, Line 185–190

commit() clears the cached document before awaiting persistence. If a concurrent disable is cancelled during that await, the cache remains None.

When the admitted DNS batch finishes, run_at() reads state.as_ref() directly. It returns StoreUnavailable instead of reloading the document.

A concrete sequence is:

  1. Start a batch and pause its provider request.
  2. Start a disable operation.
  3. Cancel the disable after commit() clears the cache.
  4. Complete the provider request without first calling status.

Impact: DNS writes can succeed, but their results and last-good metadata are not committed. A later scheduler tick classifies the persisted batch as interrupted and applies recovery backoff.

Suggested correction: At completion, reload through loaded() when the cache is empty. Keep ActiveRun set during that reload so it preserves the admitted batch’s in-flight marker.

Coverage gap: cancelled_disable_and_status_reload_do_not_misclassify_an_active_batch_as_interrupted explicitly performs a status reload before completion. That observer repairs the cache and hides this path.

3. [P2] Connection persistence failures can leave the cache behind the authoritative file

Location: core/src/runtime/dns_connections.rs, Line 284–285

Connection mutations retain the old cached registry when persist() returns an error. This differs from automation persistence, which explicitly invalidates its cache because an atomic replacement can succeed before a later filesystem sync fails.

The same pattern appears in connection deletion at Line 306–307 and reference persistence in core/src/runtime/dns_connections/references.rs, Line 77–78.

Impact: If replacement succeeds but the subsequent sync fails, disk contains the new registry while the process continues using the old registry. After a token rotation, DDNS can continue using the old token. A later mutation can also overwrite the newer disk state using stale revisions or references.

Suggested correction: Invalidate the cached registry after an uncertain persistence result. Reload the authoritative file before admitting another registry operation.

Coverage gap: The connection write-failure test replaces the destination with a directory. That fails before replacement and does not cover a post-replacement sync failure.


This was read-only source analysis. I did not build or run repository code, invoke a review command, or enable paid usage. I made no repository changes.

You are interacting with an AI system.

@coderabbitai

coderabbitai Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail
target=88215d5db7abed8b14bb192c7d4183b8c5a2d32f
git rev-parse HEAD
git cat-file -t "$target"
base=$(gh pr view 246 --repo RentnerKev/RentnerProxy --json baseRefOid --jq .baseRefOid)
printf 'BASE=%s\n' "$base"
git diff --stat "$base...$target" -- web/src/ scripts/
git diff --name-only "$base...$target" -- web/src/ scripts/

Length of output: 10654


🏁 Script executed:

#!/bin/bash
set -euo pipefail
git diff --name-only 5c7f5c571fb71d6fd8f257045a233845ec5c575d...88215d5db7abed8b14bb192c7d4183b8c5a2d32f -- web/src/ scripts/ | grep -E '\.tsx?$' | while IFS= read -r file; do
printf '\n--- %s ---\n' "$file"
ast-grep outline "$file" --items all
done

Length of output: 52730


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in web/src/features/Admin/Ddns/middleware.ts web/src/features/Admin/DnsConnections/middleware.ts web/src/server/Admin/Ddns/ddns.service.ts web/src/server/Admin/Ddns/ddns-preview.service.ts web/src/server/Admin/Ddns/ddns.errors.ts web/src/server/Admin/DnsConnections/dns-connections.service.ts web/src/server/Controller/ddns.server.ts web/src/server/Controller/dns-connections.server.ts web/src/server/Controller/dns-connections.validation.ts scripts/backup/dns-connections.ts; do
printf '\n--- %s ---\n' "$file"
ast-grep outline "$file" --items all
nl -ba "$file"
done
git diff 5c7f5c571fb71d6fd8f257045a233845ec5c575d...88215d5db7abed8b14bb192c7d4183b8c5a2d32f -- scripts/backup/format.ts scripts/production-restore.ts web/src/server/Controller/transport.server.ts web/src/server/WebSockets/realtimeSnapshots.service.ts web/src/config/

Length of output: 74049


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in web/src/features/Admin/Ddns/Hooks/useDdnsLogic.ts web/src/features/Admin/Ddns/Hooks/useDdnsRecordEditorLogic.ts web/src/features/Admin/Ddns/Hooks/useDdnsRecordsLogic.ts web/src/features/Admin/Ddns/Hooks/useDdnsSettingsLogic.ts web/src/features/Admin/DnsConnections/Hooks/useDnsConnectionsLogic.ts web/src/lib/Ddns/validation.ts web/src/lib/Ddns/targets.ts web/src/lib/Ddns/recordEditor.ts web/src/lib/Ddns/recordFamilies.ts web/src/features/Admin/Ddns/validation.ts web/src/features/Admin/DnsConnections/validation.ts; do
printf '\n--- %s ---\n' "$file"
nl -ba "$file"
done

Length of output: 71907


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in web/src/tests/server/Admin/Ddns/ddns.test.ts web/src/tests/server/Admin/DnsConnections/dns-connections.test.ts web/src/tests/server/Controller/ddns.test.ts web/src/tests/server/Controller/dns-connections.test.ts web/src/tests/tooling/scripts/backup/dns-connections.test.ts; do
printf '\n--- %s ---\n' "$file"
nl -ba "$file"
done

Length of output: 61249


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in web/src/features/Admin/Ddns/index.tsx web/src/features/Admin/Ddns/Components/DdnsRecordEditor.tsx web/src/features/Admin/Ddns/Components/DdnsSettings.tsx web/src/features/Admin/Ddns/Components/DdnsRecords.tsx web/src/features/Admin/Ddns/Components/DdnsRecordCells.tsx web/src/features/Admin/DnsConnections/index.tsx web/src/features/Admin/DnsConnections/Components/DnsConnectionEditor.tsx web/src/features/Admin/DnsConnections/Components/DnsConnectionCard.tsx web/src/shared/Live/Hooks/useLiveInvalidation.ts web/src/shared/Live/Types/live-invalidation.types.ts web/src/shared/Notifications/Hooks/useQueryErrorToast.ts web/src/shared/Forms/OptionToggle.tsx; do
printf '\n--- %s ---\n' "$file"
nl -ba "$file"
done
for file in web/src/shared/Live/Hooks/useLiveQuery.ts web/src/server/Auth/Access/authorization.service.ts web/src/shared/Table/Hooks/useClientTable.ts; do
printf '\n--- %s ---\n' "$file"
ast-grep outline "$file" --items all
nl -ba "$file"
done

Length of output: 70425


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in web/src/tests/features/Admin/Ddns/ddns-ui.test.tsx web/src/tests/features/Admin/DnsConnections/dns-connections-ui.test.tsx web/src/tests/lib/Ddns/record-editor.test.ts web/src/tests/lib/Ddns/record-families.test.ts web/src/tests/lib/Ddns/targets.test.ts web/src/tests/shared/Live/live-invalidation.test.tsx; do
printf '\n--- %s ---\n' "$file"
nl -ba "$file"
done

Length of output: 74381


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in web/src/features/Admin/Ddns/Types/ddns-editor.types.ts web/src/features/Admin/Ddns/Types/ddns-table.types.ts web/src/features/Admin/Ddns/Types/ddns-ui.types.ts web/src/features/Admin/Ddns/Types/validation.types.ts web/src/features/Admin/Ddns/ddns-api.ts web/src/features/Admin/DnsConnections/Types/dns-connections-ui.types.ts web/src/features/Admin/DnsConnections/Types/validation.types.ts web/src/lib/Ddns/Types/ddns.types.ts web/src/lib/DnsConnections/Types/dns-connections.types.ts web/src/server/Admin/Ddns/Types/ddns.types.ts web/src/server/Admin/DnsConnections/Types/dns-connections.types.ts web/src/server/Controller/Types/ddns.types.ts web/src/server/Controller/Types/dns-connections.types.ts web/src/shared/Forms/Types/option-toggle.types.ts web/src/tests/Helpers/ddnsFixture.ts web/src/tests/features/Admin/DnsConnections/validation.test.ts web/src/tests/server/WebSockets/live-snapshot.test.ts; do
printf '\n--- %s ---\n' "$file"
nl -ba "$file"
done
printf '\n--- existing backup/transport slices ---\n'
nl -ba scripts/backup/format.ts | sed -n '93,290p'
nl -ba scripts/production-restore.ts | sed -n '241,480p'
nl -ba web/src/server/Controller/transport.server.ts | sed -n '1,180p'
printf '\n--- navigation, route, and role changes ---\n'
git diff 5c7f5c571fb71d6fd8f257045a233845ec5c575d...88215d5db7abed8b14bb192c7d4183b8c5a2d32f -- web/src/layouts/ web/src/routes/ web/src/lib/ApplicationShell/ web/src/lib/Permissions/ web/src/tests/lib/Admin/RoleManagement/permission-groups.test.ts
printf '\n--- generated route change ---\n'
git show 88215d5db7abed8b14bb192c7d4183b8c5a2d32f:web/src/routeTree.gen.ts | head -80

Length of output: 79259


🏁 Script executed:

#!/bin/bash
set -euo pipefail
printf '\n--- realtime client ---\n'
ast-grep outline web/src/lib/Live/realtimeEventsClient.ts --items all
nl -ba web/src/lib/Live/realtimeEventsClient.ts
printf '\n--- snapshot service ---\n'
nl -ba web/src/server/WebSockets/realtimeSnapshots.service.ts
printf '\n--- same-origin and relevant backup references ---\n'
rg -n -C3 'same.origin|SameOrigin|assert.*Origin|validate.*Origin|validateControllerEncryption\(|ddns-restore-paused|ddns-state|dns-connections\.json' web/src/ scripts/
printf '\n--- changed locale entries ---\n'
python - <<'PY'
import json,subprocess
base='5c7f5c571fb71d6fd8f257045a233845ec5c575d'
def flat(v,p=''):
    out={}
    for k,x in v.items():
        key=p+k
        if isinstance(x,dict): out.update(flat(x,key+'.'))
        else: out[key]=x
    return out
for lang in ['en','de','es','fr','it','nl','pl','pt']:
    path=f'web/src/lib/Language/Locales/{lang}.json'
    old=flat(json.loads(subprocess.check_output(['git','show',base+':'+path])))
    with open(path) as f: new=flat(json.load(f))
    print('\n--- '+path+' ---')
    for k,v in new.items():
        if old.get(k)!=v: print(k, '=',v)
PY

Length of output: 200172


🏁 Script executed:

#!/bin/bash
set -euo pipefail
printf '\n--- realtime polling/deduplication locations ---\n'
rg -n -C4 'LIVE_INTERVALS|lastSnapshot|lastPayload|JSON.stringify\(.*data|snapshot.*revision|previous.*snapshot|last.*snapshot' web/src/server/WebSockets/ web/src/shared/Table/
printf '\n--- table source map ---\n'
ast-grep outline web/src/shared/Table --items all --type function --match 'Table|Pagination|Filter'
printf '\n--- table entry ---\n'
ast-grep outline web/src/shared/Table/index.tsx --items all
nl -ba web/src/shared/Table/index.tsx
printf '\n--- realtime source filenames ---\n'
fd -t f . web/src/server/WebSockets/
printf '\n--- generated route diff ---\n'
git diff 5c7f5c571fb71d6fd8f257045a233845ec5c575d...88215d5db7abed8b14bb192c7d4183b8c5a2d32f -- web/src/routeTree.gen.ts
printf '\n--- global request security locations ---\n'
rg -n -C3 'csrf|CSRF|sec-fetch-site|Sec-Fetch-Site|requestMiddleware|functionMiddleware' web/src/ --glob '!**/tests/**'
printf '\n--- locale structural checks ---\n'
python - <<'PY'
import json,re,subprocess
paths=subprocess.check_output(['git','diff','--name-only','5c7f5c571fb71d6fd8f257045a233845ec5c575d...88215d5db7abed8b14bb192c7d4183b8c5a2d32f','--','web/src/lib/Language/Locales/'],text=True).splitlines()
def pairs(items):
    out={}
    for k,v in items:
        if k in out: print('DUPLICATE JSON KEY:',k)
        out[k]=v
    return out
def flat(v,p=''):
    out={}
    for k,x in v.items():
        key=p+k
        if isinstance(x,dict):out.update(flat(x,key+'.'))
        else:out[key]=x
    return out
catalogs={}
for p in paths:
    with open(p) as f: catalogs[p]=flat(json.load(f,object_pairs_hook=pairs))
en=catalogs['web/src/lib/Language/Locales/en.json']
for p,d in catalogs.items():
    missing=[k for k in en if k not in d]
    extra=[k for k in d if k not in en]
    bad=[k for k in en.keys() & d.keys() if sorted(re.findall(r'\{\{(.*?)\}\}',str(en[k]))) != sorted(re.findall(r'\{\{(.*?)\}\}',str(d[k])))]
    print(p, 'keys=',len(d),'missing=',missing,'extra=',extra,'placeholder_mismatches=',bad)
PY

Length of output: 24671


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in web/src/server/WebSockets/realtimeSubscriptions.ts web/src/shared/Table/Components/TablePagination.tsx web/src/shared/Table/Components/TablePaginationControls/Hooks/useTablePaginationControlsLogic.ts web/src/shared/Table/Components/TableBody.tsx web/src/shared/Table/clientTable.ts web/src/lib/Live/snapshot.ts; do
printf '\n--- %s ---\n' "$file"
ast-grep outline "$file" --items all
nl -ba "$file"
done
printf '\n--- query defaults and table pagination safeguards ---\n'
rg -n -C3 'new QueryClient|refetchInterval|refetchOnWindowFocus|retry:|setPageIndex\(|getPageCount\(|lastPage\(' web/src/shared/Table/ web/src/lib/ web/src/routes/ web/src/router.tsx web/src/features/Admin/Ddns/ web/src/features/Admin/DnsConnections/ --glob '!**/Language/Locales/**'
printf '\n--- final relevant line slices ---\n'
nl -ba web/src/features/Admin/Ddns/Hooks/useDdnsLogic.ts | sed -n '132,173p'
nl -ba web/src/shared/Live/Hooks/useLiveInvalidation.ts | sed -n '16,45p'

Length of output: 33204


@RentnerKev I inspected the requested web/scripts subset at commit 88215d5db7abed8b14bb192c7d4183b8c5a2d32f, including the changed tests and type contracts.

I found three actionable issues.

1. [P2] Adding records to an emptied configuration can override an explicit pause

Location: web/src/features/Admin/Ddns/Hooks/useDdnsLogic.ts, Line 147–167

The default enabled value checks settings?.targets.length. An existing configuration with zero targets therefore takes the same activation path as a fresh list.

A concrete sequence is:

  1. Pause DDNS.
  2. Remove its last managed record.
  3. Add an enabled record and save it.

At step 3, settings.enabled is false, but the empty target list selects !snapshot.restorePaused. For a configuration that was not restored, the save sends enabled: true.

Impact: Saving records can restart scheduled DNS writes without the separate enable action required for an explicitly paused configuration.

Suggested correction: Determine activation from the saved activation intent, not the target count. Preserve an existing explicit pause when the list becomes empty.

Coverage gap: ddns-ui.test.tsx covers fresh-list activation, restored configurations, and removal of the last record. It does not cover adding records after an explicitly paused list becomes empty.

2. [P2] A failed HTTP refetch can leave either page locked while its WebSocket remains healthy

Locations:

Both pages set retry: false. useLiveInvalidation() records each received revision before the resulting HTTP refetch succeeds.

If that refetch fails while the WebSocket stays connected, nothing retries the read for unchanged state. The server also suppresses unchanged snapshots in realtimeSubscriptions.ts, Line 65. The reconnect fix therefore does not cover this case.

For example, a DNS connection revision notification can arrive successfully, but its following server-function request can fail once. If no further connection changes occur, the page retains its query error and keeps writes disabled.

Impact: A transient HTTP failure can leave the foreground page locked until another state change, reconnect, resume, or remount occurs.

Suggested correction: Add error-triggered read retries with backoff that do not depend on another revision notification. Keep successful queries event-driven; continuous browser polling is not required.

Coverage gap: The reconnect test closes the socket. The page recovery tests explicitly call invalidateQueries(). Neither test covers recovery with a healthy socket and unchanged server state.

3. [P2] Live status changes can leave the filtered records table on a nonexistent page

Location: web/src/features/Admin/Ddns/Hooks/useDdnsRecordsLogic.ts, Line 115–120

The new table uses useClientTable(). That helper disables automatic page reset and clamps the page index only when the total input length changes (useClientTable.ts, Line 68–75).

A live DDNS update can change the filtered row count without changing the total target count:

  1. Filter for failed records.
  2. Navigate to page 2.
  3. Receive a live update that leaves fewer than one page of failed records.

The filter value and total target count remain unchanged. The page index can remain 1, so the paginated row model is empty even though matching records remain on page 1.

Impact: The table can show “No matching records” while failed records still exist. The pagination controls clamp their displayed index, but do not correct the table’s stored index.

Suggested correction: Clamp the actual page index when the filtered row count or page count changes.

Coverage gap: The changed filter tests operate on one page. Add a multi-page status-filter case whose matching count shrinks during a live update.


I found no additional concrete issue in the inspected authorization, credential-response handling, or backup changes. All eight locale catalogs contain the English keys and matching interpolation placeholders.

This was read-only source analysis. I did not run builds or tests, invoke a review command, enable paid usage, or change the draft PR.

You are interacting with an AI system.

@RentnerKev

Copy link
Copy Markdown
Member Author

@coderabbitai Your two scoped analyses succeeded and reported six actionable issues. They are addressed in commit c56b0c1. Please verify only the 18-file corrective diff from 88215d5 to c56b0c1 and its relevant callers as a bounded analysis question. Do not invoke the full-PR review command or any paid on-demand usage.

  • Preserve per-target write uncertainty while applying Retry-After as a provider-wide persisted cooldown for POST and PATCH failures.
  • Reload authoritative automation state after cancelled writes before completing an admitted batch or recording preview cooldowns.
  • Invalidate connection registry caches around uncertain persistence for saves, references and deletions.
  • Preserve an explicit pause when the last record is removed and another is added.
  • Retry only failed metadata/status reads with capped backoff, independently of new WebSocket revisions; successful reads remain event-driven, and retry reads do not cancel an already running refetch.
  • Clamp the actual filtered table page after live status changes reduce the matching rows.

The added regressions reproduced the reported failures before the corrections. After the changes, 300 Rust library tests pass (1 pre-existing ignored), 127 focused web tests pass, production build/type checks/lint/Clippy/format checks pass. Please report any remaining concrete bug with its location and impact. Analysis only: do not modify files, generate documentation or screenshots, create another PR or merge the draft. If further analysis requires paid usage, stop and state that limitation.

@coderabbitai

coderabbitai Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail
old=88215d5db7abed8b14bb192c7d4183b8c5a2d32f
new=c56b0c178d5139da9d5fe64ade66ccbbedcb7706
git rev-parse HEAD
git cat-file -t "$old"
git cat-file -t "$new"
git diff --stat "$old" "$new"
git diff "$old" "$new"
printf '\n--- changed file outlines ---\n'
git diff --name-only "$old" "$new" | while IFS= read -r file; do
  if test -f "$file"; then
    printf '\n--- %s ---\n' "$file"
    ast-grep outline "$file" --items all || true
  fi
done

Length of output: 53132


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in core/src/runtime/ddns/automation.rs core/src/runtime/ddns/automation/persistence.rs core/src/runtime/ddns/provider.rs core/src/runtime/ddns/http.rs core/src/runtime/dns_connections/access.rs web/src/shared/Live/Hooks/useLiveInvalidation.ts web/src/shared/Table/clientTable.ts web/src/shared/Table/index.tsx web/src/features/Admin/Ddns/Hooks/useDdnsRecordsLogic.ts; do
  printf '\n--- outline %s ---\n' "$file"
  ast-grep outline "$file" --items all
done
for file in core/src/runtime/ddns/automation/execution.rs core/src/runtime/ddns/automation/persistence.rs core/src/runtime/ddns/automation/scheduling.rs core/src/runtime/ddns.rs core/src/runtime/ddns/provider.rs core/src/runtime/ddns/http.rs core/src/runtime/dns_connections.rs core/src/runtime/dns_connections/references.rs; do
  printf '\n--- %s ---\n' "$file"
  nl -ba "$file"
done

Length of output: 85999


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in web/src/features/Admin/Ddns/Hooks/useDdnsLogic.ts web/src/features/Admin/DnsConnections/Hooks/useDnsConnectionsLogic.ts web/src/shared/Live/Hooks/useQueryRecovery.ts web/src/shared/Live/Hooks/useLiveInvalidation.ts web/src/shared/Table/Hooks/useClientTable.ts web/src/shared/Table/clientTable.ts web/src/shared/Table/index.tsx web/src/features/Admin/Ddns/Hooks/useDdnsRecordsLogic.ts; do
  printf '\n--- %s ---\n' "$file"
  ast-grep outline "$file" --items all
  nl -ba "$file"
done
printf '\n--- direct callers ---\n'
rg -n -C3 'useClientTable\(|useQueryRecovery\(|saveDraft\(|applyDraft\(' web/src/ --glob '!**/tests/**'
printf '\n--- dependency versions ---\n'
fd '^package.json$' web scripts --exec rg -n -C2 '@tanstack/react-(query|table)|"react"' {}

Length of output: 67001


🏁 Script executed:

#!/bin/bash
set -euo pipefail
printf '\n--- automation reload and mutations ---\n'
nl -ba core/src/runtime/ddns/automation.rs | sed -n '26,305p'
printf '\n--- credential access ---\n'
nl -ba core/src/runtime/dns_connections/access.rs | sed -n '1,85p'
printf '\n--- corrective regression tests ---\n'
nl -ba core/tests/private/ddns/automation_recovery.rs
nl -ba core/src/runtime/dns_connections/tests.rs | sed -n '1,105p'
printf '\n--- existing cancellation regressions ---\n'
nl -ba core/tests/private/ddns/automation.rs | sed -n '886,1035p'
printf '\n--- recovery and activation test setup ---\n'
nl -ba web/src/tests/features/Admin/Ddns/ddns-ui.test.tsx | sed -n '26,145p;330,438p;650,710p'
nl -ba web/src/tests/features/Admin/DnsConnections/dns-connections-ui.test.tsx | sed -n '35,120p;440,465p'
printf '\n--- manifest discovery ---\n'
fd -H -t f '^(package\.json|bun\.lock|bun\.lockb|pnpm-lock\.yaml)$' . --exclude .git
printf '\n--- dependency pins ---\n'
rg -n -C2 '"@tanstack/react-query"|"@tanstack/react-table"|"react"' --glob 'package.json' --glob 'bun.lock' .
printf '\n--- table caller outlines ---\n'
for file in web/src/features/Admin/UserManagement/Components/UsersTable/Hooks/useUsersTableLogic.ts web/src/features/Admin/AccessPolicyManagement/Components/AccessPoliciesTable/Hooks/useAccessPoliciesTableLogic.ts web/src/features/Admin/TrustedCaManagement/Components/TrustedCasTable/Hooks/useTrustedCasTableLogic.ts web/src/features/Admin/CertificateManagement/Components/CertificatesTable/Hooks/useCertificatesTableLogic.ts web/src/features/Admin/ProxyHostManagement/Components/ProxyHostsTable/Hooks/useProxyHostsTableLogic.ts web/src/features/Admin/RedirectHostManagement/Components/RedirectHostsTable/Hooks/useRedirectHostsTableLogic.ts web/src/features/Admin/RoleManagement/Components/RolesTable/Hooks/useRolesTableLogic.ts; do
ast-grep outline "$file" --items all
ast-grep run --lang typescript --pattern 'useClientTable($$$)' "$file"
done

Length of output: 70079


@RentnerKev I verified the 18-file diff from 88215d5 to c56b0c1, including relevant callers and regression tests.

I found no remaining concrete bug within this scope. The corrections address all six reported issues:

Area Verification
Provider cooldown POST and PATCH failures retain per-target WriteUnconfirmed. Retry-After also stops subsequent provider requests and persists the provider-wide cooldown.
Automation cancellation Batch completion and preview cooldown recording reload authoritative state when the cache is empty. ActiveRun remains set during batch completion, so reload does not classify the admitted batch as interrupted.
Connection persistence Saves, reference changes, and deletions invalidate the registry cache before persistence. Subsequent operations reload disk state after an uncertain result.
Explicit pause Record saves preserve an existing configuration’s enabled value, including when its target list is empty.
Read recovery Failed reads retry with exponential backoff capped at 30 seconds. Successful reads do not schedule retries. Recovery uses cancelRefetch: false.
Filtered pagination The clamp uses the current filtered page count and updates the table’s stored page index.

The regression tests cover the reported failure sequences, including cancellation without a status observer, POST/PATCH cooldowns, uncertain registry writes, and live filtered-row shrinkage.

This was source verification only. I did not independently run the tests or validation commands you reported. I did not invoke a review command, enable paid on-demand usage, modify files, or change the draft PR’s state.


If you found this review helpful, would you consider giving us a shout-out on X?

Thank you for using CodeRabbit!

You are interacting with an AI system.

@RentnerKev

Copy link
Copy Markdown
Member Author

@coderabbitai Please perform another read-only review of the complete changed Rust subset under core/src/ and core/tests/ in the current PR at commit c56b0c1, including relevant callers, tests and type contracts. This subset contains fewer than 100 changed files. Use scoped analysis, not the full-PR review command or paid on-demand usage.

Your six previously reported Rust/web issues have been fixed and you verified that corrective diff. Now inspect the full current Rust changes again for any remaining concrete correctness, security, concurrency, shutdown, persistence, recovery, cooldown or DNS-scope bug. Report actionable findings with file/line locations, reproduction and impact, or clearly state that no additional concrete issue was found within this scope. Please distinguish verified problems from speculation or style preferences.

Do not modify files, generate documentation/screenshots, create branches/PRs, change billing settings or merge anything. If included public-repository usage cannot cover this analysis, stop and state that limitation.

@RentnerKev

Copy link
Copy Markdown
Member Author

@coderabbitai Please perform another read-only review of the complete changed web/scripts subset under web/src/ and scripts/ in the current PR at commit c56b0c1, including localization, relevant callers, tests and type contracts. This subset contains fewer than 100 changed files. Use scoped analysis, not the full-PR review command or paid on-demand usage.

Your six previously reported Rust/web issues have been fixed and you verified that corrective diff. Now inspect the full current TypeScript changes again for any remaining concrete correctness, authorization, credential handling, async state, WebSocket/read recovery, table pagination/filter, record activation or backup-compatibility bug. Report actionable findings with file/line locations, reproduction and impact, or clearly state that no additional concrete issue was found within this scope. Please distinguish verified problems from speculation or style preferences.

Do not modify files, generate documentation/screenshots, create branches/PRs, change billing settings or merge anything. If included public-repository usage cannot cover this analysis, stop and state that limitation.

@coderabbitai

coderabbitai Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail
target=c56b0c178d5139da9d5fe64ade66ccbbedcb7706
git rev-parse HEAD
git cat-file -t "$target"
base=$(gh pr view 246 --repo RentnerKev/RentnerProxy --json baseRefOid --jq .baseRefOid)
printf 'BASE=%s\n' "$base"
git diff --stat "$base...$target" -- core/src/ core/tests/
git diff --name-only "$base...$target" -- core/src/ core/tests/ | while IFS= read -r file; do
  case "$file" in *.rs)
    printf '\n--- %s ---\n' "$file"
    ast-grep outline "$file" --items all
  esac
done

Length of output: 32147


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in core/src/runtime/ddns.rs core/src/runtime/ddns/provider.rs core/src/runtime/ddns/http.rs core/src/runtime/ddns/discovery.rs core/src/runtime/ddns/models.rs core/src/runtime/ddns/validation.rs; do
printf '\n--- %s ---\n' "$file"; nl -ba "$file"
done

Length of output: 38224


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in core/src/runtime/ddns/automation.rs core/src/runtime/ddns/automation/execution.rs core/src/runtime/ddns/automation/models.rs core/src/runtime/ddns/automation/persistence.rs core/src/runtime/ddns/automation/scheduling.rs core/src/runtime/ddns/worker.rs; do
printf '\n--- %s ---\n' "$file"; nl -ba "$file"
done

Length of output: 55998


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in core/src/runtime/dns_connections.rs core/src/runtime/dns_connections/access.rs core/src/runtime/dns_connections/references.rs core/src/runtime/dns_connections/validation.rs core/src/runtime/dns_connections/models.rs core/src/runtime/dns/encryption.rs; do
printf '\n--- %s ---\n' "$file"; nl -ba "$file"
done

Length of output: 42390


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in core/src/server/handlers/ddns.rs core/src/server/handlers/dns_connections.rs core/src/server/mod.rs; do
printf '\n--- %s ---\n' "$file"; nl -ba "$file"
done
git diff 5c7f5c571fb71d6fd8f257045a233845ec5c575d...c56b0c178d5139da9d5fe64ade66ccbbedcb7706 -- core/src/application.rs core/src/runtime/mod.rs core/src/runtime/lifecycle.rs core/src/runtime/dns/api.rs core/src/runtime/dns/mod.rs core/src/server/handlers.rs core/src/runtime/dns/encryption.rs
printf '\n--- relevant caller maps ---\n'
for file in core/src/server/auth.rs core/src/runtime/state.rs core/src/runtime/lifecycle.rs core/src/application.rs; do
ast-grep outline "$file" --items all
done
printf '\n--- automation and connection callers ---\n'
rg -n -C3 'ddns_automation\.|stop_ddns_scheduler\(|start_ddns_scheduler\(|validate_reference\(|ddns_references\(' core/src/ core/tests/

Length of output: 45892


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in core/tests/private/ddns.rs core/tests/private/ddns/fixture.rs core/src/runtime/dns_connections/tests.rs; do
printf '\n--- %s ---\n' "$file"; nl -ba "$file"
done

Length of output: 65226


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in core/tests/private/ddns/automation.rs core/tests/private/ddns/automation_http.rs core/tests/private/ddns/automation_recovery.rs; do
printf '\n--- %s ---\n' "$file"; nl -ba "$file"
done
printf '\n--- auth ---\n'
nl -ba core/src/server/auth.rs
printf '\n--- filesystem ---\n'
nl -ba core/src/runtime/state.rs | sed -n '1,210p;365,398p'
printf '\n--- shutdown ---\n'
nl -ba core/src/runtime/lifecycle.rs | sed -n '270,315p'
nl -ba core/src/application.rs | sed -n '65,119p'

Length of output: 73865


🏁 Script executed:

#!/bin/bash
set -euo pipefail
printf '\n--- all cooldown replacement and persistence sites ---\n'
rg -n -C4 'cooldown\(|provider_not_before\s*=|impl Drop|spawn\(|spawn_blocking\(' core/src/runtime/ddns/ core/src/runtime/ddns.rs core/src/server/handlers/ddns.rs
printf '\n--- admission and preview persistence ---\n'
nl -ba core/src/runtime/ddns/automation/execution.rs | sed -n '137,252p'
printf '\n--- cache invalidation and reload ---\n'
nl -ba core/src/runtime/ddns/automation.rs | sed -n '79,110p'
printf '\n--- cancellation and write-failure test coverage ---\n'
rg -n -C4 'cancel|StoreUnavailable|provider_not_before|lock_owned\(' core/tests/private/ddns/automation_recovery.rs core/tests/private/ddns/automation.rs
printf '\n--- final scope check ---\n'
git diff --name-status 5c7f5c571fb71d6fd8f257045a233845ec5c575d...c56b0c178d5139da9d5fe64ade66ccbbedcb7706 -- core/src/ core/tests/

Length of output: 31178


@RentnerKev I inspected all 33 changed Rust files at c56b0c178d5139da9d5fe64ade66ccbbedcb7706, including relevant callers, tests, and type contracts.

I found one additional actionable issue.

[P2] Admission can erase a provider cooldown whose persistence was cancelled

Location: core/src/runtime/ddns/automation/execution.rs, Line 217–220. Batch admission has the same problem at Line 150–153.

Engine::execute() records an in-memory cooldown when it receives a provider rate limit. Automation persists that cooldown afterward. If the preview is cancelled before persistence starts, the engine retains the cooldown, but the automation document does not contain it.

The next preview derives its cooldown only from the document. It passes None to Engine::cooldown(), which clears the still-active in-memory cooldown.

Reproduction sequence using the existing fixture and I/O gate:

  1. Start a preview and pause its provider response.
  2. Acquire automation.io.
  3. Release the provider response with HTTP 429 and Retry-After: 120.
  4. Poll the preview until its cooldown commit waits for automation.io.
  5. Drop the preview future, then release automation.io.
  6. Start another preview before 120 seconds elapse.

The second preview reloads the old document, clears the engine cooldown, and sends another provider request immediately. No restart is required.

A persistence failure before atomic replacement creates the same gap. After storage recovers, the next admission can erase the cooldown that remains in memory.

Impact: Preview requests, and subsequently eligible DNS updates, can bypass the provider’s requested pause. This differs from the corrected cancellation tests: those cancel a concurrent disable, but allow the preview or batch to finish recording its cooldown.

Suggested correction: Preserve the later of the active in-memory deadline and the persisted deadline. Keep an uncommitted cooldown pending and persist it before admitting further provider work. An absent persisted deadline must not clear an active in-memory deadline.

Verification level: This failure path is confirmed by source inspection. I did not execute the reproduction or run tests.


I found no other concrete issue within the inspected Rust scope. I did not modify files, invoke a review command, enable paid on-demand usage, or change the draft PR’s state.

You are interacting with an AI system.

@coderabbitai

coderabbitai Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail
target=c56b0c178d5139da9d5fe64ade66ccbbedcb7706
git rev-parse HEAD
git cat-file -t "$target"
base=$(gh pr view 246 --repo RentnerKev/RentnerProxy --json baseRefOid --jq .baseRefOid)
printf 'BASE=%s\n' "$base"
git diff --stat "$base...$target" -- web/src/ scripts/
git diff --name-only "$base...$target" -- web/src/ scripts/
if [ "$(git rev-parse HEAD)" = "$target" ]; then
git diff --name-only "$base...$target" -- web/src/ scripts/ | while IFS= read -r file; do
case "$file" in *.ts|*.tsx) printf '\n--- %s ---\n' "$file"; ast-grep outline "$file" --items all;; esac
done
fi

Length of output: 64700


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in web/src/server/Admin/Ddns/ddns.service.ts web/src/server/Admin/Ddns/ddns-preview.service.ts web/src/server/Admin/DnsConnections/dns-connections.service.ts web/src/server/Controller/ddns.server.ts web/src/server/Controller/dns-connections.server.ts web/src/server/Controller/dns-connections.validation.ts web/src/server/Controller/transport.server.ts web/src/features/Admin/Ddns/middleware.ts web/src/features/Admin/DnsConnections/middleware.ts web/src/features/Admin/Ddns/validation.ts web/src/features/Admin/DnsConnections/validation.ts web/src/lib/Ddns/validation.ts scripts/backup/dns-connections.ts; do
printf '\n--- %s ---\n' "$file"; nl -ba "$file"
done
printf '\n--- backup changes ---\n'
git diff 5c7f5c571fb71d6fd8f257045a233845ec5c575d...HEAD -- scripts/backup/format.ts scripts/production-restore.ts

Length of output: 77210


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in web/src/features/Admin/Ddns/Hooks/useDdnsLogic.ts web/src/features/Admin/Ddns/Hooks/useDdnsRecordEditorLogic.ts web/src/features/Admin/Ddns/Hooks/useDdnsRecordsLogic.ts web/src/features/Admin/Ddns/Hooks/useDdnsSettingsLogic.ts web/src/features/Admin/DnsConnections/Hooks/useDnsConnectionsLogic.ts web/src/lib/Ddns/targets.ts web/src/lib/Ddns/recordEditor.ts web/src/lib/Ddns/recordFamilies.ts web/src/shared/Live/Hooks/useLiveInvalidation.ts web/src/shared/Live/Hooks/useQueryRecovery.ts web/src/shared/Table/Hooks/useClientTable.ts; do
printf '\n--- %s ---\n' "$file"; nl -ba "$file"
done

Length of output: 65230


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in web/src/features/Admin/Ddns/index.tsx web/src/features/Admin/Ddns/Components/DdnsRecordEditor.tsx web/src/features/Admin/Ddns/Components/DdnsSettings.tsx web/src/features/Admin/Ddns/Components/DdnsRecords.tsx web/src/features/Admin/Ddns/Components/DdnsRecordCells.tsx web/src/features/Admin/DnsConnections/index.tsx web/src/features/Admin/DnsConnections/Components/DnsConnectionEditor.tsx web/src/features/Admin/DnsConnections/Components/DnsConnectionCard.tsx web/src/shared/Forms/OptionToggle.tsx web/src/shared/Notifications/Hooks/useQueryErrorToast.ts; do
printf '\n--- %s ---\n' "$file"; nl -ba "$file"
done
printf '\n--- changed configuration/navigation/routes ---\n'
git diff 5c7f5c571fb71d6fd8f257045a233845ec5c575d...HEAD -- web/src/config/ web/src/layouts/ web/src/lib/ApplicationShell/ web/src/lib/Permissions/ web/src/routes/ web/src/routeTree.gen.ts
printf '\n--- changed type contracts and API bindings ---\n'
git diff --name-only 5c7f5c571fb71d6fd8f257045a233845ec5c575d...HEAD -- web/src/ | grep -E '/Types/|ddns-api.ts$' | while IFS= read -r file; do printf '\n--- %s ---\n' "$file"; nl -ba "$file"; done

Length of output: 97959


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in web/src/tests/server/Admin/Ddns/ddns.test.ts web/src/tests/server/Admin/DnsConnections/dns-connections.test.ts web/src/tests/server/Controller/ddns.test.ts web/src/tests/server/Controller/dns-connections.test.ts web/src/tests/tooling/scripts/backup/dns-connections.test.ts; do
printf '\n--- %s ---\n' "$file"; nl -ba "$file"
done
printf '\n--- live, authorization, backup caller outlines ---\n'
for file in web/src/shared/Live/Hooks/useLiveQuery.ts web/src/lib/Live/realtimeEventsClient.ts web/src/server/WebSockets/realtimeSubscriptions.ts web/src/server/Auth/Access/authorization.service.ts web/src/server/Auth/transport.server.ts web/src/shared/Table/clientTable.ts web/src/shared/Table/index.tsx; do
printf '\n--- %s ---\n' "$file"; ast-grep outline "$file" --items all
done
printf '\n--- request security locations ---\n'
rg -n -C3 'csrf|CSRF|sec-fetch-site|Sec-Fetch-Site|requestMiddleware|functionMiddleware|same.origin|assert.*Origin|validate.*Origin' web/src/ --glob '!**/tests/**'
printf '\n--- backup context ---\n'
nl -ba scripts/backup/format.ts | sed -n '90,300p'
nl -ba scripts/production-restore.ts | sed -n '240,480p'

Length of output: 95579


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in web/src/tests/features/Admin/Ddns/ddns-ui.test.tsx web/src/tests/features/Admin/DnsConnections/dns-connections-ui.test.tsx web/src/tests/lib/Ddns/record-editor.test.ts web/src/tests/lib/Ddns/record-families.test.ts web/src/tests/lib/Ddns/targets.test.ts web/src/tests/features/Admin/DnsConnections/validation.test.ts web/src/tests/shared/Live/live-invalidation.test.tsx web/src/tests/Helpers/ddnsFixture.ts; do
printf '\n--- %s ---\n' "$file"; nl -ba "$file"
done

Length of output: 88305


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in web/src/shared/Live/Hooks/useLiveQuery.ts web/src/lib/Live/realtimeEventsClient.ts web/src/server/WebSockets/realtimeSubscriptions.ts web/src/server/WebSockets/realtimeSnapshots.service.ts web/src/server/Auth/Access/authorization.service.ts web/src/shared/Table/clientTable.ts web/src/shared/Table/index.tsx; do
printf '\n--- %s ---\n' "$file"; nl -ba "$file"
done
ast-grep outline web/src/start.ts --items all
nl -ba web/src/start.ts | sed -n '100,145p'
nl -ba web/src/server/Auth/transport.server.ts | sed -n '67,105p;160,187p'
printf '\n--- live comparison contracts ---\n'
ast-grep outline web/src/lib/Live/snapshot.ts --items all
nl -ba web/src/lib/Live/snapshot.ts
printf '\n--- remaining changed tests ---\n'
git diff 5c7f5c571fb71d6fd8f257045a233845ec5c575d...HEAD -- web/src/tests/lib/Admin/RoleManagement/permission-groups.test.ts web/src/tests/server/WebSockets/live-snapshot.test.ts
printf '\n--- locale keys/placeholders and changed English text ---\n'
python - <<'PY'
import json,re,subprocess
base='5c7f5c571fb71d6fd8f257045a233845ec5c575d'
paths=subprocess.check_output(['git','diff','--name-only',base+'...HEAD','--','web/src/lib/Language/Locales/'],text=True).splitlines()
def pairs(items):
    d={}
    for k,v in items:
        if k in d: print('DUPLICATE',k)
        d[k]=v
    return d
def flat(v,p=''):
    d={}
    for k,x in v.items():
        if isinstance(x,dict):d.update(flat(x,p+k+'.'))
        else:d[p+k]=x
    return d
catalogs={}
for p in paths:
    with open(p) as f:catalogs[p]=flat(json.load(f,object_pairs_hook=pairs))
en=catalogs['web/src/lib/Language/Locales/en.json']
for p,d in catalogs.items():
    old=flat(json.loads(subprocess.check_output(['git','show',base+':'+p])))
    changed={k:v for k,v in d.items() if old.get(k)!=v}
    bad=[k for k in en.keys()&d.keys() if sorted(re.findall(r'\{\{(.*?)\}\}',str(en[k])))!=sorted(re.findall(r'\{\{(.*?)\}\}',str(d[k])))]
    print(p,'changed',len(changed),'missing',sorted(en.keys()-d.keys()),'extra',sorted(d.keys()-en.keys()),'placeholder_mismatches',bad)
    if p.endswith('/en.json'):
        for k,v in changed.items():print(k,'=',v)
PY
printf '\n--- backup archive exclusions ---\n'
ast-grep outline scripts/backup/controller-state-archive.ts --items all
nl -ba scripts/backup/controller-state-archive.ts

Length of output: 78690


🏁 Script executed:

#!/bin/bash
set -euo pipefail
printf '\n--- error mappings ---\n'
for file in web/src/server/Admin/Ddns/ddns.errors.ts web/src/server/Admin/DnsConnections/dns-connections.errors.ts; do
nl -ba "$file"
done
printf '\n--- shared table callers ---\n'
rg -n -C3 '\buseClientTable\s*\(' web/src/ --glob '!**/tests/**'
printf '\n--- table component outlines ---\n'
for file in web/src/shared/Table/Components/TablePagination.tsx web/src/shared/Table/Components/TableBody.tsx web/src/shared/Table/Components/TablePaginationControls/Hooks/useTablePaginationControlsLogic.ts; do
ast-grep outline "$file" --items all
nl -ba "$file"
done
printf '\n--- Rust boundary outlines ---\n'
for file in core/src/runtime/ddns/models.rs core/src/runtime/ddns/automation/models.rs core/src/runtime/dns_connections/models.rs core/src/runtime/dns_connections/validation.rs core/src/runtime/ddns/automation.rs core/src/server/handlers/ddns.rs; do
ast-grep outline "$file" --items all
done
printf '\n--- Rust response and save contracts ---\n'
nl -ba core/src/runtime/ddns/automation/models.rs
nl -ba core/src/runtime/dns_connections/validation.rs | sed -n '1,155p'
nl -ba core/src/runtime/ddns/automation.rs | sed -n '110,250p'
nl -ba core/src/server/handlers/ddns.rs | sed -n '1,200p'
printf '\n--- locale changed text outside English ---\n'
python - <<'PY'
import json,subprocess
base='5c7f5c571fb71d6fd8f257045a233845ec5c575d'
def flat(v,p=''):
    d={}
    for k,x in v.items():
        if isinstance(x,dict):d.update(flat(x,p+k+'.'))
        else:d[p+k]=x
    return d
for lang in ['de','es','fr','it','nl','pl','pt']:
    p=f'web/src/lib/Language/Locales/{lang}.json'
    old=flat(json.loads(subprocess.check_output(['git','show',base+':'+p])))
    with open(p) as f:new=flat(json.load(f))
    print('\n---',p,'---')
    for k,v in new.items():
        if old.get(k)!=v: print(k,'=',v)
PY

Length of output: 197013


@RentnerKev I completed another read-only review of the 91 changed files under web/src/ and scripts/ at commit c56b0c178d5139da9d5fe64ade66ccbbedcb7706.

I found no additional concrete actionable bug within this scope.

The review included:

  • Server authorization, global CSRF protection, rate limits, and redacted errors and audit data.
  • Credential request handling, confidential controller transport, and strict response contracts.
  • Automatic record inspection, approved provider IDs, activation, and explicit-pause preservation.
  • Delayed mutation responses, stale drafts, deletion revisions, and live connection references.
  • WebSocket invalidation and reconnect behavior.
  • Failed-read recovery with capped backoff and cancelRefetch: false.
  • Record editing, column filters, and the actual filtered-page clamp.
  • Encrypted connection backup validation and the restore pause marker.
  • Changed tests, shared callers, and Rust contracts used by the TypeScript boundary.

All eight locale catalogs contain the English keys and matching interpolation placeholders. The structural check found no duplicate JSON keys.

This result is source analysis, not runtime verification. I did not run tests, builds, browser checks, or live Cloudflare requests. I did not invoke a review command or paid on-demand review. I made no file, branch, PR-state, or billing changes.

You are interacting with an AI system.

@RentnerKev

Copy link
Copy Markdown
Member Author

@coderabbitai The additional cancellation/persistence issue from your second Rust pass is fixed in ca8c7b6. Please perform another read-only analysis of all 33 changed Rust files under core/src/ and core/tests/, including relevant callers and tests, at this current commit. Keep the scope below 100 files; do not invoke the full-PR review command or paid on-demand usage.

The engine now retains pending provider feedback while merging durable deadlines, and marks a cooldown as persisted only after the automation document commits. Skipped preview results also make retained pending cooldowns durable. The added regression reproduces cancellation before persistence and pre-replacement write failure, checks both following preview and scheduled admission, and checks restart with a fresh engine; no extra provider call is allowed. It failed before the correction and now passes with all 301 Rust library tests (1 pre-existing ignored), Clippy across all targets/features and cargo fmt.

Please verify the fix and inspect for any remaining concrete actionable bug with location, reproduction and impact, or state that none was found within the full Rust scope. The 91-file web/scripts subset is byte-for-byte unchanged from c56b0c1, where your latest full scoped pass found no additional issue.

Analysis only: do not modify files, create branches/PRs, generate docs/screenshots, alter billing or merge anything. Stop rather than using paid usage.

@coderabbitai

coderabbitai Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail
target=ca8c7b6f786e35315c71e6949fe131b7dd9d61a7
git rev-parse HEAD
git cat-file -t "$target"
base=$(gh pr view 246 --repo RentnerKev/RentnerProxy --json baseRefOid --jq .baseRefOid)
printf 'BASE=%s\n' "$base"
git diff --stat "$base...$target" -- core/src/ core/tests/
git diff c56b0c178d5139da9d5fe64ade66ccbbedcb7706 "$target" -- core/src/ core/tests/
git diff --name-only "$base...$target" -- core/src/ core/tests/ | while IFS= read -r file; do
case "$file" in *.rs)
printf '\n--- %s ---\n' "$file"
ast-grep outline "$file" --items all
;; esac
done

Length of output: 41268


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in core/src/runtime/ddns.rs core/src/runtime/ddns/automation.rs core/src/runtime/ddns/automation/execution.rs core/src/runtime/ddns/automation/persistence.rs core/src/runtime/ddns/automation/scheduling.rs core/src/runtime/ddns/automation/models.rs; do
printf '\n--- %s ---\n' "$file"
nl -ba "$file"
done

Length of output: 67890


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in core/src/runtime/ddns/provider.rs core/src/runtime/ddns/http.rs core/src/runtime/ddns/discovery.rs core/src/runtime/ddns/validation.rs core/src/runtime/ddns/models.rs core/src/runtime/ddns/worker.rs core/src/runtime/dns_connections.rs core/src/runtime/dns_connections/access.rs core/src/runtime/dns_connections/references.rs core/src/runtime/dns_connections/models.rs core/src/runtime/dns_connections/validation.rs core/src/runtime/dns/encryption.rs; do
printf '\n--- %s ---\n' "$file"
nl -ba "$file"
done

Length of output: 69432


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in core/src/server/handlers/ddns.rs core/src/server/handlers/dns_connections.rs core/src/server/mod.rs core/src/runtime/dns/api.rs; do
printf '\n--- %s ---\n' "$file"; nl -ba "$file"
done
git diff 5c7f5c571fb71d6fd8f257045a233845ec5c575d...ca8c7b6f786e35315c71e6949fe131b7dd9d61a7 -- core/src/application.rs core/src/runtime/lifecycle.rs core/src/runtime/mod.rs core/src/runtime/dns/mod.rs core/src/server/handlers.rs
for file in core/src/server/auth.rs core/src/runtime/state.rs core/src/runtime/lifecycle.rs core/src/application.rs; do
printf '\n--- outline %s ---\n' "$file"; ast-grep outline "$file" --items all
done
nl -ba core/src/server/auth.rs
nl -ba core/src/runtime/state.rs | sed -n '1,215p;365,398p'
nl -ba core/src/runtime/lifecycle.rs | sed -n '265,320p'
nl -ba core/src/application.rs | sed -n '65,125p'
printf '\n--- callers ---\n'
rg -n -C3 'ddns_automation\.|stop_ddns_scheduler\(|start_ddns_scheduler\(|validate_reference\(|ddns_references\(|\.ddns\b' core/src/ --glob '*.rs'

Length of output: 67915


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in core/tests/private/ddns.rs core/tests/private/ddns/fixture.rs core/src/runtime/dns_connections/tests.rs; do
printf '\n--- %s ---\n' "$file"; nl -ba "$file"
done

Length of output: 65258


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for file in core/tests/private/ddns/automation.rs core/tests/private/ddns/automation_http.rs core/tests/private/ddns/automation_recovery.rs; do
printf '\n--- %s ---\n' "$file"; nl -ba "$file"
done

Length of output: 61213


@RentnerKev I completed the read-only review of all 33 changed Rust files under core/src/ and core/tests/ at ca8c7b6f786e35315c71e6949fe131b7dd9d61a7, including relevant callers, tests, and type contracts.

The cancellation/persistence correction addresses the reported failure path. I found no additional concrete actionable bug within the full Rust scope.

The correction now:

  • Retains active, uncommitted provider feedback when the durable document has no cooldown.
  • Merges pending and durable cooldowns without shortening the active deadline.
  • Marks a cooldown as persisted only after the automation document commits.
  • Persists retained cooldowns from skipped preview results.

The new regression covers cancelled preview persistence and pre-replacement persistence failure. It checks both following preview and scheduled admission. It also checks restart with a fresh engine and asserts that no additional provider read occurs.

The broader review covered DNS update scope, token encryption, private API authorization, connection references, concurrent operations, cancellation, persistence recovery, scheduling, backoff, restore pauses, and shutdown ordering.

Verification limit: This was source analysis. I did not independently run the reported tests, Clippy, or formatting checks. I did not invoke a review command or paid on-demand review. I made no file, branch, PR-state, or billing changes.

You are interacting with an AI system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: certificates Certificates, ACME, trusted CAs, and TLS material. area: runtime Caddy and privileged controller runtime behavior. area: ui Web interface components, routes, styling, and localization. enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants