Skip to content

feat: refactor DNSServer to use pipeline - #78

Merged
rsclarke merged 1 commit into
mainfrom
feat/60-refactor-dnsserver-to-use-pipeline
Feb 2, 2026
Merged

rsclarke merged 1 commit into
mainfrom
feat/60-refactor-dnsserver-to-use-pipeline

Conversation

@rsclarke

@rsclarke rsclarke commented Feb 2, 2026

Copy link
Copy Markdown
Owner

Summary

Refactors the DNS server to create events and dispatch through the pipeline instead of calling db functions directly.

Changes

  • DNSServer now has Pipeline field instead of DB
  • Creates InteractionDraft and DNSEvent from DNS queries
  • Dispatches through pipeline via ProcessDNS()
  • Builds DNS response from DNSResponsePlan after pipeline processing
  • SOA/NS/ACME handling remains unchanged (operational plumbing)
  • No direct imports of internal/db in dns.go

Files Modified

  • internal/server/dns.go - Refactored to use pipeline
  • internal/server/dns_test.go - Added pipeline integration tests
  • cmd/oastrix/server.go - Initialize DNSServer with pipeline

Acceptance Criteria

  • DNSServer has Pipeline field
  • Creates InteractionDraft and DNSEvent from query
  • Dispatches through pipeline for token queries
  • SOA/NS/ACME handling unchanged
  • All existing DNS tests pass
  • No direct imports of internal/db in dns.go for interaction storage

Closes #60

- Replace direct db calls with pipeline.ProcessDNS()
- Update DNSServer to use Pipeline field instead of DB field
- Create InteractionDraft and DNSEvent from DNS queries
- Build DNS response from DNSResponsePlan after pipeline processing
- Update cmd/oastrix/server.go to initialize DNSServer with pipeline
- Add DNS server tests for pipeline integration
- SOA/NS/ACME handling remains unchanged (operational plumbing)

Closes #60
@rsclarke
rsclarke merged commit d3b0be8 into main Feb 2, 2026
1 check passed
@rsclarke
rsclarke deleted the feat/60-refactor-dnsserver-to-use-pipeline branch February 2, 2026 08:41
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.

Refactor DNSServer to use pipeline

1 participant