fix(indexer): isolate database roles and QA mutations #1426
No reviewers
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
code/cl8y-dex-terraclassic!1426
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-1396-db-isolation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Indexer startup previously applied migrations with its application credential, and
seed-qa --cleancould connect and migrate before checking mode or arguments. Integration processes also reused mutable database history. This change separates runtime DML, one-shot migrations and dedicated QA credentials, authenticates isolated QA targets before mutation, and creates fresh databases per integration process.Implements the source remediation for #1396 and its comments.
The server verifies least privilege and a protected schema marker and never migrates. Local migration/server launchers isolate inherited credentials. Charts fixtures use the same QA guard. GitLab, GitHub and Woodpecker sources use dedicated QA credentials. DB1396 invariants, agent instructions, acceptance checklist and staged transition/rollback docs are cross-linked.
Validation:
make verify-issue-1396— 28 PASS, 0 FAIL, 2 SKIP, with both runs passing 561 library tests, 4 CLI tests, 6 database tests, 43 API security tests and 28 API tests.make verify-issue-1400— 9 PASS, 0 FAIL, 0 SKIP, including signed-policy image build/tests. Secret-log lint, YAML parsing, whitespace and independent agent review passed.The two explicit platform skips are custom-bridge published-loopback queries timing out on this host, and host IPv6 being disabled. Internal/default-bridge confinement and host-mode IPv4 probes passed. Production role rollout/live exposure and deployment of the updated immutable trusted CI policy require separate receipts; local results do not attest them. Agents may record unavailable checklist items as SKIP and report PASS WITH SKIPS; executed failures remain FAIL.
Review/commands: agent checklist, receipt, invariants, transition and rollback.
Rollout requires the separate migration job and scoped credentials before starting the new server. Deploy the integrated trusted CI policy bundle before treating hosted enforcement as accepted. No production database, shared history or deployment was mutated by these checks.