fix: address code review findings for DNS management

- CRITICAL: Change DNS zones endpoint from GET to POST to avoid
  leaking API token in URL query parameters
- HIGH: Add sync.RWMutex to protect dnsProvider field in Server,
  Deployer, and proxy Manager against concurrent read/write races
- HIGH: Capture old DNS provider reference synchronously before
  launching background cleanup goroutine
- HIGH: Use getDNS()/getDNSProviderLocked() accessors instead of
  direct field reads in all DNS operations
This commit is contained in:
2026-04-02 14:54:15 +03:00
parent c730cfaa45
commit 670948f113
243 changed files with 15971 additions and 535 deletions
+13 -1
View File
@@ -2,7 +2,19 @@
"permissions": {
"allow": [
"Bash(npm install:*)",
"Bash(go build:*)"
"Bash(go build:*)",
"Bash(npx svelte-check:*)",
"Bash(curl -s -o /dev/null -w \"%{http_code}\" http://localhost:8090/api/settings)",
"Bash(npm run:*)",
"Bash(curl -s -o /dev/null -w \"%{http_code}\" http://localhost:8090/)",
"Bash(go vet:*)",
"Bash(git checkout:*)",
"Bash(git stash:*)",
"Bash(echo \"EXIT: $?\")"
],
"additionalDirectories": [
"C:\\Users\\Alexei\\Documents\\docker-watcher\\internal",
"C:\\Users\\Alexei\\Documents\\docker-watcher\\web\\src\\routes\\projects\\[id]\\volumes\\[volId]"
]
}
}