Introduce backend-agnostic provider configuration and provider manager factory#92
Open
ChansAlive wants to merge 13 commits into
Open
Introduce backend-agnostic provider configuration and provider manager factory#92ChansAlive wants to merge 13 commits into
ChansAlive wants to merge 13 commits into
Conversation
ChansAlive
requested a deployment
to
workflow-approval
July 17, 2026 14:37 — with
GitHub Actions
Waiting
ChansAlive
requested a deployment
to
workflow-approval
July 17, 2026 14:37 — with
GitHub Actions
Waiting
License Check Results🚀 The license check job ran with the Bazel command: bazel run --lockfile_mode=error //:license-checkStatus: Click to expand output |
- Only used when no config is provided
- Fix config attribute - Provider_Name used instead of provider_id
- Pkcs11 adapter is agnostic to backend library
ChansAlive
force-pushed
the
backend_integration
branch
from
July 17, 2026 14:39
7ed0b22 to
3a2f4ac
Compare
ChansAlive
requested a deployment
to
workflow-approval
July 17, 2026 14:39 — with
GitHub Actions
Waiting
ChansAlive
requested a deployment
to
workflow-approval
July 17, 2026 14:39 — with
GitHub Actions
Waiting
ChansAlive
requested a deployment
to
workflow-approval
July 17, 2026 14:46 — with
GitHub Actions
Waiting
ChansAlive
requested a deployment
to
workflow-approval
July 17, 2026 14:46 — with
GitHub Actions
Waiting
ChansAlive
force-pushed
the
backend_integration
branch
from
July 17, 2026 14:58
f04bdec to
b45fefe
Compare
ChansAlive
requested a deployment
to
workflow-approval
July 17, 2026 14:58 — with
GitHub Actions
Waiting
ChansAlive
requested a deployment
to
workflow-approval
July 17, 2026 14:58 — with
GitHub Actions
Waiting
|
The created documentation from the pull request is available at: docu-html |
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.
This PR refactors the crypto daemon's provider layer to be backend-agnostic and configurable at build and runtime.
Key changes:
backend_exports.bzl, backend_config.bzl).ProviderManagerFactoryto register and create provider managers based on compile-time enabled backend families.ScoreProviderFactorybackend-agnostic: it now discovers enabled score backends (e.g. OpenSSL, future Primula) throughactive_backends_list.hppand selects the default backend via a configurable preference order.Pkcs11ProviderFactorysupport different PKCS#11 backends through a Bazellabel_flag, replacing hardcoded SoftHSM dependencies.common::kProviderNameOpenSSL) in favor of names derived from backend adapters and config.score_backend_adapter, openssl_backend_adapter, pkcs11_token_config_parser) to decouple provider implementations from backend-specific details.Build impact:
Backends are now selected via [backend] flags. Existing OpenSSL and SoftHSM defaults are preserved.