Repository navigation
Add external account binding for ACME requests - #161
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Concurrent EAB requests can receive HTTP 500 from an uncaught sharing IOException because LoadKey is not coordinated with TryConsumeKey’s exclusive file access.
1 open issue
What changed in this PR
This PR strengthens ACME External Account Binding (EAB) across the server, storage providers, and CertesSlim client, with updated configuration and interoperability coverage.
Changes:
- Tightens nested binding validation and adds atomic single-use key consumption.
- Adds EAB configuration options while retaining the legacy key hierarchy.
- Introduces typed client serialization, account-to-order coverage, and updated setup documentation.
| File | Description |
|---|---|
tests/opencertserver.iq.tests/StepDefinitions/AcmeIssuanceSteps.cs |
Adjusts Certbot HMAC-key argument syntax. |
tests/opencertserver.certserver.tests/StepDefinitions/AcmeConformance.cs |
Adds CertesSlim EAB registration and order steps. |
tests/opencertserver.certserver.tests/Features/AcmeConformance.feature |
Covers EAB-bound orders across three storage backends. |
src/opencertserver.data/Stores/RelationalExternalAccountKeyStore.cs |
Adds atomic database key consumption with version updates. |
src/opencertserver.certserver/Stores/StaticExternalAccountKeyStore.cs |
Synchronizes key access and consumption. |
src/opencertserver.certserver/Program.cs |
Loads both configuration hierarchies and rejects duplicate key IDs. |
src/opencertserver.certserver/appsettings.Hardened.json |
Moves example keys into the new EAB hierarchy. |
src/opencertserver.acme.server/Stores/StoreBase.cs |
Resets stream position before rewriting JSON. |
src/opencertserver.acme.server/Stores/InMemoryExternalAccountKeyStore.cs |
Synchronizes in-memory key access and consumption. |
src/opencertserver.acme.server/Stores/ExternalAccountKeyStore.cs |
Adds gated, exclusive file-based key consumption. |
src/opencertserver.acme.server/Services/DefaultExternalAccountBindingService.cs |
Tightens validation and consumes validated keys. |
src/opencertserver.acme.server/Extensions/ServiceCollectionExtensions.cs |
Copies EAB settings into server options. |
src/opencertserver.acme.server/Endpoints/AccountEndpoints.cs |
Enforces EAB enablement and delegates consumption. |
src/opencertserver.acme.server/Configuration/EabOptions.cs |
Defines EAB enablement and provisioned-key options. |
src/opencertserver.acme.server/Configuration/ACMEServerOptions.cs |
Exposes EAB configuration. |
src/opencertserver.acme.abstractions/Storage/IStoreExternalAccountKeys.cs |
Defines the atomic key-consumption contract. |
src/CertesSlim/Json/CertesSerializerContext.cs |
Registers the typed binding for serialization. |
src/CertesSlim/Acme/Resource/ExternalAccountBinding.cs |
Models the flattened binding JWS. |
src/CertesSlim/Acme/Resource/Account.cs |
Uses the typed binding model. |
src/CertesSlim/Acme/AccountContext.cs |
Validates EAB arguments and constructs typed bindings. |
docs/standards.md |
Updates EAB validation and configuration descriptions. |
docs/getting-started.md |
Documents key provisioning and secret storage. |
docs/documentation.md |
Explains configuration, consumption, and persistence limits. |
Review effort: Balanced
…a per-key lock and use bounded, cancellation-aware retries for file-sharing conflicts.
jjrdk
force-pushed
the
features/acme-eab
branch
from
November 26, 2026 20:56
eadb53e to
54219f2
Compare
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.

No description provided.