Skip to content

security: rebuild SQLPad on a supported runtime - #3146

Merged
shizn merged 5 commits into
mainfrom
codex/ossinsight-sqlpad-runtime
Nov 4, 2026
Merged

shizn merged 5 commits into
mainfrom
codex/ossinsight-sqlpad-runtime

Conversation

@shizn

@shizn shizn commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

The deployed SQLPad runtime uses an outdated Node/dependency stack and the upstream project is archived. Add a reproducible SQLPad 7.5.7 build on Node 24.22.2 with pinned source/image digests, reviewed dependency locks, native SQLite 6, AWS region input validation, and explicit MySQL certificate hostname verification. The image runs as a non-root user with a read-only filesystem; its HTML template is prepared during the build.

Add a transactional, dry-run-by-default connection rekey utility and rollout/rollback guidance. The utility preserves connection contents, users, password hashes, and saved queries; generated keys and operational credentials stay outside this repository.

Validation:

  • CI 41779902997 passed, including the complete Linux image build, 248 server tests, 5 rekey tests, client typecheck/build, and a real read-only server startup/authentication smoke test. The 13 upstream external-database fixture tests remain pending.
  • Client production audit: zero findings. Server audit: only the explicitly documented low-severity AWS SDK v2 advisory remains; its input-sanitization mitigation has regression coverage. Every other audit finding fails the build.
  • Isolated migration of the existing metadata preserved the administrator login, password hash, and all 8 saved queries. Anonymous query/connection access is rejected and the session cookie is Secure, HttpOnly, and SameSite=Strict.
  • The actual MySQL driver reaches authentication with certificate and hostname validation enabled. The existing database account returns error 1045 in both the original container and staging; a successful live SQL query has therefore not been verified. This pre-existing account issue and the public HTTPS certificate correction are tracked separately from the image build.

Deployed to production on 2026-11-04. Verified the existing administrator login through public HTTPS, preserved users/password hashes/saved queries, rejected anonymous query and connection access, and confirmed the container is healthy with zero restarts. The domain now has a matching ACM certificate, HTTP redirects to HTTPS, and responses carry one HSTS header. The original container is stopped with restart disabled, its data is retained for rollback, and the new application keys have a private off-host backup. The dedicated MySQL account still has the pre-existing authentication failure described above.

@vercel

vercel Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ossinsight-docs Ready Ready Preview Nov 4, 2026 5:33am UTC
ossinsight-web Ready Ready Preview Nov 4, 2026 5:33am UTC

Request Review

@shizn
shizn marked this pull request as ready for review November 4, 2026 05:57
@shizn
shizn merged commit 1aadb4c into main Nov 4, 2026
4 checks passed
@shizn
shizn deleted the codex/ossinsight-sqlpad-runtime branch November 4, 2026 05:57

This branch was successfully deployed

2 active deployments
Preview – ossinsight-web — d3a0c583 Deployed Nov 4, 2026 by vercel[bot]
Preview – ossinsight-docs — d3a0c583 Deployed Nov 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant