Repository navigation
Address audit findings: security, durable publishing, TLS and gateway reliability - #20
Draft
magiccodingman wants to merge 2 commits into
Draft
magiccodingman wants to merge 2 commits into
magiccodingman wants to merge 2 commits into
Conversation
… gateway reliability Integrate the connected IPNS version pruning work from PR #19, retaining its original commit as a merge parent. Add origin isolation, session revocation and CSRF protection, durable publication recovery, atomic configuration and rate-counter persistence, full TLS chains, streaming proxy behavior and regression coverage. Include the complete audit finding matrix and deployment/acceptance handoff in docs/developer/audit-remediation.md.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why this change is needed
The audit found failures at several application boundaries: executable IPFS content shared the management origin, cookie operations lacked consistent CSRF protection, live rate counters were reset by persistence, incomplete publications/IPNS targets could replace working content, and TLS persistence omitted intermediates.
This draft implements the TG-01–TG-24 remediation matrix and prepares a branch for the requested independent ground testing. It targets
masterata4c5ab91740b8c9302022bcdca632219d5016778. PR #19's connected-version pruning work is included, retaining its original commit as a merge parent; this PR adds acquisition, recovery and regression fixes around it.What changes
falsein Kubo settings.Deployment and client changes
/ipfs/and/ipns/browsing needsGateway__ContentGatewayOriginpointing to an independent HTTPS gateway on a different hostname; otherwise it returns 409. Mapped sites remain available. The local Kubo WebUI is the explicit trusted exception.X-TruthGate-CSRFfromGET /auth/csrf. Explicit valid API keys do not need that token.state/publicationsbeside the configuration.202now returns a durable job ID and status URL; it does not mean publication has finished.--batch-sizeis rejected before upload because publishing separate batches can replace a site with partial content.__host,X-Dev-Host, andDevEmulateHostauthority overrides are removed. Use real separate hostnames.Verification
Verified PR head:
24cae7722d0d5d13aee79da58dc9a93ad3903df0.The clean GitHub runner completed the combined build and all suites normally. Locally, a temporary uncommitted MSBuild registration worked around blocked WebAssembly task-host IPC, but aggregate compilation later hit sandbox resource limits; no workaround is included in application code or CI.
The Release build has 0 errors and 49 non-failing warnings, principally nullable model/UI references, deprecated API calls and inherited-member hiding. Those warnings remain visible; they were not suppressed. A separate warning cleanup is outside the 24-finding remediation matrix.
Review handoff
Finding-by-finding remediation, settings, API behavior, and acceptance matrix
Before merging, run the documented real-browser/WebUI, production/development Docker (AMD64 and ARM64), external Kubo/IPNS, ACME staging, large-upload, and process-kill recovery checks. Publication journals/SQLite assume one active appliance process; promotion uses durable recovery across sequential MFS/IPNS operations. Historical immutable roots remain pinned for safe recovery, with ownership-aware pin cleanup left to the operator.
No merge or deployment is requested by this PR.