CultNetDatabaseServer: a peer's put or delete commits only when its write authority grants it
CultNetDatabaseServerOptions.RemoteWriteAuthority is asked once per received write, after the schema resolves and before the shard does; none configured refuses every remote write; an authority that throws refuses and is logged. A refusal applies, publishes, logs and forwards nothing. The host's own CultNetDatabase.ApplyPutAsync/ApplyDeleteAsync ask no remote authority. Existing server tests whose subject is not the grant pass a test-local granting authority. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
cf1e4f7a9d
commit
b4f494b7a0
8 changed files with 480 additions and 10 deletions
|
|
@ -34,6 +34,13 @@ namespace GameCult.Networking
|
|||
/// Gets or sets the forwarder used when non-primary write forwarding is enabled.
|
||||
/// </summary>
|
||||
public ICultNetShardWriteForwarder? WriteForwarder { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the authority asked for every peer put and delete. None configured refuses them all: a connection
|
||||
/// key admits a peer to the transport, never to write. A write forwarded to a primary is judged here for the
|
||||
/// original peer and again at the primary for the forwarder's connection.
|
||||
/// </summary>
|
||||
public ICultNetRemoteWriteAuthority? RemoteWriteAuthority { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Reference in a new issue