Skip to content

feat: add database module and harden registry#5

Merged
im10furry merged 1 commit into
masterfrom
codex/database-module-hardening
Jul 6, 2026
Merged

feat: add database module and harden registry#5
im10furry merged 1 commit into
masterfrom
codex/database-module-hardening

Conversation

@im10furry

Copy link
Copy Markdown
Member

Summary

  • Add a new database registry module with database/sql open helpers, dynamic pool profiles, transaction helpers, and safe query-fragment builders.
  • Register the module across registry metadata, docs, AGENTS guidance, README files, VitePress navigation, and the embedded bundle.
  • Harden existing modules:
    • reject oversized JSON bodies in auth and crud even when the prefix is valid JSON
    • disable arbitrary CRUD filters by default and cap/validate allowed filters
    • make middleware.ClientIP ignore spoofable forwarded headers by default
    • add RBAC capacity limits for roles, users, parents, and permissions
    • add bounded LRU eviction to file-upload in-memory storage
  • Keep stdlib-only constraints intact; no new external dependencies were added.

Validation

  • go run ./internal/cmd/build-bundle
  • all registry modules: go test -count=1 ./...
  • all registry modules: go vet ./...
  • root packages: go test -count=1 ./cmd/... ./internal/...
  • root packages: go vet ./cmd/... ./internal/...
  • go run ./cmd/scion doctor --strict
  • cd docs && npm run build
  • git diff --check

@im10furry im10furry merged commit 60b3bc9 into master Jul 6, 2026
6 checks passed
@im10furry im10furry deleted the codex/database-module-hardening branch July 6, 2026 04:48
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