Repository navigation
feat(ddns): add scheduled Cloudflare DDNS management - #246
Conversation
|
Important Review skippedToo 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
⛔ Files ignored due to path filters: 1
📒 Files selected for processing: 123
You can disable this status message by setting the
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. Comment |
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.
|
@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 Please inspect only the changed Rust files under 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. |
|
@coderabbitai Please inspect only the changed TypeScript/TSX and localization files under 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. |
|
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
doneLength 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"
doneLength 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.rsLength 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"
doneLength 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
I found three actionable issues. 1. [P2] Write failures lose the provider-wide
|
|
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
doneLength 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"
doneLength 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"
doneLength 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"
doneLength 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"
doneLength 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 -80Length 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)
PYLength 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)
PYLength 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
I found three actionable issues. 1. [P2] Adding records to an emptied configuration can override an explicit pauseLocation: The default A concrete sequence is:
At step 3, 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: 2. [P2] A failed HTTP refetch can leave either page locked while its WebSocket remains healthyLocations:
Both pages set If that refetch fails while the WebSocket stays connected, nothing retries the read for unchanged state. The server also suppresses unchanged snapshots in 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 3. [P2] Live status changes can leave the filtered records table on a nonexistent pageLocation: The new table uses A live DDNS update can change the filtered row count without changing the total target count:
The filter value and total target count remain unchanged. The page index can remain 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. |
|
@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.
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. |
|
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
doneLength 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"
doneLength 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"
doneLength of output: 70079
I found no remaining concrete bug within this scope. The corrections address all six reported issues:
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. |
|
@coderabbitai Please perform another read-only review of the complete changed Rust subset under 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. |
|
@coderabbitai Please perform another read-only review of the complete changed web/scripts subset under 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. |
|
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
doneLength 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"
doneLength 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"
doneLength 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"
doneLength 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"
doneLength 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
I found one additional actionable issue. [P2] Admission can erase a provider cooldown whose persistence was cancelledLocation:
The next preview derives its cooldown only from the document. It passes Reproduction sequence using the existing fixture and I/O gate:
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. |
|
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
fiLength 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.tsLength 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"
doneLength 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"; doneLength 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"
doneLength 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.tsLength 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)
PYLength of output: 197013
I found no additional concrete actionable bug within this scope. The review included:
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. |
|
@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 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. |
|
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
doneLength 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"
doneLength 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"
doneLength 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"
doneLength 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"
doneLength of output: 61213
The cancellation/persistence correction addresses the reported failure path. I found no additional concrete actionable bug within the full Rust scope. The correction now:
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. |
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:
Local dependency upgrades are excluded.