Skip to content

build: trim plugin.cfg to only used plugins#28

Merged
davidpoblador merged 1 commit intomainfrom
worktree-agent-ae5e5166
Apr 4, 2026
Merged

build: trim plugin.cfg to only used plugins#28
davidpoblador merged 1 commit intomainfrom
worktree-agent-ae5e5166

Conversation

@davidpoblador
Copy link
Copy Markdown
Member

Summary

  • Reduced plugin.cfg from 59 plugins to the 10 actually used by the Corefile: cancel, bind, ready, health, errors, log, tailscale, cache, loop, and forward
  • Removes unused cloud providers (route53, azure, clouddns), kubernetes, etcd, dnssec, and many others
  • Preserves the original relative ordering (important for CoreDNS plugin chaining)

Closes #23

Test plan

  • Docker image builds successfully with the trimmed plugin set
  • CoreDNS starts and serves DNS queries for Tailscale domains
  • forward plugin works when UPSTREAM_DNS is configured
  • Health and ready endpoints respond correctly

🤖 Generated with Claude Code

The plugin.cfg carried the entire upstream CoreDNS plugin catalog (50+
plugins including cloud providers, kubernetes, etcd, dnssec, etc.) when
the image only uses 10. This reduces the compiled binary size and attack
surface by keeping only: cancel, bind, ready, health, errors, log,
tailscale, cache, loop, and forward.

Closes #23

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@davidpoblador davidpoblador merged commit 290a5e6 into main Apr 4, 2026
1 check passed
@davidpoblador davidpoblador deleted the worktree-agent-ae5e5166 branch April 4, 2026 22:38
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.

Trim the CoreDNS plugin set to what the image actually uses

1 participant