This package implements the OPC UA Global Discovery Server (GDS) as defined in OPC 10000-12 (Part 12). It provides application registration, certificate lifecycle management (pull and push models), KeyCredentialService, AuthorizationService, and role-based access control.
| Topic | Document |
|---|---|
| GDS core (this file) | Directory, certificates, push management, roles |
| KeyCredentialService | Credential issuance for non-UA services |
| AuthorizationService | OAuth2-style access token issuance |
- Quick Links
- Packages
- 1. Client API
- 2. Server-Side: Building a GDS
- 3. Implementing Providers
- 4. Roles and Authorization
- 5. End-to-End Example
- Conformance Matrix
- GDS Directory (§6.5)
- Certificate Management — Pull Model (§7.9)
- Roles and Privileges (§7.2)
- Push Management — ServerConfiguration (§7.10)
- TrustList (§7.8)
- Audit Events
- KeyCredentialService (§8)
- AuthorizationService (§9)
- Remaining optional / unsupported Part 12 items
- LDS / LDS-ME (§4–5)
- Extension Points (Phase 2 Abstractions)
| NuGet Package | Contents |
|---|---|
Opc.Ua.Gds |
Part 12 and Part 21 model types, node states, identifiers, encodeable types |
Opc.Ua.Gds.Server |
Server-side node managers, providers, authorization, onboarding ticket-store binding |
Opc.Ua.Gds.Client |
Client proxies for GDS, push, KeyCredential, AuthorizationService, onboarding |
The primary client for interacting with a GDS. Manages its own session and exposes the full GDS directory and certificate management API.
Both GDS and push clients validate the server certificate against the originally requested endpoint hostname before activating credentials. Discovery cannot replace that destination's identity with an advertised host or transport.
using Opc.Ua.Gds.Client;
// Create and connect
var gdsClient = new GlobalDiscoveryServerClient(appConfig);
gdsClient.AdminCredentials = new UserIdentity("admin", "password");
await gdsClient.ConnectAsync("opc.tcp://gds-host:4840");
// Register an application
var appRecord = new ApplicationRecordDataType
{
ApplicationUri = "urn:my-app",
ApplicationType = ApplicationType.Server,
ApplicationNames = new[] { new LocalizedText("My App") }.ToArrayOf(),
DiscoveryUrls = new[] { "opc.tcp://my-app:4850" }.ToArrayOf()
};
NodeId appId = await gdsClient.RegisterApplicationAsync(appRecord);
// Request a new certificate (pull model)
NodeId requestId = await gdsClient.StartNewKeyPairRequestAsync(
appId, default, ObjectTypeIds.RsaSha256ApplicationCertificateType,
"CN=My App", domainNames, "PFX", null);
// Poll for completion
ByteString cert, privateKey;
ArrayOf<ByteString> issuerCerts;
do
{
await Task.Delay(2000);
(cert, privateKey, issuerCerts) =
await gdsClient.FinishRequestAsync(requestId, default);
} while (cert.IsEmpty);
// Clean up
await gdsClient.DisconnectAsync();Client for OPC 10000-12 §7.10 push certificate management on a target server:
Private-key uploads require a confidential, generation-bound dispatch context. A Sign-only channel is rejected before the key is sent, and reconnection cannot redirect the captured operation to another channel. Certificate-only updates retain their non-secret path.
var pushClient = new ServerPushConfigurationClient(appConfig);
await pushClient.ConnectAsync(serverEndpoint);
// Push a new certificate
bool restartNeeded = await pushClient.UpdateCertificateAsync(
pushClient.DefaultApplicationGroup,
ObjectTypeIds.RsaSha256ApplicationCertificateType,
newCertBlob, "PFX", privateKeyBlob, issuerCerts);
if (restartNeeded)
{
await pushClient.ApplyChangesAsync();
}
// Create a self-signed certificate on the server
await pushClient.CreateSelfSignedCertificateAsync(
pushClient.DefaultApplicationGroup,
ObjectTypeIds.RsaSha256ApplicationCertificateType,
"CN=NewSubject", domainNames);For the connected server's own ConfigurationFile, use an explicitly
configured endpoint and provide the complete serialized file content, target
paths and timing values:
await using var pushClient = new ServerPushConfigurationClient(appConfig);
await pushClient.ConnectAsync(configuredEndpoint);
ConfigurationFileUpdateResult result = await pushClient.UpdateConfigurationFileAsync(
configurationFile,
targets,
revertAfterTime: 30_000,
restartDelayTime: 0);
if (result.Outcome is ConfigurationFileUpdateOutcome.Applied or ConfigurationFileUpdateOutcome.Confirmed)
{
Console.WriteLine($"Configuration updated to version {result.NewVersion}.");
}
else
{
Console.Error.WriteLine($"Configuration update outcome: {result.Outcome} ({result.StatusCode}).");
}The method reads CurrentVersion, uploads the supplied content and targets,
then reconnects its owned session when the server returns a non-empty
UpdateId or restartDelayTime is nonzero. It waits that interval before
reconnecting when the delay is nonzero and confirms only the returned
identifier. A borrowed client rejects the operation before dispatch because it
cannot disconnect and reconnect the caller's session. It never retries
CloseAndUpdate: if the request or
confirmation response is lost, inspect Outcome and StatusCode before
deciding what to do next. OutcomeUnknown means the client did not receive
enough information to determine whether the update or confirmation completed;
ConfirmationPending means the update was applied but the confirmation was not
accepted.
Part 12 §7.8.5.1 requires a Client to read the existing configuration and set
the file position to the beginning before writing.
ServerPushConfigurationClient opens for Read + Write, reads existing content
to the end, and calls SetPosition(0) before uploading the replacement. Both
Read-only and Read + Write opens load the provider's current configuration.
Part 12 §7.8.5.1
permits only Open modes 0x01 and 0x03, so the Part 20 EraseExisting bit
cannot truncate a ConfigurationFile. Part 20 §4.2.5
defines positional writes but not how a shorter replacement truncates a file.
Part 12 §7.8.5.2
describes how a server handles configuration contents that the update does not
target. It does not establish that the server may ignore trailing bytes in the
targeted file.
The client rejects a replacement shorter than the existing content with
Bad_NotSupported before any write. Equal-length and longer replacements use
the standard transfer sequence; the client does not pad configuration data or
assume that another server discards trailing bytes.
OPC 10000-20 v1.05.06 §4.2.2
permits multiple read handles, requires a write-open to return
Bad_NotWritable while any handle is open, and requires a read-open to return
Bad_NotReadable while a writer is open. Part 12's
Read/Read + Write mode restriction does not state an exception to those
FileType rules. ApplicationConfigurationFile retains independent read handles,
counts them in OpenCount, and rejects incompatible opens with those statuses.
Session close and inactivity expire the affected handles without replacing
another session's open file.
For a managed server, the caller creates a separate owned client and connects
it to that application's host-selected endpoint, not the registrar endpoint.
The client resolves ConfigurationFile below the connected server's
ServerConfiguration; an application record on the registrar does not forward
this operation. The caller supplies the serialized content and update targets
and retains the returned result. The registrar's certificate-proof verifier
closes its session before returning, so it does not lend a session to the update
client or manage this update's confirmation lifecycle.
The target server must configure an IApplicationConfigurationFileProvider.
If that provider requires confirmation, it must also implement
IRecoverableApplicationConfigurationFileProvider; otherwise the target rejects
CloseAndUpdate with Bad_NotSupported before validation or provider mutation.
The provider retains the prior configuration and pending update durably, and
the target server restores its apply or revert schedule before serving requests
after restart. Reconnection failure leaves the returned identifier pending;
the client does not repeat the update or cancel the server's revert deadline.
See provider migration.
For an application exposed under a management server's ManagedApplications
folder or as a provisionable-device component, use its namespace-URI node address:
ExpandedNodeId applicationNode = ExpandedNodeId.ToExpandedNodeId(
applicationConfigurationNodeId, pushClient.Session!.NamespaceUris);
ConfigurationFileUpdateResult result = await pushClient.UpdateApplicationConfigurationFileAsync(
applicationNode, configurationFile, targets,
revertAfterTime: 30_000, restartDelayTime: 0);Connect this owned client to the management server, not to the managed
application's endpoint. The method resolves the selected application's
ConfigurationFile on both session generations. It resolves the namespace URI
again after reconnecting and never substitutes the host's ServerConfiguration
when the application namespace or file is unavailable. The same result and
uncertain-outcome rules apply as for the host's own file.
See the OPC UA device onboarding guide for ticket administration, registrar hosting, and pull and push provisioning.
Use GlobalDiscoverySampleServer with dependency injection of
your storage backends:
// 1. Create storage backends
IApplicationsDatabase database = JsonApplicationsDatabase.Load(
"gds-applications.json", telemetry);
ICertificateGroup certGroup = new CertificateGroup(
gdsConfig.AuthoritiesStorePath, gdsConfig.CertificateGroups);
IUserDatabase userDb = JsonUserDatabase.Load(
"gds-users.json", telemetry);
// 2. Create the GDS server
// (database implements both IApplicationsDatabase and ICertificateRequest)
var gdsServer = new GlobalDiscoverySampleServer(
database, database, certGroup, userDb, telemetry,
autoApprove: true);
// 3. Start via ApplicationInstance
var app = new ApplicationInstance(telemetry)
{
ApplicationName = "My GDS",
ApplicationType = ApplicationType.Server,
ConfigSectionName = "Opc.Ua.GlobalDiscoveryServer"
};
var config = await app.LoadAsync("MyGds.Config.xml");
await app.CheckApplicationInstanceCertificatesAsync(false);
await app.StartAsync(gdsServer);For embedding GDS into an existing server:
// In your server's CreateMasterNodeManager:
var gdsConfig = configuration.ParseExtension<GlobalDiscoveryServerConfiguration>();
var factory = new GdsNodeManagerFactory(gdsConfig);
additionalNodeManagers.Add(factory.Create(server, configuration));Every pluggable interface and its purpose:
| Interface | Purpose | Default |
|---|---|---|
IApplicationsDatabase |
Application registration store | LinqApplicationsDatabase / JsonApplicationsDatabase |
ICertificateRequest |
Certificate request lifecycle. GDS certificate handlers require the client-certificate binding contract. | LinqApplicationsDatabase / JsonApplicationsDatabase |
ICertificateRequestIssuanceStore |
Material retained before onboarding request acceptance | Explicit provider required for onboarding |
ICertificateGroup |
CA operations (sign, revoke) | CertificateGroup |
IGdsUserDatabase |
User store + ApplicationAdmin bindings | Implement over LinqUserDatabase |
IKeyCredentialRequestStore |
KeyCredential lifecycle | InMemoryKeyCredentialRequestStore |
ISecretStore |
Secret storage for credentials | InMemorySecretStore |
IAccessTokenProvider |
Token issuance (AuthorizationService) | null (Bad_NotSupported) |
IConfigurationDataStore |
ManagedApplications config persistence | InMemoryConfigurationDataStore |
IManagedApplicationsNodeManager |
ManagedApplications folder | StubManagedApplicationsNodeManager |
Stores registered application records. Must also implement
ICertificateRequest for certificate request lifecycle (or provide
a separate implementation):
public class SqlApplicationsDatabase
: ApplicationsDatabaseBase, ICertificateRequest
{
// ApplicationsDatabaseBase provides Match() and ValidateApplication()
// Override the abstract CRUD methods:
public override NodeId RegisterApplication(
ApplicationRecordDataType application)
{
ValidateApplication(application); // call base validation
return _db.InsertApplication(application);
}
public override void UpdateApplication(
ApplicationRecordDataType application)
{
ValidateApplication(application);
_db.UpdateApplication(application);
}
// ... implement remaining abstract methods
}Implement to use an external CA (EST, ACME, EJBCA, etc.):
public class EstCertificateGroup : ICertificateGroup
{
public async Task<(Certificate, byte[], CertificateCollection)>
NewKeyPairRequestAsync(
ApplicationRecordDataType application,
string subjectName,
string[] domainNames,
string privateKeyFormat,
string privateKeyPassword)
{
// Call your EST server's /simpleenroll endpoint
// Return (signedCert, privateKey, issuerChain)
}
// ... implement remaining interface methods
}Extend IUserDatabase to support the ApplicationAdmin role
(OPC 10000-12 §7.2). The GDS sample server automatically detects
IGdsUserDatabase during username authentication:
public class MyGdsUserDatabase : LinqUserDatabase, IGdsUserDatabase
{
private readonly Dictionary<string, List<NodeId>> _appAdminMap = new();
public IReadOnlyList<NodeId>? GetAdministeredApplicationIds(
string userName)
{
return _appAdminMap.TryGetValue(userName, out var ids)
? ids : null;
}
// Admin API to grant ApplicationAdmin for specific apps:
public void GrantApplicationAdmin(
string userName, IEnumerable<NodeId> applicationIds)
{
_appAdminMap[userName] = applicationIds.ToList();
}
}The metadata-backed DefaultManagedApplicationsNodeManager uses this store to
enumerate ApplicationConfigurationState nodes under ManagedApplications
(§7.10.16). Its address-space binding does not call the store's write or confirm
methods and does not expose a ConfigurationFile transaction:
public class FileConfigurationDataStore : IConfigurationDataStore
{
public async ValueTask<IReadOnlyList<ManagedApplicationInfo>>
GetManagedApplicationsAsync(CancellationToken ct)
{
// Read from config file / database
}
public async ValueTask<uint> WriteConfigurationAsync(
string applicationUri, byte[] data,
uint currentVersion, CancellationToken ct)
{
// Persist with optimistic concurrency check
}
public async ValueTask ConfirmUpdateAsync(
string applicationUri, uint configVersion,
CancellationToken ct)
{
// Mark the configuration as applied
}
}Use IManagedApplicationPushProvider when each managed application has its own
configuration, certificate manager and runtime. Its registrations pair an
IApplicationConfigurationPushTarget with application-specific authorization.
The target owns its configuration and certificate manager; the node manager owns
the push engine and drains its calls and committed effects before disposal.
Targets must keep their configuration and store paths stable for that lifetime.
The same registration is available on regular servers and GDS hosts. Given an application provider created by the composition root:
services.AddOpcUa()
.AddServer(options => options.ApplicationName = "DeviceManagement")
.AddManagedApplicationPush(_ => applicationProvider);Each target has separate certificate groups, pending keys and trust handlers in the node manager's namespace. The binding rejects shared configuration objects, certificate managers, application URIs, normalized store locations and pending-key store instances. Store comparison does not resolve filesystem links or detect arbitrary custom-store aliases; providers must supply independent backing stores. Authorization requires the standard secure-channel and SecurityAdmin checks as well as the registered policy.
ApplyCertificateChangesAsync activates certificates on the target and retires
its affected channels after the method response grace period.
ApplyTrustListChangesAsync revalidates the target's channels and certificate
user identities. Providers implement these effects against their own runtime;
the binding does not close the management server's channels on their behalf.
An application registration can expose its own ConfigurationFile through the
same remote node:
var registration = new ManagedApplicationPushRegistration(
applicationTarget, applicationAuthorization,
configurationFileProvider: applicationConfigurationFileProvider);The provider belongs to that application and remains externally owned.
Bindings reject reuse of the host's or a sibling application's provider instance.
Distinct provider objects must also use independent backing state; the binding
cannot inspect arbitrary external storage aliases. Without a provider, the
optional file node is absent. Metadata-only IConfigurationDataStore entries do
not acquire live file handlers.
When confirmation is required, the provider implements
IRecoverableApplicationConfigurationFileProvider. Startup recovers each
application's pending update before publishing that application: a due update is
applied, an expired update is reverted, and an already-applied update retains its
original confirmation identifier. File calls use the application's standard
channel and SecurityAdmin checks plus its registered policy. On a provisionable
device they also check the installed registrar and software approval. Deferred
apply and revert effects re-enter the deployment gate after their timer expires;
they do not retain admission during the delay or run after deployment revocation.
Shutdown cancels the timers and drains active file effects before releasing the
binding.
The connected application fixture
EncryptedChannelRoutesIndependentApplicationsAndEnforcesSecurityAdmin covers
file upload and exact-identifier confirmation on the selected runtime, and
rejects an observer's file read before provider access.
ProvisionableDeviceFactoryRecoversApplicationConfigurationBeforePublishing
covers applied, due and expired recovery through the actual device factory.
ManagedApplicationUpdateRetainsSelectedOwnerAfterReconnect covers namespace
index changes between client session generations. These are test-source
references, not an assertion that the current head has passed execution.
For a non-singleton device, register a separate
IProvisionableDeviceApplicationsProvider with the server builder:
services.AddSingleton<DeviceApplicationsProvider>();
IOpcUaServerBuilder serverBuilder = services.AddOpcUa().AddServer(...);
serverBuilder
.AddProvisionableDeviceRuntime(isSingleton: false, ticketIds: ticketIds)
.AddProvisionableDeviceApplications(
provider => provider.GetRequiredService<DeviceApplicationsProvider>());The provider returns configured application targets and their access policies.
Before publishing the address space, the device node manager creates one
ApplicationConfigurationType component for each target. It rejects a
singleton device with application components and rejects duplicate application
URIs. Each push binding requires installed DCA trust, checks the optional
software-update policy, then evaluates the application's access policy. Its
deployment provider covers each method call, certificate registry reload and
deferred runtime effect, so reset cannot overlap those operations or replay an
old deployment's effects after reinstallation. The application provider remains
separate from the GDS ManagedApplications provider; it owns target runtimes
and certificate managers, while the device node manager owns the push bindings.
Direct node-manager hosts can use
BindProvisionableDeviceApplicationsAsync before publishing an existing
ProvisionableDeviceState. This binding does not create Part 22 Resources or
reset an application's stores; the platform reset provider remains responsible
for restoring all device security. Connected rotation, trust-change and reset
evidence across multiple applications remains required.
| Role | Purpose |
|---|---|
DiscoveryAdmin |
Register/update/unregister any application |
CertificateAuthorityAdmin |
Manage certificate requests and trust lists |
RegistrationAuthorityAdmin |
Approve/reject certificate requests |
ApplicationSelfAdmin |
Manage own application's registration |
ApplicationAdmin |
Manage a configured set of applications |
GdsApplicationSelfAdminProvider grants GdsRole.ApplicationSelfAdmin
when the secure-channel client certificate matches a certificate stored
for the registered ApplicationRecordDataType found by the channel
ApplicationUri. The provider is an IIdentityAugmenter, so it layers
SelfAdmin on top of any accepted identity instead of using a custom
ImpersonateUser callback.
For dependency-injection-hosted GDS servers the provider is registered with the symmetric builder extension:
services.AddOpcUa()
.AddGdsServer(opt => opt.ApplicationName = "MyGds")
.AddDefaultIdentityAuthenticators(opt => opt.EnableJwt = false)
.AddGdsApplicationSelfAdminProvider();AddDefaultIdentityAuthenticators(...) on IGdsServerBuilder also
adds this provider so standard GDS hosts get OPC 10000-12 §7.2
SelfAdmin behavior automatically.
The ApplicationAdmin role allows a user to administer a specific
set of applications (not all applications like DiscoveryAdmin).
How it works:
- Assign the
GdsRole.ApplicationAdminrole to the user viaIUserDatabase.CreateUser() - Implement
IGdsUserDatabase.GetAdministeredApplicationIds()to return theApplicationIds the user may administer - During username authentication,
GlobalDiscoverySampleServerconstructs aGdsRoleBasedIdentitywithAdministeredApplicationIdspopulated AuthorizationHelper.CheckApplicationAdminPrivilege()verifies the target application is in the user's administered set
// Setup: create a user with ApplicationAdmin role
userDb.CreateUser("app-admin", passwordBytes,
[GdsRole.ApplicationAdmin]);
// If using IGdsUserDatabase:
((MyGdsUserDatabase)userDb).GrantApplicationAdmin(
"app-admin",
[registeredAppId1, registeredAppId2]);AuthorizationHelper.HasAuthenticatedSecureChannel() enforces that
all GDS methods are called over a signed (or encrypted) secure
channel. If the system context cannot be validated, the method throws
BadSecurityModeInsufficient.
Complete example: register an application, get a certificate, push it to the server.
// ── 1. Start the GDS Server ─────────────────────────
var database = JsonApplicationsDatabase.Load("apps.json", telemetry);
var certGroup = new CertificateGroup(authStorePath, certGroupConfigs);
var userDb = JsonUserDatabase.Load("users.json", telemetry);
var gds = new GlobalDiscoverySampleServer(
database, database, certGroup, userDb, telemetry);
var app = new ApplicationInstance(telemetry) { ... };
await app.StartAsync(gds);
// ── 2. Client: Register and Get Certificate ─────────
var gdsClient = new GlobalDiscoveryServerClient(clientConfig);
gdsClient.AdminCredentials = new UserIdentity("admin", "password");
await gdsClient.ConnectAsync("opc.tcp://localhost:58810");
// Register
var record = new ApplicationRecordDataType
{
ApplicationUri = "urn:my-server",
ApplicationType = ApplicationType.Server,
ApplicationNames = new[] { new LocalizedText("My Server") }.ToArrayOf(),
DiscoveryUrls = new[] { "opc.tcp://my-server:4840" }.ToArrayOf()
};
NodeId appId = await gdsClient.RegisterApplicationAsync(record);
// Request certificate
NodeId reqId = await gdsClient.StartNewKeyPairRequestAsync(
appId, default,
ObjectTypeIds.RsaSha256ApplicationCertificateType,
"CN=My Server,O=My Org",
new[] { "my-server", "localhost" }.ToArrayOf(),
"PFX", null);
// Wait for completion
ByteString cert, key;
ArrayOf<ByteString> issuers;
do
{
await Task.Delay(2000);
(cert, key, issuers) =
await gdsClient.FinishRequestAsync(reqId, default);
} while (cert.IsEmpty);
// ── 3. Push Certificate to Target Server ────────────
var pushClient = new ServerPushConfigurationClient(clientConfig);
await pushClient.ConnectAsync(serverEndpoint);
bool needsRestart = await pushClient.UpdateCertificateAsync(
pushClient.DefaultApplicationGroup,
ObjectTypeIds.RsaSha256ApplicationCertificateType,
cert, "PFX", key, issuers);
if (needsRestart)
{
await pushClient.ApplyChangesAsync();
}
// ── 4. Clean Up ─────────────────────────────────────
await pushClient.DisconnectAsync();
await gdsClient.DisconnectAsync();Status key: ✅ Implemented ·
This matrix links every implemented OPC 10000-12 (Part 12) requirement in the ServerConfiguration / Push Certificate Management, TrustList, certificate-alarm, KeyCredentialService and AuthorizationService areas to the source that implements it and to the automated tests that exercise it. Clause numbers are OPC 10000-12 v1.05.07. When Part 12 behaviour changes, keep the matrix truthful: every new Method, alarm or optional child gets a row with its source and at least one test, and any behaviour that regresses to partial/unsupported is downgraded here. The push/transaction behaviour summarised below is documented in depth in CertificateManager.md → PushManagement Transactions.
The server-side Part 12 features map to these Facets in the OPC UA profile registry (profiles.opcfoundation.org, profile group UACore 1.05). Conformance units are marked (M)andatory or (O)ptional as declared by the Facet.
| Facet (UACore 1.05) | Key conformance units | Repo status |
|---|---|---|
Global Certificate Management Server Facet (Server/GlobalCertificateManagement) |
Pull or Push Model (M); Push Model for Global Certificate and TrustList Management (O); Pull Model for Global Certificate and TrustList Management (O) | ✅ Push model (ServerConfiguration); ✅ Pull model (GDS CertificateDirectory) |
A & C CertificateExpiration 2022 Server Facet (Server/ACCertificateExpiration2022) |
A & C CertificateExpiration, A & C Alarm, A & C Acknowledge (M); A & C Comment / Confirm / Shelving (O) | ✅ mandatory CUs; optional Comment/Confirm/Shelving inherited from the base condition model |
KeyCredential Service Server Facet (Server/KeyCredentialManagement) |
Push Model for KeyCredential Service, KeyCredential Authentication Mechanism Support (M); ProfileURI – MQTT UserName / AMQP SASL Plain / UA transport UserName (O) | ✅ push model + client proxy; ProfileURIs are provider-defined |
Global Service Authorization Request Server Facet (Server/GlobalServiceAuthorization) |
GDS Authorization Service Server (M) | ✅ token issuance (AuthorizationServiceManager) |
Authorization Service Server Facet (Server/AuthorizationServiceConfiguration) |
Authorization Service Configuration Server (M) | ServerConfiguration.AuthorizationServices configuration folder is not exposed |
Global Discovery and Certificate Mgmt 2022 Server (Server/GlobalDiscoveryAndCertificateManagement2022) |
GDS Application Directory, GDS Certificate Manager Pull Model, GDS Query Applications, GDS LDS-ME Connectivity (M) | ✅ full GDS server |
The automated conformance checks that run in CI are the NUnit suites: the unit suites in Opc.Ua.Server.Tests (address-space exposure, transaction coordinator, TrustList staging, certificate alarms, optional surface) and the end-to-end GDS integration suites in Opc.Ua.Gds.Tests — notably PushTest.cs, which drives a live push server through the ServerConfiguration Methods, and TrustListValidationTest.cs. The applicable Facets / conformance units above were identified with the OPC UA profile-graph tooling against profiles.opcfoundation.org.
There is no fully-automated CTT harness in this repository, and the formal OPC UA Compliance Test Tool (UACTT / CTT) — a licensed OPC Foundation corporate-member GUI application — was not run to produce this matrix; no CTT results are claimed here. Run it against the reference server (samples/Reference/ConsoleReferenceServer; see samples/README.md) for formal certification. Known UACTT script defects encountered in prior manual runs are catalogued in plans/ctt-issues.md.
| Section | Feature | Status | Source | Tests |
|---|---|---|---|---|
| §6.5.3 | DirectoryType | ✅ | ApplicationsNodeManager.cs |
ClientTest.cs, GdsApplicationDirectoryTests.cs |
| §6.5.4 | FindApplications | ✅ | OnFindApplications (any Client, §6.5.3) |
GdsApplicationDirectoryTests.cs, ClientTest.FindApplicationsAsSelfAdminAsync |
| §6.5.5 | ApplicationRecordDataType / rcp+ rules | ✅ | ApplicationsDatabaseBase.ValidateApplication |
ApplicationsDatabaseBaseTests.cs, LinqApplicationsDatabaseTests.cs |
| §6.5.6 | RegisterApplication | ✅ | OnRegisterApplication + DiscoveryAdminOrAppAdmin |
GdsApplicationDirectoryTests.cs, RegisteredApplicationTests.cs |
| §6.5.7 | UpdateApplication | ✅ | OnUpdateApplication + DiscoveryAdminOrSelfAdminOrAppAdmin |
GdsApplicationDirectoryTests.cs |
| §6.5.8 | UnregisterApplication | ✅ | OnUnregisterApplicationAsync + cert revocation |
GdsApplicationDirectoryTests.cs, ClientTest.cs |
| §6.5.9 | GetApplication | ✅ | OnGetApplication |
GdsApplicationDirectoryTests.cs |
| §6.5.10 | QueryApplications | ✅ | OnQueryApplications |
GdsQueryApplicationsTests.cs |
| §6.5.11 | QueryServers | ✅ | OnQueryServers |
GdsQueryApplicationsTests.cs, ClientTest.cs |
| §6.5.12 | ApplicationRegistrationChangedAuditEvent | ✅ | AuditEvents.ReportApplicationRegistrationChangedAuditEvent |
AuditEventsTests.cs |
Pull Certificate Management moved from §7.6 (1.04) to §7.9 (v1.05.07); the CertificateDirectoryType Methods below use the current clause numbers.
| Section | Feature | Status | Source | Tests |
|---|---|---|---|---|
| §7.9.3 | StartSigningRequest | ✅ | OnStartSigningRequestAsync + CSR key / CertificateType check + audit |
GdsCertificateManagementTests.cs, CertificateGroupSigningRequestTests.cs, ClientTest.cs |
| §7.9.4 | StartNewKeyPairRequest | ✅ | OnStartNewKeyPairRequest + audit |
GdsCertificateManagementTests.cs, ClientTest.cs |
| §7.9.5 | FinishRequest | ✅ | OnFinishRequestAsync + client-certificate binding + issuer chain |
ApplicationsNodeManagerOnboardingTests.FinishRequest*, LinqApplicationsDatabaseTests.BoundCertificateRequest*, GdsCertificateManagementTests.cs, ClientTest.cs |
| §7.9.6 | RevokeCertificate | ✅ | OnRevokeCertificateAsync + audit |
GdsCertificateManagementTests.cs, CertificateGroupTests.cs |
| §7.9.7 | GetCertificateGroups | ✅ | OnGetCertificateGroups |
ClientTest.cs, CustomCertificateGroupIntegrationTest.cs |
| §7.9.8 | GetCertificates | ✅ | OnGetCertificates |
GdsCertificateManagementTests.cs |
| §7.9.9 | GetTrustList | ✅ | OnGetTrustList |
ClientTest.cs, CustomCertificateGroupIntegrationTest.cs |
| §7.9.10 | GetCertificateStatus | ✅ | OnGetCertificateStatus |
ClientTest.cs |
| §7.9.11 | CheckRevocationStatus | ✅ | OnCheckRevocationStatusAsync + ValidityTime |
GdsCertificateManagementTests.cs |
StartSigningRequest and StartNewKeyPairRequest bind the request to the
SHA-256 fingerprint of the SecureChannel client certificate. FinishRequest
returns Bad_UserAccessDenied if the certificate differs. The Client can
finish on a different Session or SecureChannel if it presents the same
certificate.
GDS certificate handlers require IClientCertificateBoundCertificateRequestStore.
A custom store persists the fingerprint with the request in the same
transaction and rejects a mismatch. JsonApplicationsDatabase retains the
binding across restart. AddCertificateRequest<T> registers the bound-store
service when T implements the interface. Direct construction uses the
supplied request store if it implements the interface. A store that implements
only ICertificateRequest remains source-compatible, but the GDS rejects
certificate requests rather than bypassing the binding.
CheckRevocationStatus uses locally configured issuer chains and verified local
CRLs. Caller-supplied AIA URLs do not trigger certificate or CRL downloads.
Incomplete or untrusted chains fail validation, and unavailable revocation
evidence is reported as unknown rather than accepted. Provision the complete
issuer chain and applicable CRLs in the configured stores, including on net48,
whose explicit-path validation does not call X509Chain.Build.
PullDcaWorkflow can resume an OPC 10000-12 new-key-pair request using a
protected checkpoint. Register the host's certificate installer and protected
store before selecting PullDcaCertificateRequestMode.NewKeyPairRequest.
For example, in the host's composition code:
// protectedStore is the host's IProtectedPullDcaRecoveryStore implementation.
builder.Services.AddSingleton<IProtectedPullDcaRecoveryStore>(protectedStore);
gdsClient.AddPullDcaKeyPairRecovery("device-commissioning")
.AddPullDcaWorkflow();Use one workflow and one stable slot per device. The backend must enforce exclusive writer ownership of the slot while the workflow is running, including across processes accessing the same storage. It must protect stored entries, temporary data, and backups against disclosure and tampering. Writes and removals must be atomic and durable, and reads must never report an uncertain or corrupt entry as absent. Neither the in-memory store nor the public signing checkpoint store meets this contract.
The SDK provides the request binding and recovery workflow; the implementer supplies the production backend. The live registrar integration test uses a test-only in-memory backend to verify that a new session and recovery adapter reuse a received key pair. It does not test process-restart durability or production storage protection. Do not use the test backend in production.
- Dispatching: Start may have happened, but there is no durable request ID.
The workflow stops. Reconcile the attempt with the registrar, stop the
workflow, and use
ResetReconciledDispatchAsyncwith the exact retained binding before retrying. Do not change the slot name to bypass the checkpoint. - Started: The workflow resumes the original Finish. If a previously accepted Finish response was lost, OPC 10000-12 §7.9.5 uses a fresh key-pair request, not signing recovery.
- Received: The workflow uses the saved certificate and PFX without calling Finish again. It reads the current trust list and passes it to the installer. The adapter removes the protected checkpoint only after installation is verified for the matching certificate.
The OnboardingClient sample uses the same registration with
--pull --keyPairRecoverySlot <slot>. Supply the store in the sample host's
service collection before building it. Without a configured backend, the sample
fails before connecting; it does not persist private keys to its signing journal.
| Feature | Status | Source | Tests |
|---|---|---|---|
| DiscoveryAdmin | ✅ | GdsRole.DiscoveryAdmin |
AuthorizationHelperTests.HasAuthorizationSucceedsWhenUserHasDiscoveryAdminRole |
| CertificateAuthorityAdmin | ✅ | GdsRole.CertificateAuthorityAdmin |
AuthorizationHelperTests.HasAuthorizationSucceedsWithCertificateAuthorityAdminRole |
| RegistrationAuthorityAdmin | ✅ | GdsRole.RegistrationAuthorityAdmin |
AuthorizationHelperTests.cs |
| ApplicationSelfAdmin | ✅ | GdsRole.ApplicationSelfAdmin |
AuthorizationHelperTests.HasAuthorizationSucceedsWithSelfAdminForOwnApplication, ...ThrowsWithSelfAdminForDifferentApplication |
| ApplicationAdmin | ✅ | GdsRole.ApplicationAdmin + AdministeredApplicationIds |
AuthorizationHelperTests.cs, GdsApplicationSelfAdminProviderTests.cs |
| BadSecurityModeInsufficient (channel) | ✅ | AuthorizationHelper.HasAuthenticatedSecureChannel |
AuthorizationHelperTests.cs (asserts BadSecurityModeInsufficient), RoleAuthorizationGateTests.cs |
ConfigurationNodeManager implements the full push transaction model: every certificate/TrustList Method stages work that only takes effect at ApplyChanges. Clause numbers are corrected to v1.05.07 (the 1.04 numbering was §7.7.x).
| Section | Feature | Status | Source | Tests |
|---|---|---|---|---|
| §7.10.5 | UpdateCertificate | ✅ | ConfigurationNodeManager.UpdateCertificateAsync (staged; ApplicationCertificate TrustList validation; supplied issuers ignored for app groups) |
ConfigurationNodeManagerPushTests (UpdateCertificateWith*, ...IgnoresSuppliedIssuerCertificatesAsync), PushTest (UpdateCertificate*) |
| §7.10.6 | CreateSelfSignedCertificate | ✅ | ...CreateSelfSignedCertificateAsync (occupied slot → Bad_InvalidState; subject/SAN/key-size validation) |
ConfigurationNodeManagerPushValidationTests (CreateDefaultApplicationCertificate*, ValidateKeySize*), ConfigurationNodeManagerPushTests (CreateSelfSignedCertificate*) |
| §7.10.7 | DeleteCertificate | ✅ | ...DeleteCertificateAsync — empty slot → Bad_InvalidState; endpoint-reference check enforced at ApplyChanges |
ConfigurationNodeManagerPushTests (DeleteCertificate*, DeleteCertificateReferencedByEndpointIsRejectedByApplyChangesAsync, RotatedCertificateBecomesEndpointReferenced*) |
| §7.10.8 | GetCertificates | ✅ | ...GetCertificates (null group → DefaultApplicationGroup; occupied slots only, aligned pairs) |
ConfigurationNodeManagerPushValidationTests.SelectOccupiedCertificateSlotsOmitsEmptySlotsAndPreservesOrder, ConfigurationNodeManagerPushTests.GetCertificates*, PushTest.GetCertificatesAsync |
| §7.10.9 | ApplyChanges | ✅ | ...ApplyChanges (ordered commit + reverse rollback) |
PushConfigurationTransactionCoordinatorTests (ApplyChanges*), PushTest (ApplyChangesAsync, ApplyChangesForcesChannelRenegotiateAsync) |
| §7.10.10 | CreateSigningRequest | ✅ | ...CreateSigningRequestAsync (nonce ≥ 32 bytes mixed in) |
ConfigurationNodeManagerPushTests (CreateSigningRequest*, ...WithRegenerateAndShortNonceThrowsBadInvalidArgument), PushTest.CreateSigningRequest* |
| §7.10.11 | CancelChanges | ✅ | ...CancelChanges (discard; Bad_RequestCancelledByClient diagnostics) |
PushConfigurationTransactionCoordinatorTests.CancelChanges*, ConfigurationNodeManagerPushTests.CancelChanges* |
| §7.10.12 | GetRejectedList | ✅ | ...GetRejectedList |
ConfigurationNodeManagerPushTests.GetRejectedList*, PushTest.GetRejectedListAsync |
Per-Method SecureChannel/Role enforcement (Bad_SecurityModeInsufficient for the channel vs Bad_UserAccessDenied for the Role), the §7.10.10 Nonce entropy requirement, and the §7.10.7 endpoint-reference rule are described in CertificateManager.md → PushManagement Transactions → Method security and validation.
| Requirement | Status | Source | Tests |
|---|---|---|---|
§7.10.2 transaction lifecycle: single owning Session; other Sessions get Bad_TransactionPending; ownership cleared atomically on apply |
✅ | PushConfigurationTransactionCoordinator |
PushConfigurationTransactionCoordinatorTests (StageStartsTransactionOwnedByStagingSession, StageFromAnotherSessionThrowsBadTransactionPending, ApplyChangesClearsOwnershipAtomicallySoANewSessionCanImmediatelyStageAsync) |
§7.10.2 SupportsTransactions = true exposed |
✅ | ConfigurationNodeManager.CreateServerConfiguration (the manager is split into ConfigurationNodeManager.*.cs concern files) |
ConfigurationNodeManagerPushTests.SupportsTransactionsIsExposedAndTrue |
Staging blocked during an in-flight commit (Bad_InvalidState same-owner / Bad_TransactionPending other Session) |
✅ | coordinator commit guard | PushConfigurationTransactionCoordinatorTests (StageFromOwningSessionDuringInFlightCommitReturnsBadInvalidStateThenSucceedsAsync, StagingFromAnotherSessionDuringAnInFlightCommit...) |
§7.10.9 ordered commit, reverse-order rollback, Bad_NothingToDo, open-writer Bad_InvalidState |
✅ | coordinator prepare/commit/compensate | PushConfigurationTransactionCoordinatorTests (ApplyChangesCommitsOperationsInRequestOrderAsync, ApplyChangesWithFailingCommitRollsBackEarlierOperationsInReverseOrderAsync, ApplyChangesWithNoActiveTransactionReturnsBadNothingToDoAsync, ApplyChangesWithOpenTrustListWriterReturnsBadInvalidStateWithoutClearingTransactionAsync) |
§7.10.11 wrong-Session apply/cancel → Bad_SessionIdInvalid; Session-close cancels its transaction |
✅ | coordinator ownership checks | PushConfigurationTransactionCoordinatorTests (ApplyChangesFromWrongSessionReturnsBadSessionIdInvalidAsync, CancelChangesFromWrongSessionReturnsBadSessionIdInvalid, CancelForSessionClose*) |
§7.10.17 TransactionDiagnostics DataValue status: Bad_OutOfService before any transaction, Bad_InvalidState while active, Good after completion |
✅ | ConfigurationNodeManager diagnostics binding + coordinator snapshot |
ConfigurationNodeManagerPushTests (TransactionDiagnosticsReportBadOutOfServiceBeforeAnyTransactionAsync, ...BadInvalidStateWhileTransactionActiveAsync, ...GoodResultAfterCompletedTransactionAsync), PushConfigurationTransactionCoordinatorTests.GetSnapshot* |
| §7.10.10 nonce entropy mixed into regenerated key (HMAC-DRBG) | ✅ | AdditionalEntropyCertificateKeyGenerator |
AdditionalEntropyCertificateKeyGeneratorTests.cs |
| §7.10.10 regenerated private key persisted across Sessions and restart | ✅ | DirectoryPendingCertificateKeyStore / InMemoryPendingCertificateKeyStore |
PendingCertificateKeyStoreTests.cs |
| Coordinator scoped per server (no cross-server sharing); injected coordinator honored | ✅ | ConfigurationNodeManager private per-server default |
ConfigurationNodeManagerPushTests (EachConfigurationNodeManagerOwnsADistinctDefaultCoordinator, AnInjectedCoordinatorIsSharedAcrossConfigurationNodeManagers) |
| Deferred post-apply effects drained/cancelled on shutdown | ✅ | ConfigurationNodeManager.DeleteAddressSpaceAsync / Dispose |
ConfigurationNodeManagerShutdownTests.cs |
These optional members are exposed only when their backing option/provider is configured (see CertificateManager.md → Optional ServerConfiguration Surface); otherwise the node is suppressed.
| Member (§) | Status | Source | Tests |
|---|---|---|---|
Identity variables ApplicationUri / ProductUri / ApplicationType / ApplicationNames (§7.10.3) |
✅ always | ServerConfigurationOptions from ApplicationConfiguration |
ServerConfigurationSurfaceTests.IdentityPropertiesAlwaysExposedAndValuedAsync |
HasSecureElement / InApplicationSetup (§7.10.3) |
🔲 provider-gated | ServerConfigurationOptions |
ServerConfigurationSurfaceTests (HasSecureElementExposedWithValueWhenConfiguredAsync, InApplicationSetupExposedWithValueWhenConfiguredAsync, OptionalMembersSuppressedWhenNotConfiguredAsync) |
ResetToServerDefaults (§7.10.13) |
🔲 provider-gated | IServerConfigurationResetProvider |
ServerConfigurationSurfaceTests.ResetToServerDefaultsExposedOnlyWhenProviderConfiguredAsync, ServerConfigurationResetTests.cs |
ConfigurationFile / ApplicationConfigurationFileType incl. CloseAndUpdate / ConfirmUpdate (§7.10.20) |
🔲 provider-gated; |
IApplicationConfigurationFileProvider + IRecoverableApplicationConfigurationFileProvider + ApplicationConfigurationFile.cs |
ServerConfigurationSurfaceTests (ConfigurationFilePendingUpdateIsRecoveredAndConfirmedAfterRestartAsync, ExpiredConfigurationFileUpdateIsRevertedBeforeServingAfterRestartAsync, ConfigurationFileConfirmationWithoutRecoveryIsRejectedBeforeValidationAsync) |
The ManagedApplications folder supports independent runtime targets through
IManagedApplicationPushProvider, including an optional configuration-file
provider on each registration. Metadata-only registration does not supply push
handlers. UpdateApplicationConfigurationFileAsync selects an application by
namespace-URI node address and confirms its update after reconnecting to the
management server; UpdateConfigurationFileAsync targets the host itself.
| Section | Feature | Status | Source |
|---|---|---|---|
| §7.10.14 | ApplicationConfigurationType |
🔲 provider-gated | Runtime-backed registrations bind independent certificate, trust and optional configuration-file handlers. File transfer and open-handle limitations are listed separately below |
| §7.10.16 | ManagedApplications folder |
🔲 provider-gated | DefaultManagedApplicationsNodeManager supports metadata or runtime providers; runtime entries expose per-application update, confirmation and restart recovery through their configured file providers |
| Section | Feature | Status | Source | Tests |
|---|---|---|---|---|
| §7.8.2.2 | TrustListType / Open / OpenWithMasks (Read + Write+EraseExisting only) | ✅ | Core TrustList.cs |
TrustListTests.OpenWithMasksSyncAllReturnsGood |
| §7.8.2.5 | CloseAndUpdate — staged, applied at ApplyChanges |
✅ | TrustList.cs + coordinator; rollback snapshots are captured under transaction ownership before store writes; TrustListUpdatedAuditEvent post-commit |
TrustListTransactionTests (CloseAndUpdateStagesInsteadOfApplyingImmediatelyAsync, ...RollsBackWhenALaterOperationFailsAsync, ...SelfCompensatesWhenOnlyOneOfSeveralStoresFailsAsync), PushTest.UpdateTrustListAsync |
| §7.8.2.6/.7 | AddCertificate / RemoveCertificate — staged | ✅ | TrustList.cs |
PushTest (AddRemoveCertAsync, AddRemoveCATrustedCertAsync, AddRemoveCAIssuerCertAsync), TrustListTransactionTests.cs |
| §7.8.2 | Open-for-write blocked with Bad_TransactionPending while another Session's transaction is active |
✅ | TrustList.cs + coordinator |
TrustListTransactionTests.cs, PushConfigurationTransactionCoordinatorTests.ApplyChangesWithOpenTrustListWriter* |
| §7.8.2 / Part 20 §4.2.2 | Several concurrent read handles; an open while a write handle is open → Bad_NotReadable/Bad_NotWritable (also for the owning Session); a write open while any handle is open → Bad_NotWritable |
✅ | TrustList.cs |
TrustListTests (OpenForReadSeveralTimesKeepsEveryReadHandle, SameSessionOpenWhileItsWriteHandleIsOpenIsRejected) |
| §7.8.2 | Read/write access control | ✅ | TrustList.cs |
TrustListTests (OpenReadWithoutReadAccessThrowsBadUserAccessDenied, OpenWriteWithoutWriteAccessThrowsBadUserAccessDenied) |
| §7.8.2 | LastUpdateTime set on init + after committed update |
✅ | TrustList.cs |
TrustListTransactionTests.cs |
| §7.8.2 | Writable / UserWritable; DefaultValidationOptions | ✅ | Set to true for GDS groups; generated from model CSV | TrustListTests.cs |
| §7.8.2.1 | ActivityTimeout: a handle with no Method call for the node's ActivityTimeout (default 60 000 ms) is closed and its changes discarded; every Open/Read/Write restarts it |
✅ | TrustList.cs (per-handle timer on the server TimeProvider) |
TrustListTests (IdleWriteHandleIsClosedAfterActivityTimeout, ActivityTimeoutPropertyValueIsHonored) |
| §8.4.5 | MaxTrustListSize advertised honestly + resource-protection safety ceiling; oversize Write/AddCertificate → Bad_RequestTooLarge; Read clamped to the server-encoded stream |
✅ | TrustList.cs + ServerConfigurationOptions.MaxTrustListSizeSafetyCeiling |
TrustListValidationTest (NormalSizeTrustListAsync, WriteTrustListExceedsSizeLimit, TrustListJustUnderLimitAsync), ConfigurationNodeManagerPushTests.MaxTrustListSizeAdvertisesHonestFiniteEffectiveLimit |
Each CertificateGroup exposes the two optional standard alarm instances
with full active/inactive transitions and events (previously
property-only). ConfigurationNodeManager creates and wires them in
CreateAddressSpace. StandardServer.OnServerStarted starts periodic
monitoring every 60 s once the subscription infrastructure is ready. The
injected TimeProvider supplies all thresholds and timers. See
CertificateManager.md → Certificate-Expiration and TrustList-Staleness Alarms.
| Alarm | Status | Source | Tests |
|---|---|---|---|
CertificateExpirationAlarmType (CertificateExpired) — active within ExpirationLimit / expired, Medium/High severity, Retain, Acknowledge, cleared after certificate replacement |
✅ | CertificateGroupAlarmMonitor + CertificateAlarmScheduler.UpdateAndEvaluate / StartAlarmMonitoring |
CertificateAlarmMonitoringTests (CertificateExpiredActivatesWithMediumSeverity*, ...HighSeverityWhenAlreadyExpired, ...DeactivatesAfterCertificateReplacement, RepeatedEvaluationsDoNotEmitDuplicateTransitionEvents, AcknowledgedAlarmClearsRetainAfterDeactivation, ClientAcknowledgeMethodMarksAlarmAcknowledged) |
TrustListOutOfDateAlarmType (TrustListOutOfDate) — active when UpdateFrequency elapses, disabled when non-positive |
✅ | same | CertificateAlarmMonitoringTests (TrustListOutOfDateActivatesWhenStale, TrustListOutOfDateStaysInactiveWhenFresh, TrustListOutOfDateDisabledWhenUpdateFrequencyIsZero) |
| Requirement | Status | Source | Tests |
|---|---|---|---|
| Committed TrustList change forces SecureChannel renegotiation (application group) and revalidates certificate user identities / closes invalidated Sessions (user-token group) | ✅ | PushConfigurationTrustListEffectHandler + ConfigurationNodeManager |
ConfigurationNodeManagerTrustListEffectsTests (BuildTrustListEffects*, ApplyChangesDispatches*EffectFor*, ApplyChangesUsesCommittedTargetsNotAConcurrentSessionsStagedTargetsAsync), PushConfigurationTrustListEffectHandlerTests.cs |
Origin-independent enforcement: any TrustListUpdated/CrlUpdated on the certificate manager (out-of-band store write, WriteTrustListAsync, ITrustListTransaction commit) triggers the same effect fan-out; a host running the legacy non-transactional TrustList must OPT IN by calling SetTrustListChangeNotifier — nothing in the stack wires it automatically |
✅ | CertificateChangePump consumed by ConfigurationNodeManager |
ConfigurationNodeManagerTrustListEffectsTests (OutOfBand*, BuildTrustListEffectsForScopes*), CertificateChangePumpTests |
A CRL pushed through CloseAndUpdate + ApplyChanges disconnects a connected client whose certificate it revokes, without waiting for the security-token renewal |
✅ | commit → validator-cache invalidation → §7.10.9 sweep | PushTest (PushedCrlDisconnectsRevokedClientAsync), ConfigurationNodeManagerTrustListEffectsTests (PushedCrlIsEnforcedByTheLiveValidatorAfterApplyChangesAsync), CertificateValidationCoreTests (ValidatedCertificateFastPathDoesNotSkipRevocationAsync) |
| Event Type | Status | Source | Tests |
|---|---|---|---|
| ApplicationRegistrationChangedAuditEvent | ✅ | Register/Update/Unregister | AuditEventsTests.cs |
| CertificateRequestedAuditEvent | ✅ | StartNewKeyPair + StartSigning | AuditEventsTests.cs |
| CertificateDeliveredAuditEvent | ✅ | FinishRequest | AuditEventsTests.cs |
| CertificateRevokedAuditEvent | ✅ | RevokeCertificate | AuditEventsTests.cs |
| CertificateUpdateRequestedAuditEvent | ✅ | UpdateCertificate (push) | AuditEventsTests.cs, PushTest.cs |
| TrustListUpdatedAuditEvent | ✅ | Core TrustList.cs | TrustListTransactionTests.cs, PushTest.cs |
| KeyCredentialRequestedAuditEvent | ✅ | StartRequest | AuditEventsTests.cs |
| KeyCredentialDeliveredAuditEvent | ✅ | FinishRequest | AuditEventsTests.cs |
| KeyCredentialRevokedAuditEvent | ✅ | Revoke | AuditEventsTests.cs |
| AccessTokenIssuedAuditEvent | ✅ | RequestAccessToken | AuthorizationService/RefreshTokenTests.cs |
| Secrets redacted from audit payloads | ✅ | RedactedPrivateKeyPassword / RedactedPrivateKey | AuditEventsTests.cs |
| Feature | Status | Source | Tests |
|---|---|---|---|
| StartRequest | ✅ | OnKeyCredentialStartRequest |
KeyCredentialRequestStoreTests.StartRequestReturnsNonNullIdAsync |
| FinishRequest | ✅ | OnKeyCredentialFinishRequest |
KeyCredentialRequestStoreTests (FinishRequestReturnsCredentialAsync, FinishRequestWithCancelRejectsRequestAsync, FinishRequestWithUnknownIdThrows) |
| Revoke | ✅ | OnKeyCredentialRevoke |
KeyCredentialRequestStoreTests (RevokeMarksCredentialAsRejectedAsync, RevokeUnknownCredentialThrows) |
| InMemoryKeyCredentialRequestStore | ✅ | IKeyCredentialRequestStore.cs |
KeyCredentialRequestStoreTests.cs |
| Client proxy | ✅ | KeyCredentialServiceClient.cs |
KeyCredentialRequestStoreTests.cs |
| KeyCredential Push binding | ✅ | WithKeyCredentialPush / KeyCredentialPushSubject |
ConfigurationNodeManagerPushTests (BindKeyCredentialPushWithExistingFolderBindsSubjectAsync, BindKeyCredentialPushWithNullSubjectThrowsArgumentNullException) |
| Feature | Status | Source | Tests |
|---|---|---|---|
| GetServiceDescription | ✅ | OnGetServiceDescription |
AuthorizationService/RefreshTokenTests.GetServiceDescriptionReportsConfiguredServiceUri |
| RequestAccessToken (obsolete single-call) | ✅ | Legacy compatibility path via IAccessTokenProvider.RequestAccessTokenAsync |
AuthorizationService/StartRequestTokenTests.LegacyRequestAccessTokenIssuesAnonymousUnprivilegedToken |
| StartRequestToken (RC) | ✅ | OnStartRequestToken / AuthorizationServiceManager |
AuthorizationService/StartRequestTokenTests.cs |
| FinishRequestToken (RC) | ✅ | OnFinishRequestToken / AuthorizationServiceManager |
AuthorizationService/StartRequestTokenTests.cs |
| RefreshToken (RC) | ✅ | OnRefreshTokenAsync / AuthorizationServiceManager |
AuthorizationService/RefreshTokenTests.cs, AuthorizationService/InMemoryAccessTokenProviderRefreshTests.cs |
| SupportedRoles (RC) | ✅ | Model property exposed | — (model property; not separately unit-tested) |
| Client proxy | ✅ | AuthorizationServiceClient.cs |
AuthorizationService/StartRequestTokenTests.cs, AuthorizationService/RefreshTokenTests.cs |
The default in-memory AuthorizationService provider issues a refresh token from
FinishRequestToken and accepts it through RefreshToken (OPC 10000-12 §9.7). Refresh
tokens are opaque, single-use secrets: each successful refresh consumes the current token,
issues a new access token, and rotates to a new refresh token. The refresh-token lifetime
slides by AuthorizationServiceOptions.DefaultRefreshTokenLifetime (7 days by default).
Set AuthorizationServiceOptions.EnableRefreshTokens = false to preserve the legacy
behavior where FinishRequestToken returns no refresh token and RefreshToken returns
Bad_NotSupported.
var (newJwt, newJwtExpiresAt, newRefreshToken, newRefreshExpiresAt) =
await authClient.RefreshTokenAsync(resourceId, refreshToken);
refreshToken = newRefreshToken;Refresh-token audit events include only the resourceId input and the outcome. The
refresh token itself is a secret and is never placed in audit payloads.
The following optional Part 12 members are not implemented or remain partial. The table identifies each gap; assess its effect on the applicable Facet conformance units separately.
| Item (§) | Status | Notes |
|---|---|---|
ServerConfiguration.AuthorizationServices folder (§9.6.2 / Authorization Service Configuration Server CU) |
❌ not exposed | A push Server does not expose the configuration folder listing trusted Authorization Services. Client access-token validation is instead handled by the pluggable Identity Providers. |
ConfigurationFile transfer and FileType open handles (§7.8.5.1; Part 20 §4.2.2) |
The client reads existing content and rewinds before writing. The server loads current content for Read and Read + Write, retains independent readers, and rejects incompatible opens with Bad_NotWritable / Bad_NotReadable. Shorter replacements are rejected before writing because the permitted modes supply no interoperable truncation operation. |
|
ManagedApplications / ApplicationConfigurationType proxy (§7.10.14–§7.10.16) |
🔲 provider-gated | Runtime-backed entries bind independent certificate and trust management plus an optional per-application ConfigurationFile provider with update, confirmation and restart recovery. UpdateApplicationConfigurationFileAsync selects the same application after reconnecting. Metadata-only IConfigurationDataStore entries have no push handlers. The shared ConfigurationFile transfer and open-handle limitations above apply to application files too |
KeyCredential authentication ProfileUris — AMQP SASL Plain / MQTT UserName / UA transport UserName (§8, optional CUs) |
🔲 provider-defined | The push binding is implemented; the concrete ProfileUri set advertised is defined by the credential provider, not fixed by the stack. |
| A & C CertificateExpiration optional CUs — Comment / Confirm / Shelving | 🔲 inherited | Available through the standard OPC 10000-9 condition model on the alarm instances; not separately exercised by the certificate-alarm tests. |
For Part 21 onboarding and reset with ResetToServerDefaults and
InApplicationSetup (§7.10.13, Annex G), see
Part 21 requirements and implementation boundaries.
Semaphore files are local-host liveness indicators (OPC UA Part 12). RegisterServer
and RegisterServer2 accept a non-empty SemaphoreFilePath only from a
transport-observed loopback peer (including IPv4-mapped loopback). Remote peers
and transports without peer-address evidence must omit the path and periodically
refresh their registration. A certificate URI or a discovery URL naming localhost
is not evidence of locality.
Paths must be fully qualified native file paths. UNC paths (including mixed or
forward slashes), Windows device/extended namespaces, drive-relative paths,
URIs, control characters, alternate streams, reserved DOS device names, and
ambiguous dot/space components are rejected with BadInvalidArgument before
filesystem access, including offline requests. The store independently checks
paths before registration and pruning; unsafe entries loaded or seeded into the
store are pruned without probing their paths. The built-in store is in-memory;
there is no registration persistence loader.
Ordinary existing local semaphore files retain their liveness behavior: a missing
file removes the registration. The filesystem can be injected through
RegisteredServerStore or LDS hosting's IFileSystem service. Path validation is
lexical, not a filesystem sandbox: administrators must keep semaphore directories,
drive mappings, mounts, and links local and trusted. Local applications connecting
through a non-loopback interface must reconnect through loopback to use semaphores.
| Feature | Status | Source | Tests |
|---|---|---|---|
| FindServers | ✅ | LdsServer.FindServersAsync |
LocalDiscoveryTests.cs |
| GetEndpoints | ✅ | LdsServer.GetEndpointsAsync |
LocalDiscoveryTests.cs |
| RegisterServer | ✅ | LdsServer.RegisterServerAsync |
LocalDiscoveryTests.cs |
| RegisterServer2 | ✅ | LdsServer.RegisterServer2Async |
LocalDiscoveryTests.cs |
| Local semaphore path and peer validation | ✅ | LdsServer.ValidateRegistration, RegisteredServerStore |
RegistrationValidationTests.cs, SemaphorePathTests.cs |
| FindServersOnNetwork | ✅ | LdsServer.FindServersOnNetworkAsync |
LocalDiscoveryTests.cs, LdsServerStaticTests.cs |
| LDS-ME capability | ✅ | ComputeServerCapabilities |
ServerCapabilitiesTests.cs, ServerCapabilityTests.cs |
| mDNS _opcua-tcp._tcp | ✅ | MulticastDiscovery.OpcUaServiceType |
LdsServerStaticTests.cs |
| rcp+ reverse-connect | ✅ | MulticastDiscovery.ReverseConnectScheme |
LdsServerStaticTests.cs |
| Annex C TXT keys | ✅ | path / caps / rc | LdsServerStaticTests.cs |
| Annex D identifiers | ✅ | LDS / LDS-ME | LdsServerStaticTests.cs |
Every extension point a user needs to provide or override:
| Interface | Purpose | Default impl | User replaces when... |
|---|---|---|---|
IApplicationsDatabase |
Application registration store | LinqApplicationsDatabase / JsonApplicationsDatabase |
Using a SQL/NoSQL database |
ICertificateRequest |
Cert request lifecycle | LinqApplicationsDatabase |
Custom approval workflow |
ICertificateGroup |
CA operations | CertificateGroup |
External CA (EST, ACME, etc.) |
IKeyCredentialRequestStore |
KeyCredential lifecycle | InMemoryKeyCredentialRequestStore |
Persistent store, external IdP |
ISecretStore |
Secret storage for credentials | InMemorySecretStore |
Key Vault, DPAPI, K8s secrets |
IAccessTokenProvider |
Token issuance for AuthorizationService | null (Bad_NotSupported) |
OAuth2/JWT provider |
IConfigurationDataStore |
ManagedApplications config persistence | InMemoryConfigurationDataStore |
File-system, database |
IManagedApplicationsNodeManager |
ManagedApplications folder | StubManagedApplicationsNodeManager / DefaultManagedApplicationsNodeManager |
Full push management |
IConfigurationNodeManager |
Alarm monitoring | ConfigurationNodeManager.StartAlarmMonitoring |
Custom thresholds/sources |
IUserDatabase |
User/password store | Existing in GlobalDiscoverySampleServer |
LDAP, database |