Skip to content

Add external account binding for ACME requests - #161

Merged
jjrdk merged 2 commits into
masterfrom
features/acme-eab
Nov 26, 2026
Merged

jjrdk merged 2 commits into
masterfrom
features/acme-eab

Conversation

@jjrdk

@jjrdk jjrdk commented Nov 26, 2026

Copy link
Copy Markdown
Owner

No description provided.

@jjrdk
jjrdk requested a balanced review from Copilot November 26, 2026 19:56
@jjrdk jjrdk self-assigned this Nov 26, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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
jjrdk force-pushed the features/acme-eab branch from eadb53e to 54219f2 Compare November 26, 2026 20:56
@jjrdk
jjrdk merged commit 13766aa into master Nov 26, 2026
6 checks passed
@jjrdk
jjrdk deleted the features/acme-eab branch November 26, 2026 21:19
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.

2 participants