Improve ACME support - #216
Merged
Merged
Conversation
|
✅ No security or compliance issues detected. Reviewed everything up to 023ea59. Security Overview
Detected Code Changes
|
There was a problem hiding this comment.
Pull request overview
This PR updates the gateway’s ACME/TLS integration to align with ic-bn-lib changes, adds CLI/env configuration for ACME account credentials and Cloudflare tokens, and introduces preliminary support for a DNS-PERSIST ACME challenge mode. It also includes dependency bumps and minor formatting/documentation cleanups across the codebase.
Changes:
- Adapt ACME setup to updated
ic-bn-libAPIs (resolver type changes, updated ACME DNS initialization, updated Cloudflare DNS client wiring). - Add CLI/env support for passing ACME account credentials (JSON) and Cloudflare token directly.
- Introduce preliminary
DnsPersistchallenge handling and update dependencies/formatting.
Reviewed changes
Copilot reviewed 11 out of 12 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tools/create_acme_account.rs | Updates ACME client builder usage for account creation helper tool. |
| src/tls/mod.rs | Refactors ACME setup to new resolver/client APIs; adds DNS-PERSIST path and account-creds support. |
| src/routing/middleware/geoip.rs | Updates maxminddb API usage and formats lookup code. |
| src/routing/ic/handler.rs | Import ordering/formatting only. |
| src/policy/mod.rs | Minor formatting change. |
| src/metrics/runner.rs | Converts a comment to a doc comment on a constant. |
| src/metrics/mod.rs | Import grouping/formatting only. |
| src/log/mod.rs | Import grouping/formatting only. |
| src/core.rs | Updates TLS setup call site for new resolver type. |
| src/cli.rs | Adds ACME account creds option; changes Cloudflare token to string; updates ACME option docs/defaults. |
| Cargo.toml | Bumps ic-bn-lib, maxminddb, mockall, etc. |
| Cargo.lock | Lockfile updates reflecting dependency bumps. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
frankdavid
approved these changes
Jul 21, 2026
blind-oracle
enabled auto-merge
July 21, 2026 13:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ic-bn-lib