Skip to content

Use go-certmanager library for unified cert management#91

Open
AntiD2ta wants to merge 7 commits intomasterfrom
use-go-certmanager
Open

Use go-certmanager library for unified cert management#91
AntiD2ta wants to merge 7 commits intomasterfrom
use-go-certmanager

Conversation

@AntiD2ta
Copy link
Copy Markdown
Contributor

@AntiD2ta AntiD2ta commented Jan 13, 2026

Integrate go-certmanager library and unify certificate management by using server cert manager for both grpcapi (server) and sender (client) services and supporting on-demand certificate reload on SIGHUP.

This PR also adds RFC 6125-compliant SAN support for client certificate identity extraction on Dork.

@AntiD2ta AntiD2ta self-assigned this Jan 13, 2026
@AntiD2ta AntiD2ta marked this pull request as draft January 13, 2026 17:39
@AntiD2ta AntiD2ta requested a review from Bez625 February 11, 2026 08:55
AntiD2ta and others added 3 commits April 14, 2026 16:33
Replace pre-release pseudo-version with go-certmanager v0.1.1,
adapting to all API changes and introducing a two-manager
architecture: server.Service for the gRPC API listener and
client.Service for outgoing DKG sender connections.

Key changes:
- Remove fetcher/majordomo intermediary; use WithMajordomo() directly
- Rename WithReloadTimeout -> WithLoadTimeout, TryReloadCertificate -> ReloadCertificate
- Use credentials.NewGRPCClientCredentials() for sender TLS
- Use credentials.NewServerTLSConfig() for API server TLS
- Simplify SAN handling to DNS-only (IdentitySource is now uint)
- Fix bug: sender parameters checked wrong nil variable
- Fix bug: checker logged IdentitySource via string() instead of .String()
Reorder struct fields in sender/grpc parameters to satisfy
attgo_struct_field_order. Reduce cyclomatic complexity in hasField
(reflect-based numeric comparison) and SetupCerts (loop over slice).
@AntiD2ta AntiD2ta marked this pull request as ready for review April 16, 2026 08:16
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